//***************************************************************
//  Validation routines for fmharvey
//
//  If errors are found, they are added to alert string
//  which is presented at the end of the check.
// ***************************************************************

function validate(){

var hasErrors = "no";

var errorMsg = "All fields must be complete before the form can be submitted.\n\n";
	errorMsg+= "Please fill in the following information:\n\n";


if(document.fmharvey.name.value == ""){
	errorMsg += "Name\n";
	hasErrors = "yes";
}
		
if(document.fmharvey.email.value == ""){
	errorMsg += "Email Address\n";
	hasErrors = "yes";
}
	
if(hasErrors == "yes"){
	alert(errorMsg);
	return false;
}
else
	return true;
}
