function toggleiMenu(id) {

	

		var e = document.getElementById(id);

		

		if (e) {

			if (e.style.display != "block") {

				var a=0;

				

				var nam="q";

				for(a=1;a<=38;a++){

				nam="q"+a+"a";

				//alert(nam);

				document.getElementById(nam).style.display="none";

				}

				

				

				var hei=document.getElementById('divmidle').style.height;

				

				e.style.display = "block";

			//	alert(hei);

				//document.getElementById('divmidle').style.height=hei;

//alert(hei);

				

				

			

			} else {

				e.style.display = "none";

				

			}

		}

	

}







 

 function addchildren1(numb){

 

  //var mem="child1";

  //document.getElementById(mem).style.display='';

  var hei=400;

   

  //for(b=1;b<=10;b++){

 //mem="child"+b;

 

//alert(hei);

 hei=hei+20;

 

 

 document.getElementById1('divhotel').style.height="500px";

 

 //document.getElementById('Reservation').style.height=hei;

 

 

 var DivHeight = document.getElementById('divhotel').style.height;

	alert(DivHeight);

 //document.getElementById('divhotel').style.height=hei;

 //document.getElementById('bookingtable').style.height +=100;

 

 //document.getElementById('Reservation').style.height +=100;

 

 //document.getElementById(mem).style.display='';

 //}

  

  



 }

 

 function addchildren2(numb){

 

  var id=document.getElementById('Select3');

 alert(id);

 }

 

 function addchildren(numb){

 

 

  var id=document.getElementById('Select3').selectedIndex;

  

Bokingforum.chi.value=id;

//alert(Bokingforum.chi.value);

//var btn=document.getElementById('searchbtn').style.position;





  var b=0;

  var mem="child"+b;



 

  

  var hei=400;

  

  

  



 var hei2=800;





 if(id>0){

 

document.getElementById('tab1').style.display='block';

 

 

 for(b=1;b<=id;b++){

  hei2=hei2+30;

  hei=hei+30;

// document.getElementById('divhotel').style.height=hei;

   hei=hei+10;

 //document.getElementById('Reservation').style.height=hei;

//  document.getElementById('divmidle').style.height=hei2;

 

 

 mem="child"+b;

// alert(document.getElementById(mem).style.display);

  document.getElementById(mem).style.display='block';

  

  }

  

  for(b=id+1;b<=10;b++){

 

mem="child"+b;

  document.getElementById(mem).style.display="none";

 

 }

 

 }

 else{

 //document.getElementById('tab1').style.display='none';

 for(b=1;b<=10;b++){

 mem="child"+b;

  document.getElementById(mem).style.display="none";

  

   //hei=hei-30;

  // document.getElementById('divhotel').style.height=hei;

 //document.getElementById('Reservation').style.height=hei;

  

  }

  

  

  document.getElementById('tab1').style.display='none';

  //document.getElementById('Reservation').style.height="440px";

  // document.getElementById('divhotel').style.height="420px";

   //document.getElementById('divmidle').style.height="800px";

 }

 

 

 

 

 

 }

 

 

 

 

 

 

 

 /*

 function addchildren1(numb){

 

  var id=document.getElementById('Select3');

 alert(id);

 }

 

 function addchildren(numb){

 



  var id=document.getElementById('Select3').selectedIndex;





//var btn=document.getElementById('searchbtn').style.position;





  var b=0;

  var mem="child"+b;



 

  

  var hei=400;

  

  

  



 var hei2=800;



 document.getElementById('tab1').style.display='block';

 if(id>0){

 

document.getElementById('tab1').style.display='block';

 

 

 for(b=1;b<=id;b++){

  hei2=hei2+30;

  hei=hei+30;

 document.getElementById('divhotel').style.height=hei;

   hei=hei+10;

 document.getElementById('Reservation').style.height=hei;

  document.getElementById('divmidle').style.height=hei2;

 

 

 mem="child"+b;

// alert(document.getElementById(mem).style.display);

  document.getElementById(mem).style.display='block';

  

  }

  

  for(b=id+1;b<=10;b++){

 

mem="child"+b;

  document.getElementById(mem).style.display="none";

 

 }

 

 }

 else{

 document.getElementById('tab1').style.display='none';

 for(b=1;b<=10;b++){

 mem="child"+b;

  document.getElementById(mem).style.display="none";

  

   //hei=hei-30;

  // document.getElementById('divhotel').style.height=hei;

 //document.getElementById('Reservation').style.height=hei;

  

  }

  

  document.getElementById('Reservation').style.height="440px";

   document.getElementById('divhotel').style.height="420px";

   document.getElementById('divmidle').style.height="800px";

 }

 

 

 

 

 

 }

 

 */

 

function Chkhotelbooking(){

 

 var city=Bokingforum.CITY.value;

 

 var chkin=Bokingforum.checkin.value;

 

  var chkout=Bokingforum.checkout.value;

  

  

  document.getElementById('labnights').style.display="none";

  document.getElementById('labcity').style.display="none";

  document.getElementById('labchkin').style.display="none";

   document.getElementById('labchkout').style.display="none";

var night=Bokingforum.NIGHTS.value;



var continues=1;

 //alert(city+"-"+chkin+"-"+chkout);

 

 

 if(!city){

 

document.getElementById('labcity').style.display="";



continues=0;

//alert("asdd");

 }

 

 if(chkin=="mm/dd/yyyy"){

 document.getElementById('labchkin').style.display="";

 

 continues=0;

 

 }else{

 

var index = Bokingforum.checkin.value.indexOf("/");

var inm=Bokingforum.checkin.value.substring(0,index);



 

var ind=Bokingforum.checkin.value.substring(index+1,index+3);





var iny=Bokingforum.checkin.value.substring(index+4,index+8);





 index = Bokingforum.checkout.value.indexOf("/");

 

var outm=Bokingforum.checkout.value.substring(0,index);



 

var outd=Bokingforum.checkout.value.substring(index+1,index+3);





var outy=Bokingforum.checkout.value.substring(index+4,index+8);



Bokingforum.CINM.value=inm;

Bokingforum.CIND.value=ind;

Bokingforum.CINY.value=iny;







Bokingforum.OUTM.value=outm;

Bokingforum.OUTD.value=outd;

Bokingforum.OUTY.value=outy;









 

//alert("in="+Bokingforum.CINM.value+"-"+Bokingforum.CIND.value+"-"+Bokingforum.CINY.value);





//alert("out="+Bokingforum.OUTM.value+"-"+Bokingforum.OUTD.value+"-"+Bokingforum.OUTY.value);



//indate=new Date(iny,inm,ind,0,0,0,0);



//outdate=new Date(outy,outm,outd);



//alert(indate+"-"+outdate);



 

 

 }

 

 if(chkout=="mm/dd/yyyy"){

  document.getElementById('labchkout').style.display="";

  

  continues=0;

 

 }

 if(!night){

  document.getElementById('labnights').style.display="";

  

  continues=0;

  

 }

 

 

 

 if(continues==1){





document.Bokingforum.submit();



 }

 

 

 

 

 

 

 

 

 

 }

 

function nightchk(){

var a=0;



var b=Bokingforum.NIGHTS.value.substring(Bokingforum.NIGHTS.value.length-1,Bokingforum.NIGHTS.value.length);



 



a=a*b;

a+='p';



if(a=='NaNp'){



Bokingforum.NIGHTS.value=Bokingforum.NIGHTS.value.substring(0,Bokingforum.NIGHTS.value.length-1);

}













} 



function adults(){



Bokingforum.ADULTS.value=Bokingforum.Adlt.selectedIndex+1;

//alert(Bokingforum.ADULTS.value);



}



function rooms(){



Bokingforum.ROOMS.value=Bokingforum.Roms.selectedIndex+1;

//alert(Bokingforum.ROOMS.value);



}

/*

function child(ch,no){

var child="ch"+no;



alert(ch+"-"+child);



//document.getElementById(child).value="hewwlo";

//document.getElementById(child).value=



alert(document.getElementById(ch).selectedIndex);



//Bokingforum.chi.value=Bokingforum.children.selectedIndex+1;

alert(document.getElementById(child).value);





}*/



function child11(){



Bokingforum.ch1.value=Bokingforum.child1.selectedIndex+1;



//alert(Bokingforum.ch1.value);

}





function child12(){



Bokingforum.ch2.value=Bokingforum.child2.selectedIndex+1;



//alert(Bokingforum.ch2.value);

}



function child13(){



Bokingforum.ch1.value=Bokingforum.child3.selectedIndex+1;



//alert(Bokingforum.ch3.value);

}



function child14(){



Bokingforum.ch1.value=Bokingforum.child4.selectedIndex+1;



//alert(Bokingforum.ch4.value);

}



function child15(){



Bokingforum.ch5.value=Bokingforum.child5.selectedIndex+1;



//alert(Bokingforum.ch5.value);

}



function child16(){



Bokingforum.ch6.value=Bokingforum.child6.selectedIndex+1;



//alert(Bokingforum.ch6.value);

}



function child17(){



Bokingforum.ch7.value=Bokingforum.child7.selectedIndex+1;



//alert(Bokingforum.ch7.value);

}

function child18(){



Bokingforum.ch8.value=Bokingforum.child8.selectedIndex+1;



//alert(Bokingforum.ch8.value);

}

function child19(){



Bokingforum.ch9.value=Bokingforum.child9.selectedIndex+1;



//alert(Bokingforum.ch9.value);

}

function child110(){



Bokingforum.ch10.value=Bokingforum.child10.selectedIndex+1;



//alert(Bokingforum.ch10.value);

}

function show(){

if(document.getElementById('mail').style.display==""){



document.getElementById('mail').style.display="none";

}else{

document.getElementById('mail').style.display="";

}



}



function contects(pag){



var a="help/"+pag+".html";



/*window.open("'"+a+"'",'new windows','width=400,height=200');*/

window.open(a,'mywindow','width=500,height=600,scrollbars=yes ');



}



function validateFaqs(){





document.getElementById('labnam').style.display="none";

  

   document.getElementById('labcomit').style.display="none";

   document.getElementById('labphn').style.display="none";

document.getElementById('labmail').style.display="none";



//input detail///

var email=document.getElementById('cemail').value;

var name=document.getElementById('cname').value;

var phn=document.getElementById('cphone').value;

var comit=document.getElementById('ccomit').value;

//label detail//

var labemail=document.getElementById('labmail').value;

var labname=document.getElementById('labnam').value;

var labphn=document.getElementById('labphn').value;

var labcomit=document.getElementById('labcomit').value;

 var a=true;

 if(!name){

 document.getElementById('labnam').style.display="";

 a=false;

 

 }

 if(!comit){

 

 document.getElementById('labcomit').style.display="";

a=false;

 }

 var emailvalidate=validateEmail(email);

if(!emailvalidate){

document.getElementById('labmail').style.display="";

a=false;

}



var b=2/phn;

if(!phn){

document.getElementById('labphn').style.display="";

a=false;

}

if(!b){



document.getElementById('labphn').style.display="";

a=false;



}





if(a){

//alert("tru");

return true;



}else{

return false;

}





}





function validateEmail(strEmail)

		{

			validRegExp = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/ ;



			if (strEmail.search(validRegExp) == -1) 

			{

				//alert("A valid e-mail address is required.");

				return false;

			}else{

			return true;

			}

		}


function page_change(url){



var ur="./indiavacation/"+url;

document.getElementById('iframe_src').src=ur;



}

