function emptyvalidation()
{
  if ((document.contactus.name.value=="")||
      (document.contactus.email.value=="")||
      (document.contactus.comments.value=="")) 

    {
     alert ("You must fill in all of the required fields!");
     return false;
    }
  else
  
       {
         alert("Between me and you,lets just pretend the form has already been submitted!")
         return false
       }
}

function emailvalidation(entered, alertbox)
{
// E-mail Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Please do not remove this line and the two lines above.
with (entered)
{
apos=value.indexOf("@"); 
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
{if (alertbox) {alert(alertbox);} return false;}
else {return true;}
}
} 
