	<!--
	function IsValidEmail(email)
	{
		var reg = new RegExp("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"); 
		return (reg.test(email))
	}	

	function subForm(){
		//VALIDATE FIELDS
		
		var contactForm = document.formEnquire
   
        // run this function to make sure that the hidden field email address is set correctly
        changeHiddenInput( document.getElementById("enquiry_type_select") )
  
		if ( contactForm.first_name.value == "" ) {
			alert("Please enter your first name");
			contactForm.first_name.focus();
			return false;
		}
		
		if ( contactForm.last_name.value == "" ) {
			alert("Please enter your surname name");
			contactForm.last_name.focus();
			return false;
		}
		
		if (contactForm.job_title.value == "") {
			alert("Please enter your job title");
			contactForm.job_title.focus();
			return false;
		}
		
		if (contactForm.company_name.value == "") {
			alert("Please enter your company name");
			contactForm.company_name.focus();
			return false;
		}
									
		if (!IsValidEmail(contactForm.email.value)) {
			alert("Please enter a valid e-mail address");
			contactForm.email.focus();
			return false;
		}
		
		if (contactForm.phone.value == "") {
			alert("Please enter your telephone number");
			contactForm.phone.focus();
			return false;
		}
		
		if (contactForm.street_address1.value == "") {
			alert("Please enter your street address 1");
			contactForm.street_address1.focus();
			return false;
		}
		
		if (contactForm.town_city.value == "") {
			alert("Please enter your Town/City");
			contactForm.town_city.focus();
			return false;
		}
		
		if (contactForm.postcode.value == "") {
			alert("Please enter your postcode");
			contactForm.postcode.focus();
			return false;
		}
		
		
		return true;

	}   
	
	//-->

