function Validator(theForm)
{var error = "Following Errors Occured\n~~~~~~~~~~~~~~~";
if (theForm.fname.value == "")
{error += "\n\nPlease fill in the FIRST NAME field. ";}
if (theForm.lname.value == "")
{error += "\n\nPlease fill in the LAST NAME field. ";}
if (theForm.address.value == "")
{error += "\n\nYou must include an accurate EMAIL ADDRESS for a response.";}
if ((theForm.address.value.indexOf ('@',0) == -1 ||theForm.address.value.indexOf ('.',0) == -1) &&
theForm.address.value != "")
{error += "\n\nPlease verify that your EMAIL ADDRESS is valid."; }
if (error != "Following Errors Occured\n~~~~~~~~~~~~~~~")
{
alert(error);
return (false);
} else {
return (true);
}
}
