<!-- //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.ContactName.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.ContactName.focus();
 		 return(false);
 	}

 	if(theForm.ContactPhone.value == "") {
 		 alert("Please enter your Phone Number.");
 		 theForm.ContactPhone.focus();
 		 return(false);
 	}
 	
	if(!checkEmail(theForm.FromEMail.value)) {
		alert("Please enter a valid Email Address");
		theForm.FromEMail.focus();
		return false;
	} 	
 	

 	if(theForm.ContactEnquiry.value == "") {
 		 alert("Please enter your Enquiry.");
 		 theForm.ContactEnquiry.focus();
 		 return(false);
 	}

	return (true);
}
// end script hiding -->
