<!-- //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.title.value == "") {
 		 alert("Please enter a Title.");
 		 theForm.title.focus();
 		 return(false);
 	}

 	if(theForm.firstname.value == "") {
 		 alert("Please enter your First Name.");
 		 theForm.firstname.focus();
 		 return(false);
 	}
 	
 	if(theForm.lastname.value == "") {
 		 alert("Please enter your Surname.");
 		 theForm.lastname.focus();
 		 return(false);
 	}
 	
 	if(theForm.company.value == "") {
 		 alert("Please enter your Company name.");
 		 theForm.company.focus();
 		 return(false);
 	}
 	
 	if(theForm.workphone.value == "") {
 		 alert("Please enter your Telephone number.");
 		 theForm.workphone.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 -->
