function checkForm(passForm) {

         if (passForm.Name.value == "") {
             alert("Please check your input, you need to tell me who you are.")
             passForm.Name.focus()
             return false
         }
         if (passForm.Email.value == "") {
                  alert("Please check your input, you need give me an email address.")
                  passForm.Email.focus()
                  return false
         }
         if (!validEmail(passForm.Email)) {
                  alert("Sorry, this seems to be an invalid email address.")
                  passForm.Email.focus()
                  passForm.Email.select()
         return false
         }
         if (passForm.Comments.value == "") {
             alert("Please check your input, you need to tell me SOMETHING.")
             passForm.Comments.focus()
             return false
         }

         return true
}


function validEmail(formField){
        var result = true;
        if (formField.value.length < 3 || !isEmailAddr(formField.value) )
        {
                result = false;
        }
        return result;
}

function isEmailAddr(email){
  var result = false;
  var theStr = new String(email);
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
        result = true;
  }
  return result;
}


