// JavaScript Document

function isEmail(sEmail) {
	var regEmail = /^([\w-]+\.?)*\w+@([\da-zA-z-]+\.)+[a-zA-z]{2,6}$/;
	return regEmail.test(sEmail);
}

function Validator(thisForm) {

	if (thisForm.fname.value == "") {
		alert("Please enter a value for First Name");
		thisForm.fname.focus();
		return(false);
	}
	
	if (thisForm.lname.value == "") {
		alert("Please enter a value for Last Name");
		thisForm.lname.focus();
		return(false);
	}
	
	if (!isEmail(thisForm.email.value)) {
		alert("Please enter a valid Email address");
		thisForm.email.focus();
		return(false);
	}

	if (thisForm.phone.value == "") {
		alert("Please enter a value for Phone.");
		thisForm.phone.focus();
		return (false);
	}

} // END FUNCTION Validator

 -->
