<!-- //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.realname.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.realname.focus();
 		 return(false);
 	}
 	
 	if(theForm.theiraddress.value == "") {
		 alert("Please enter your Address.");
		 theForm.theiraddress.focus();
		 return(false);
 	}
 	if(theForm.telephone.value == "") {
		alert("Please enter your Telephone Number.");
		theForm.telephone.focus();
		return(false);
 	}
 	if(theForm.currentemployment.value == "") {
		alert("Please enter your Current Employment.");
		theForm.currentemployment.focus();
		return(false);
 	}
 	
 	if(theForm.email.value == "") {
		 alert("Please enter a email address");
		 theForm.email.focus();
		 return(false);
	}

	if(!checkEmail(theForm.email.value)) {
		 alert("Please enter a valid Email Address");
		theForm.email.focus();
		 return false;
	}
	
  	if(theForm.experience.value == "") {
		 alert("Please tell us about any experience you have.");
		 theForm.experience.focus();
		 return(false);
 	}
 	
	return (true);
}
// end script hiding -->
