
<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckForm () { 

	//Initialise variables
	var errorMsg = "";

	//Check for a first name
	if (document.frmEnquiry.name.value == ""){
		errorMsg += "\n\tName \t- Enter your First Name";	
	}
	
	//Check for a last name
	if (document.frmEnquiry.surname.value == ""){
		errorMsg += "\n\tSurname \t- Enter your Last Name";
	}
	 	
	//Check for an e-mail address and that it is valid
	if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail Address \t- Enter your valid e-mail address";
	}
		

         //Check for a telephone name
	if (document.frmEnquiry.telephone.value == ""){
		errorMsg += "\n\tTelephone \t- Enter your telephone number";
	}

 	//Check for a firm name
	if (document.frmEnquiry.telephone.value == ""){
		errorMsg += "\n\tFirm \t- Enter your firms name";
	}

		
		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "Your message has not been sent because there are problem(s) with the form.\n";
		msg += "Please correct the problem(s) and re-submit the form.\n";
		msg += "______________________________________________________________\n\n";
		msg += "The following field(s) need to be corrected: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}

function toggleLayer( whichLayer )
	{
		$('#'+ whichLayer).toggle("slow");
			
	}
	
	function focusFields(){
   $("input, textarea, select").bind("focus",function(){
         $(this).addClass("focus");
   });

   $("input, textarea, select").bind("blur",function(){
         $(this).removeClass("focus");
   });

   if($.browser.msie){
	$("select").bind("focusin",function(){
	   $(this).addClass("focus");
	});	

	$("select").bind("focusout",function(){
	   $(this).removeClass("focus");
	});
   }
}
	
jQuery(document).ready(function(){
focusFields();

});

	
	function focusFields(){
   $("input, textarea, select").bind("focus",function(){
         $(this).addClass("focus");
   });

   $("input, textarea, select").bind("blur",function(){
         $(this).removeClass("focus");
   });

   if($.browser.msie){
	$("select").bind("focusin",function(){
	   $(this).addClass("focus");
	});	

	$("select").bind("focusout",function(){
	   $(this).removeClass("focus");
	});
   }
}
// -->