function FormCheck() {
addr=document.TheForm.email.value;
yourname=document.TheForm.sender.value;
var regex=/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 (regex.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;}
}

function def1(e,obj) {
if (document.all) {
if (document.documentElement && document.documentElement.scrollTop)
{Offset = document.documentElement.scrollTop;Offsety = document.documentElement.scrollLeft;}
else {Offset = document.body.scrollTop;Offsety = document.body.scrollLeft;}
var leftx= event.x+Offsety;var topy= event.y+Offset;
}else{var leftx=e.pageX+"px";var topy=e.pageY+"px";}
document.getElementById(obj).style.fontStyle = 'italic';
document.getElementById(obj+"1").style.display = 'block';
document.getElementById(obj+"1").style.left = leftx;
document.getElementById(obj+"1").style.top = topy;
window.status=document.documentElement.scrollTop;
}
function def0(obj) {
document.getElementById(obj).style.fontStyle = 'normal';
document.getElementById(obj+"1").style.display = 'none';
}
