function checkForm(thisform)
{
if (thisform.name)
{
var exprText=/^[a-zA-Z. ]+$/;
if(thisform.name.value==null || thisform.name.value=="")
{
alert("Name must be Filled out!");
thisform.name.focus();
return false;
}
else if(exprText.test(thisform.name.value)==false)
{
alert("Fill Correct Name!");
thisform.name.focus();
thisform.name.value="";
return false;
}
}
if(thisform.mobile)
{
var exprPhone=/^[0-9,-]+$/;
if(thisform.mobile.value==null || thisform.mobile.value=="")
{
alert("Mobile No must be filled Out!");
thisform.mobile.focus();
return false;
}else if(exprPhone.test(thisform.mobile.value)==false)
{
alert("Please Fill Correct Mobile No!");
thisform.mobile.focus();
thisform.mobile.value="";
return false;
}
}
return true;
}