function formcheck()
{
    var wm = "Please enter the following\n\n";
    var noerror = 1;

	var email =/[-a-zA-Z0-9_\.]+@[-a-zA-Z0-9]+\.[-a-zA-Z0-9\.]+/;
	var eflag = document.form1.email.value.match(email);	

    var t1 = document.forms["form1"].name;
    if (t1.value == "" || t1.value == " ")
    {
        wm += "Name\n";
        noerror = 0;
    }
    var t2 = document.forms["form1"].comments;
    if (t2.value == "" || t2.value == " ")
    {
        wm += "Comments\n";
        noerror = 0;
    }
	
		if (document.form1.email.value=="")
		{
		wm += "Enter Email \n";
		noerror = 0;
		}
		if(eflag!=document.form1.email.value)	   
		{
		wm += "Enter Valid Email\n";
		noerror = 0;
		}	
    
    if (noerror == 0)
    {
        alert(wm);
        return false;
    }
    else return true;
}