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(contactform) {



  if (isFilled(contactform.Name) == false) {

        alert("Please enter your Name.");

        contactform.Name.focus();

        return false;



        }



        if (isEmail(contactform.Email) == false) {

        alert ("Please enter a valid Email address.");

        contactform.Email.focus();

        return false;



        }



          if (isFilled(contactform.comment) == false) {

        alert("Please enter your Comment or Request.");

        contactform.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;



}



       



