<!-- //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.Full_Name.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.Full_Name.focus();
 		 return(false);
 	}
 
 	if(theForm.Job_Title.value == "") {
 		 alert("Please enter your Job Title.");
 		 theForm.Job_Title.focus();
 		 return(false);
 
 	}
 	
 	if(theForm.Company_Name.value == "") {
 		 alert("Please enter your Company Name.");
 		 theForm.Company_Name.focus();
 		 return(false);
 
 	}
 	
 	if(theForm.Address_Line_1.value == "") {
 		 alert("Please enter the fisrt line of your address.");
 		 theForm.Address_Line_1.focus();
 		 return(false);
 
 	}
 	
 	if(theForm.Post_Code.value == "") {
 		 alert("Please enter your Post Code.");
 		 theForm.Post_Code.focus();
 		 return(false);
 
 	}
 
 	if(theForm.Telephone_Number.value == "") {
 		 alert("Please enter your Telephone Number.");
 		 theForm.Telephone_Number.focus();
 		 return(false);
 
	}

	if(!checkEmail(theForm.email.value)) {
		 alert("Please enter a valid Email Address");
		theForm.email.focus();
		 return false;

	}
	
	
	return (true);
}
// end script hiding -->
