<!-- //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.title1.value == "") {
		 alert("Please enter a Title.");
		 theForm.title1.focus();
		 return(false);
	}

	if(theForm.fromname1.value == "") {
		 alert("Please enter your First Name.");
		 theForm.fromname1.focus();
		 return(false);
	}
	
	if(theForm.surname1.value == "") {
		 alert("Please enter your Surname.");
		 theForm.surname1.focus();
		 return(false);
	}
	
	if(theForm.home_telephone1.value == "") {
		 alert("Please enter your Home Telephone Number.");
		 theForm.home_telephone1.focus();
		 return(false);
	}

	if(!checkEmail(theForm.email1.value)) {
		 alert("Please enter a valid Email Address");
		theForm.email1.focus();
		 return false;
	}
	
	return (true);
}
// end script hiding -->
