function validate1()
{
var num1=document.frm1.txt_name;
var num2=document.frm1.txt_email;
var num5=document.frm1.chkin;
var num6=document.frm1.chkout;
var num3=document.frm1.select1;
var num4=document.frm1.select2;

var htlname = document.frm1.htlname.value;
var remark = document.frm1.txt_rmrk.value;

var locationObj = window.location;

name=num1.value;
email=num2.value;
chkin=num5.value;
chkout=num6.value;
select1=num3.value;
select2=num4.value;

if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}     
else if(chkin.length==0)
{
alert("plz enter the Check-In-Date");
num5.focus();
return false;
}
else if(chkout.length==0)
{
alert("plz enter the Check-Out-Date");
num6.focus();
return false;
}
if(document.frm1.select1.selectedIndex==0)
    {
      alert("Please select No. of People");
      document.frm1.select1.focus();
      return false;
        
    }
	if(document.frm1.select2.selectedIndex==0)
    {
      alert("Please Selcet No. of Rooms");
      document.frm1.select2.focus();
      return false;
	}
else
{
  flag=true;
 var ml;
ml='http://www.india-tours.com/final/hotelpackagemail1.php?name='+name+'&email='+email+'&chkin='+chkin+'&chkout='+chkout+'&select1='+select1+'&select2='+select2+'&htlname='+htlname+'&remark='+remark+'&locationObj='+locationObj;
newWin =window.open(ml,"mail",'resizable=no,location=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 frm1.reset();
return false;	
}
}

//********* 2 ************
function validate2()
{
var num1=document.frm2.txt_name;
var num2=document.frm2.txt_email;
var num5=document.frm2.chkin;
var num6=document.frm2.chkout;
var num3=document.frm2.select1;
var num4=document.frm2.select2;

var htlname = document.frm2.htlname.value;
var remark = document.frm2.txt_rmrk.value;

var locationObj = window.location;

name=num1.value;
email=num2.value;
chkin=num5.value;
chkout=num6.value;
select1=num3.value;
select2=num4.value;
if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}     
else if(chkin.length==0)
{
alert("plz enter the Check-In-Date");
num5.focus();
return false;
}
else if(chkout.length==0)
{
alert("plz enter the Check-Out-Date");
num6.focus();
return false;
}
if(document.frm2.select1.selectedIndex==0)
    {
      alert("Please select No. of People");
      document.frm2.select1.focus();
      return false;
        
    }
	if(document.frm2.select2.selectedIndex==0)
    {
      alert("Please Selcet No. of Rooms");
      document.frm2.select2.focus();
      return false;
	}
else
{
  flag=true;
 var ml;
ml='http://www.india-tours.com/final/hotelpackagemail1.php?name='+name+'&email='+email+'&chkin='+chkin+'&chkout='+chkout+'&select1='+select1+'&select2='+select2+'&htlname='+htlname+'&remark='+remark+'&locationObj='+locationObj;
newWin =window.open(ml,"mail",'resizable=no,location=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 frm2.reset();
return false;	
}
}
/*************** 3 ***************/
function validate3()
{
var num1=document.frm3.txt_name;
var num2=document.frm3.txt_email;
var num5=document.frm3.chkin;
var num6=document.frm3.chkout;
var num3=document.frm3.select1;
var num4=document.frm3.select2;

var htlname = document.frm3.htlname.value;
var remark = document.frm3.txt_rmrk.value;

var locationObj = window.location;

name=num1.value;
email=num2.value;
chkin=num5.value;
chkout=num6.value;
select1=num3.value;
select2=num4.value;
if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}     
else if(chkin.length==0)
{
alert("plz enter the Check-In-Date");
num5.focus();
return false;
}
else if(chkout.length==0)
{
alert("plz enter the Check-Out-Date");
num6.focus();
return false;
}
if(document.frm3.select1.selectedIndex==0)
    {
      alert("Please select No. of People");
      document.frm3.select1.focus();
      return false;
        
    }
	if(document.frm3.select2.selectedIndex==0)
    {
      alert("Please Selcet No. of Rooms");
      document.frm3select2.focus();
      return false;
	}
else
{
  flag=true;
 var ml;
ml='http://www.india-tours.com/final/hotelpackagemail1.php?name='+name+'&email='+email+'&chkin='+chkin+'&chkout='+chkout+'&select1='+select1+'&select2='+select2+'&htlname='+htlname+'&remark='+remark+'&locationObj='+locationObj;
newWin =window.open(ml,"mail",'resizable=no,location=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 frm3.reset();
return false;	
}
}
/******************* 4 ************************/

function validate4()
{
var num1=document.frm4.txt_name;
var num2=document.frm4.txt_email;
var num5=document.frm4.chkin;
var num6=document.frm4.chkout;
var num3=document.frm4.select1;
var num4=document.frm4.select2;

var htlname = document.frm4.htlname.value;
var remark = document.frm4.txt_rmrk.value;

var locationObj = window.location;

name=num1.value;
email=num2.value;
chkin=num5.value;
chkout=num6.value;
select1=num3.value;
select2=num4.value;

if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}     
else if(chkin.length==0)
{
alert("plz enter the Check-In-Date");
num5.focus();
return false;
}
else if(chkout.length==0)
{
alert("plz enter the Check-Out-Date");
num6.focus();
return false;
}
if(document.frm4.select1.selectedIndex==0)
    {
      alert("Please select No. of People");
      document.frm4.select1.focus();
      return false;
        
    }
	if(document.frm4.select2.selectedIndex==0)
    {
      alert("Please Selcet No. of Rooms");
      document.frm4.select2.focus();
      return false;
	}
else
{
  flag=true;
 var ml;
ml='http://www.india-tours.com/final/hotelpackagemail1.php?name='+name+'&email='+email+'&chkin='+chkin+'&chkout='+chkout+'&select1='+select1+'&select2='+select2+'&htlname='+htlname+'&remark='+remark+'&locationObj='+locationObj;
newWin =window.open(ml,"mail",'resizable=no,location=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 frm4.reset();
return false;	
}
}
/**************** 5 *********************/

function validate5()
{
var num1=document.frm5.txt_name;
var num2=document.frm5.txt_email;
var num5=document.frm5.chkin;
var num6=document.frm5.chkout;
var num3=document.frm5.select1;
var num4=document.frm5.select2;

var htlname = document.frm5.htlname.value;
var remark = document.frm5.txt_rmrk.value;

var locationObj = window.location;

name=num1.value;
email=num2.value;
chkin=num5.value;
chkout=num6.value;
select1=num3.value;
select2=num4.value;

if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}     
else if(chkin.length==0)
{
alert("plz enter the Check-In-Date");
num5.focus();
return false;
}
else if(chkout.length==0)
{
alert("plz enter the Check-Out-Date");
num6.focus();
return false;
}
if(document.frm5.select1.selectedIndex==0)
    {
      alert("Please select No. of People");
      document.frm5.select1.focus();
      return false;
        
    }
	if(document.frm5.select2.selectedIndex==0)
    {
      alert("Please Selcet No. of Rooms");
      document.frm5.select2.focus();
      return false;
	}
else
{
  flag=true;
 var ml;
ml='http://www.india-tours.com/final/hotelpackagemail1.php?name='+name+'&email='+email+'&chkin='+chkin+'&chkout='+chkout+'&select1='+select1+'&select2='+select2+'&htlname='+htlname+'&remark='+remark+'&locationObj='+locationObj;
newWin =window.open(ml,"mail",'resizable=no,location=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 frm5.reset();
return false;	
}
}
/**************************** 6 **************************/

function validate6()
{
var num1=document.frm6.txt_name;
var num2=document.frm6.txt_email;
var num5=document.frm6.chkin;
var num6=document.frm6.chkout;
var num3=document.frm6.select1;
var num4=document.frm6.select2;

var htlname = document.frm6.htlname.value;
var remark = document.frm6.txt_rmrk.value;

var locationObj = window.location;

name=num1.value;
email=num2.value;
chkin=num5.value;
chkout=num6.value;
select1=num3.value;
select2=num4.value;

if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}     
else if(chkin.length==0)
{
alert("plz enter the Check-In-Date");
num5.focus();
return false;
}
else if(chkout.length==0)
{
alert("plz enter the Check-Out-Date");
num6.focus();
return false;
}
if(document.frm6.select1.selectedIndex==0)
    {
      alert("Please select No. of People");
      document.frm6.select1.focus();
      return false;
        
    }
	if(document.frm6.select2.selectedIndex==0)
    {
      alert("Please Selcet No. of Rooms");
      document.frm6.select2.focus();
      return false;
	}
else
{
  flag=true;
 var ml;
ml='http://www.india-tours.com/final/hotelpackagemail1.php?name='+name+'&email='+email+'&chkin='+chkin+'&chkout='+chkout+'&select1='+select1+'&select2='+select2+'&htlname='+htlname+'&remark='+remark+'&locationObj='+locationObj;
newWin =window.open(ml,"mail",'resizable=no,location=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 frm6.reset();
return false;	
}
}