<!-- //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.Subject.value == "") {
 		 alert("Please enter the subject of your email.");
 		 theForm.Subject.focus();
 		 return(false);
 	}
 	
 	if(theForm.Comment.value == "") {
 		 alert("Please enter your enquiry.");
 		 theForm.Comment.focus();
 		 return(false);
 	}
 	
 	if(theForm.realname.value == "") {
 		 alert("Please enter your Name.");
 		 theForm.realname.focus();
 		 return(false);
 	}
 	
	if(!checkEmail(theForm.FTEFrom.value)) {
		 alert("Please enter a valid Email Address");
		theForm.FTEFrom.focus();
		 return false;
	}
	
	return (true);
}
// end script hiding -->
