function emailCheck() {
mailcheck=document.frmMailto.txtEmail.value;
messagecheck=document.frmMailto.txtmessage.value;
namecheck=document.frmMailto.txtName.value;
phonecheck=document.frmMailto.txtPhone.value;
if (namecheck.length == 0) {
	document.frmMailto.txtName.focus();
	alert("May we have your name please?");
	return;
	}
if (mailcheck.length == 0 && phonecheck.length == 0) {
	alert("May we have your email address or phone number please?");
	document.frmMailto.txtPhone.focus();
	return;
	}
if (messagecheck.length == 0) {
	alert("Please enter your message.");
	document.frmMailto.txtmessage.focus();
	return;
	}
if (mailcheck.length > 0) {
   if (mailcheck.indexOf("@")<2){
      alert("Please make sure you have typed your e-mail address correctly. Please"
      +" check the prefix and '@' sign.");
      document.frmMailto.txtEmail.focus();
      document.frmMailto.txtEmail.select();
      return;
   }
   if ((mailcheck.indexOf(".com")<5)&&(mailcheck.indexOf(".org")<5)
      &&(mailcheck.indexOf(".gov")<5)&&(mailcheck.indexOf(".net")<5)
      &&(mailcheck.indexOf(".mil")<5)&&(mailcheck.indexOf(".edu")<5)
      &&(mailcheck.indexOf(".us")<5)){
      alert("Please make sure you have typed your e-mail address correctly. Please"
      +" check the suffix for accuracy. (It should include a "
      +".com, .edu, .net, .org, .gov or .mil or .us)");
      document.frmMailto.txtEmail.focus();
      document.frmMailto.txtEmail.select();	  
      return;
   }
}
document.frmMailto.submit()
}
