//Name validation

function check(form2) 
{

if(form2.name.value=="")
{
alert("Please Enter your Name");
form2.name.focus();
return (false);
}


//End of Name validation

//Mobile validation


  if (form2.mobile.value == "")
  {
    alert("Please enter a value for the \"Contact\" field.");
    form2.mobile.focus();
    return (false);
  }

  if (form2.mobile.value.length < 6)
  {
    alert("Please enter complete Contact No. in \"Contact\" field.");
    form2.mobile.focus();
    return (false);
  }



  var checkOK = "0123456789";
  var checkStr = form2.mobile.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (allValid==false)
  {
    alert("Please enter only digit and \"-\" characters in the \"Mobile\" field.");
    form2.mobile.focus();
    return (false);
  }



if(form2.city.value=="")
{
alert("Please Enter your City Here");
form2.city.focus();
return (false);
}



//End of Quey validation



}
//End of Captcha validation
//function check(form2) 

//email validation

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function checkmail(e){
var returnval=emailfilter.test(e.value)
if (returnval==false){
alert("Please enter a valid email address.")
e.select()
}
return returnval
}

//end of email validation



