function checkForm() 
  {
    var x = document.mailform.fromwhom.value.indexOf("@")
    var y = document.mailform.fromwhom.value.indexOf(".")
    var z = x * y
    if (z < 2) 
    {
      alert("You must enter a valid Email Address")
      document.mailform.fromwhom.focus();
      return false
	  } 
	  else 
	  {
       if (document.mailform.message.value.length == 0) 
       {
        alert("You cannot send a blank message")
        document.mailform.message.focus();
        return false;
       } 
       else 
       {
        return true
       }
    }
  }
