<!-- //hide the script
function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}


function form_validator(theForm)
{

 	if(theForm.surname.value == "") {
 		 alert("Please enter your Surname.");
 		 theForm.surname.focus();
 		 return(false);
 	}
 	
 	if(theForm.forename.value == "") {
 		 alert("Please enter your Forename.");
 		 theForm.forename.focus();
 		 return(false);
 	}
 	
  	if(theForm.address1.value == "") {
  		 alert("Please enter Line 1 of your Address.");
  		 theForm.address1.focus();
  		 return(false);
 	}
 	
  	if(theForm.town.value == "") {
  		 alert("Please enter your Town.");
  		 theForm.town.focus();
  		 return(false);
 	}
 	
  	if(theForm.postcode.value == "") {
  		 alert("Please enter your Postcode.");
  		 theForm.postcode.focus();
  		 return(false);
 	}
 	
   	if(theForm.telephonehome.value == "") {
   		 alert("Please enter your Home Telephone Number.");
   		 theForm.telephonehome.focus();
   		 return(false);
 	}
 	
 	
	
	
	return (true);
}
// end script hiding -->