function enquiry_verify()
{
var name=document.form1.name.value;
var email=document.form1.email.value;



if(name=='')
{
alert("Enter the Name"); 
document.form1.name.focus();
return false;
}



if(email=='')
{
alert("Enter the Email"); 
document.form1.email.focus();
return false;
}

if(!checkemail(email)){
                  alert("Please Enter The Valid E-mail Id");
                  document.form1.email.focus();
                  return false;
}


alert("Thanks for filling the form ");
return true;
}






function checkemail(str){
              var filter=/^.+@.+\..{2,3}$/;
                            testresults=false;

              if (filter.test(str))
                  testresults=true;
                            return testresults;
}


