<!-- //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.F_Title.value == "") {
 		 alert("Please select an option.");
 		 theForm.F_Title.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Forename.value == "") {
 		 alert("Please enter your Forename.");
 		 theForm.F_Forename.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Surname.value == "") {
 		 alert("Please enter your Surname.");
 		 theForm.F_Surname.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Address_1.value == "") {
 		 alert("Please enter your Address.");
 		 theForm.F_Address_1.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Town.value == "") {
 		 alert("Please enter your Town.");
 		 theForm.F_Town.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_County.value == "") {
 		 alert("Please enter your County.");
 		 theForm.F_County.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Post_Code.value == "") {
 		 alert("Please enter your Post Code.");
 		 theForm.F_Post_Code.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Country.value == "") {
 		 alert("Please enter your Country.");
 		 theForm.F_Country.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_Telephone.value == "") {
 		 alert("Please enter your Telephone Number.");
 		 theForm.F_Telephone.focus();
 		 return(false);
 	}

	if(!checkEmail(theForm.F_EMail.value)) {
		 alert("Please enter a valid Email Address");
		theForm.F_EMail.focus();
		 return false;
	}
	
 	if(theForm.F_Password.value == "") {
 		 alert("Please enter a Password.");
 		 theForm.F_Password.focus();
 		 return(false);
 	}
 	
 	if(theForm.F_AllowMail.value == "") {
 		 alert("Please select a newsletter option.");
 		 theForm.F_AllowMail.focus();
 		 return(false);
 	}
	
	
	return (true);
}
// end script hiding -->
