function FormCheck() {
addr=document.TheForm.email.value;
yourname=document.TheForm.sender.value;
regg = / and |\,|\&/gi;
rew = /www/gi;
if (yourname == "1") { return true; }
if (addr.length<1) {alert("This form cannot be processed because the email address is missing Please fill in your correct e-mail address and send again."); return false;}
else if (addr.indexOf("@")<3) {alert("This form cannot be processed because the email address, <"+addr+">, has not been written correctly. Please correct it and then send again."); return false;}
else if (rew.test(addr)) {alert("This form cannot be processed because the email address, <"+addr+">, has not been written correctly. Please correct it and then send again."); return false;}
else if (yourname.length<1) {alert("This form cannot be processed because you have not put down your name. Please fill in your name and then send it."); return false;}
else if (yourname.indexOf(" ")<1) {alert("This form cannot be processed because you have not put down both your first and last name. Please do so and then send it."); return false;}
else if (yourname.indexOf("*")>1) {alert("This form cannot be processed because you have not put down both your first and last name. Please do so and then send it."); return false;}
else if (regg.test(yourname)) {alert("This form cannot be processed because there is more than one name on it. Please fill in only one name on each quiz and send again.");return false;}
}

function Button() {
document.write('<CENTER><INPUT type="submit" value="Send it">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="reset" value="Clear"></CENTER>');
}

