function isEmail(elm) {
  if (elm.value.indexOf("@") != "-1" &&
    elm.value.indexOf(".") != "-1" || 
    elm.value == "")
    return true;
    else return false; 
    }
    
    function isFilled(elm) {
    if (elm.value == "" ||
    elm.value == null)
    return false;
    else return true;
    }
    

function isReady(form) {

        if (isEmail(form.Email) == false) {
        alert ("Please enter a valid email address.");
        form.Email.focus();
        return false;
        }

       if (isFilled(form.Name) == false) {
        alert("Please enter your Name.");
        form.Name.focus();
        return false;
        }
        
          if (isFilled(form.Comment) == false) {
        alert("Please enter a comment, question, or request.");
        form.Comment.focus();
        return false;
        }
                         
   //      if ((isFilled(form.Name)) && (isFilled(form.Comment)) && (isEmail(form.Email)) == true) {
   //       confirmWindow = window.open('confirm.html' , 'confirmWin' , 'width=380,height=375');
//}

 return true;
}
       
