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

function isReady(cform) {
 
       if (isFilled(document.cform.Name) == false) {
        alert("Please enter your Name.");
        document.cform.Name.focus();
        return false;
        }
        
        if (isEmail(document.cform.Email) == false) {
        alert ("Please enter a valid Email address.");
        document.cform.Email.focus();
        return false;
        }
        
          if (isFilled(document.cform.Comment) == false) {
        alert("Please enter your Comment.");
        document.cform.Comment.focus();
        return false;
        }
                         
   //      if ((isFilled(cform.Name)) && (isFilled(cform.Comment)) && (isEmail(cform.Email)) == true) {
     //     confirmWindow = window.open('confirm.html' , 'confirmWin' , 'width=380,height=375');
//}

 return true;
}
       
