	var tag = /([\<])([^\>]{1,})*([\>])/i;
	var ck_name = /^[A-Za-z ]+$/;
	var ck_sub = /^[A-Za-z.-_, ]+$/;
	var ck_email = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	var number =  /^[0-9]+$/;
	var mark =  /^[0-9.%]+$/;

function validate(form)
{
var app = form.app.value;
var applicationdate = form.applicationdate.value;

var accomodation = form.accomodation.value;
var name = form.name.value;
var email = form.email.value;
var country = form.country.value; 
var mob = form.mob.value; 
var country = form.country.value; 
var additional = form.additional.value; 



   var errors = [];

   if(app == '...'){
   errors[errors.length] = " Please Enter Arrival Date.";
   }

 if(applicationdate == '...' ){
   errors[errors.length] = " Please Enter Departure Date.";
   }

  
  if(accomodation == 'NA' ){
   errors[errors.length] = " Please Enter  Accomodation";
   }
  if(name == '' ){
   errors[errors.length] = " Please Enter  Name";
   }

   if(email == '' || !ck_email.test(email)){
   errors[errors.length] = "Enter Valid Email Address.";
   }
    
    if(country == '' ){
   errors[errors.length] = " Please Enter Country";
   }

  if(additional == '' ){
   errors[errors.length] = " Please Enter Additional Details";
   }
   if(!((additional.search(/www/i) == -1) && (additional.search(/http/i) == -1)))
	{
		 errors[errors.length] = "Please do not Enter links in Additional Requirements";
	}
	
	if(!((name.search(/www/i) == -1) && (name.search(/http/i) == -1)))
	{
		 errors[errors.length] = "Please Enter name correctly";
	}
	 if(!((mob.search(/www/i) == -1) && (mob.search(/http/i) == -1)))
	{
		 errors[errors.length] = "Please Enter mobile number correctly";
	}


   if (errors.length > 0) {
   reportErrors(errors);
   return false;
  }
   form.action="http://www.indiavoyages.com/submit.php";
return true;

}

function reportErrors(errors){
 var msg = "Please Enter Valid Data...\n";
 for (var i = 0; i<errors.length; i++) {
 var numError = i + 1;
  msg += "\n" + numError + ". " + errors[i];
}
 alert(msg);
}

