function header(path){
	if (path==null)
		path="./";
document.write('<table cellspacing="0" cellpadding="0" border="0" align=center width=100% background="'+path+'images/internal.jpg" height=91><tr><td colspan=3 height=50><img src="'+path+'images/545.gif" width="770" height="1" alt="" border="0"></td></tr><tr><td align=left><img src="'+path+'images/545.gif" width="50" height="1" alt="" border="0" align=left></td><td  align=left width=350><a href="http://www.indianholiday.com/about-us.html" class="topLinks" target=_blank>About Us</a>&nbsp;&nbsp;&nbsp;<a href="'+path+'disclaimer.html" class="topLinks">Disclaimer</a>&nbsp;&nbsp;&nbsp;<a href="'+path+'travel-services.html" class="topLinks">Travel Services</a>&nbsp;&nbsp;&nbsp;<a href="mailto:webmaster@indianvisit.com" class="topLinks">Contact Us</a></td></tr></table><table cellspacing="0" cellpadding="0" border="0" align=center width=100% background="'+path+'images/internalbg.jpg" height=22><tr><td align=left><img src="'+path+'images/internal2.jpg" width="122" height="22" alt="" border="0" align=left>&nbsp;&nbsp;<a href="'+path+'hotels-goa-beaches.html" class="frontLinks">Hotels on Goa beaches</a>&nbsp;&nbsp;&nbsp;&nbsp; <a href="'+path+'hotels-golden-temple.html" class="frontLinks">Hotels near Golden Temple</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="'+path+'kerala-backwaters.html" class="frontLinks">Hotels in Kerala Backwaters  </a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="'+path+'index.html" class="frontLinks">Home  </a></td></tr></table>')
}



function leftpanel(path){
	if (path==null)
		path="./";

document.write('<table cellspacing="0" cellpadding="0" border="0" align=left  width=137><tr><td height=55><!-- <br><br><br>&nbsp;<br> --></td></tr><tr><td background="'+path+'images/bg2.jpg" width=130 height=20  align=center class=td1><a href="'+path+'hotels-indian-states.html" class=hotelHeads>Hotels in Indian States </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-goa.html" class=hotelLinks>Hotels in Goa </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-rajasthan.html" class=hotelLinks>Hotels in Rajasthan </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'kerala-backwaters.html" class=hotelLinks>Hotels in Kerala </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=right class=td><a href="'+path+'hotels-indian-states.html" class=hotelLinks>More</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td background="'+path+'images/bg2.jpg" width=126 height=20 align=center  class=td1><a href="'+path+'hotels-indian-cities.html" class=hotelHeads>Hotels in Indian Cities </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-agra.html" class=hotelLinks>Hotels in Agra </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-new-delhi.html" class=hotelLinks>Hotels in New Delhi </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-ajmer.html" class=hotelLinks>Hotels in Ajmer</a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-chandigarh.html" class=hotelLinks>Hotels in Chandigarh</a></td><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=right class=td><a href="'+path+'hotels-indian-cities.html" class=hotelLinks>More</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td background="'+path+'images/bg2.jpg" width=126 height=20 align=center  class=td1><a href="'+path+'other-hotels-india.html" class=hotelHeads>Other Hotels in India </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'airport-hotels-india.html" class=hotelLinks>Airport Hotels  </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'luxury-hotels.html" class=hotelLinks>Luxury Hotels </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'boutique-hotels.html" class=hotelLinks>Boutique Hotels  </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'group-hotels.html" class=hotelLinks>Group Hotels </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-goa-beaches.html" class=hotelLinks>Beach Hotels  </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=left class=td><a href="'+path+'hotels-spa-ayurveda.html" class=hotelLinks>Spa and Ayurveda Hotels </a></td></tr><tr><td background="'+path+'images/bg.jpg" width=126 height=20 align=right class=td><a href="'+path+'other-hotels-india.html" class=hotelLinks>More</a>&nbsp;&nbsp;&nbsp;</td></tr></table>')
}


function footer(path){
	if (path==null)
		path="./";

document.write('<table cellspacing="0" cellpadding="0" border="0" align=center width=100% bgcolor=#006888 height=20><tr><td colspan="3" class=footer align="center"><b>Recognized by Ministry of Tourism, Government of India</b><br><img src="images/iato.gif" width="50" height="55" alt="Indian Association of Tour Operators (IATO) " border="0" vspace=5> <img src="images/pata.gif" width="40" height="45" alt="Pacific Asia Travel Association (PATA) " border="0" vspace=5> <img src="'+path+'images/asta-logo.gif" alt="American Society of Travel Agents" border="0"> </td></tr><tr colspan=3>	<td align="center" class=otherlinks>&copy; Hotels-of-India.com<!--<BR>	<table border="0" cellpadding="0" cellspacing="0" align="center" width="779">		<tr>	<td align="center" ><IMG SRC="images/iato.jpg" WIDTH="30" HEIGHT="51" BORDER="0" ALT="Member of Indian Association Tour Operators (IATO)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	<img src="'+path+'images/logo.gif" width="54" height="51">	&nbsp;&nbsp;<a href="'+path+'http://www.palacesonwheels.com"><IMG SRC="images/palaceinwheellogo.gif" WIDTH="74" HEIGHT="51" BORDER="0" ALT="Exclusive Internet Sales agent for Palace on Wheels"></a>	</td>	</tr>	<td align="center" VALIGN=TOP>	<font face="Arial" style="font-size:12pt" color="#FFFFFF">	<b>T&nbsp;R&nbsp;A&nbsp;V&nbsp;E&nbsp;L&nbsp;E&nbsp;R&nbsp;S&nbsp;&nbsp;&nbsp;H&nbsp;U&nbsp;B &nbsp;&nbsp;&nbsp;P&nbsp;V&nbsp;T.&nbsp;&nbsp;&nbsp; L&nbsp;T&nbsp;D.</b>	</font>	</td>	</tr>	<tr>	<td align="center">	<font face="Arial" style="font-size:8pt"  color="#FFFFFF">	C-62, Community Centre, Janak Cinema Complex, New Delhi-110058 (India) 	</font>	</td>	</tr>	<tr>	<td align="center">	<font face="Arial" style="font-size:8pt"  color="#FFFFFF">	Tel: ++91-11-25542045, 55453565, 55453566, Fax: +91-11-25547264 Cell #:9811624141	</font>	</td>	</tr>	<tr>	<td align="center">	<font face="Arial" style="font-size:8pt"  color="#FFFFFF">	Email ID: <a href="'+path+'mailto:nitinb@travelershub.com" class="emaillink">nitinb@travelershub.com</a>, <a href="'+path+'mailto:webmaster@travelershub.com" class="emaillink">webmaster@travelershub.com</a>	</font>	</td>	</tr>	<tr>	<td align="center">	<font face="Arial" style="font-size:8pt"  color="#FFFFFF">	Copyright &copy; 2001 - 2004 : Travelers Hub Pvt. LTD.	</font>	</td>	</tr>	<tr>	<td height="10"></td>	</tr>	</table>	</td>	</tr></table>--></TD></TR></table>')
}
function popUpHotelBooking(h,bgc)
{
ul=self.location;
bgc="D8F4FF";
//self.close()
//prompt(self.location);
siteName="Hotels-Of-India.com";
window.open("http://www.travelershub.com/cgi-bin/bookhotel-HOI.pl?siteName="+siteName+"&hotel="+h+"&bgc="+bgc+"&ul="+ul+"","dcc","toolbar=no,menubar=no,height=600,width=500,top=20,left=200,scrollbars=yes,location=no,status=yes,resizable=no,alwaysRaised=yes")

}


function validateHotelQry(form) {
var v=allblanksHotel(form)
isHotelQryQuery(form)
isHotelQryCountry(form)
isHotelQryEmail(form)
isHotelQryName(form)
if( v == true)
	{
		v=confirm("Have You entered \nthe information Correctly !!");
	}
return v;
}

function allblanksHotel(form) {
if( (isHotelQryName(form) && isHotelQryEmail(form)) && (isHotelQryCountry(form) && isHotelQryQuery(form)) ) {
 return true ;
}
if( (isHotelQryName(form) == false || isHotelQryEmail(form) == false ) || ( isHotelQryCountry(form) == false || isHotelQryQuery(form)==false ) ) {
composeHotel(form);
return false ;
   }
}
function composeHotel(form) {
var text = " You entered incorrectly or forgot to fill in ::\n"	
if(isHotelQryName(form) == false) {
text += "\nYour Name -- must be purely alphabetic"
}
if(isHotelQryEmail(form) == false) {
text += "\nYour E-mail -- improper/incomplete e-mail ID"
}
if(isHotelQryCountry(form) == false) {
text += "\nYour Country of Residence -- not selected yet"
}
if(isHotelQryQuery(form) == false) {
text += "\nComments/Query -- should atleast be a line"
}
alert(text)
}

//for country of residence
function isHotelQryCountry(form)
{
 if(form.selCountry.value == "NA")
	{
	 form.selCountry.focus(); 
	 return false; //presently used
	} 
 else
   return true;  
 }
//FOR EMAIL
function isHotelQryEmail(form) {
if (trim(form.txiEmail.value)== "")
	{
		form.txiEmail.focus();
		return false; // because  it is not optional 
	}
else
	{
		var eid=form.txiEmail.value=trim(form.txiEmail.value);
		if (eid.indexOf(' ')!= -1)
			{
			form.txiEmail.focus();
			return false ; // no spaces
			} 
		if (eid.length < 6 ){
			form.txiEmail.focus();
			return false ; // at least j.a@in
			}
		at=eid.indexOf('@', 0); //check from first position ---- 
		if ( at == -1 || at == 0){ //should not be at first place
			form.txiEmail.focus();
			return false ;
			}
		else
			{
				var at1=eid.indexOf('@', (at + 1)); //looking for another at one place ahead
				if ( at1 == -1 ) // ie only one at is there
				{
					var dot=eid.indexOf('.',(at + 1));//looking for just next value
					if(dot == (at + 1)|| dot== -1){ //if dot is not there or in the next place
						form.txiEmail.focus();
						return false ;	
						}
					else
						{
						 if ( (dot + 2 ) < eid.length )
							return true ;
						 else
						    {
							form.txiEmail.focus();
							return false ;
							}
						}
				}
				else // two @ are there
				{
				form.txiEmail.focus();
				return false;
				}
			}	
	form.txiEmail.focus();
	return false ;
	}		

}
//FOR Query
function isHotelQryQuery(form) {
form.txaQuery.value=trim(form.txaQuery.value);
if (trim(form.txaQuery.value) == "") {
form.txaQuery.focus();
return false;
}
else {
			
	     if(checkfornum(form.txaQuery.value)==1)// i. e, it is a pure number that is invalid
		   {
			form.txaQuery.focus();
			return(false);
			}
		qry=trim(form.txaQuery.value);
		if(qry.length <= 6 )// if it is too short
			{
			 form.txaQuery.focus();
			 return(false);
			}	
return true ;
   }
}


/*//FOR CITY
function isHotelQryCity(form) {
if (trim(form.txiReqCity.value) == "") {
form.txiReqCity.focus();
return false ;
}
else {
			form.txiReqCity.value=trim(form.txiReqCity.value);
	     if(checkforchar(form.txiReqCity.value)==0)
		   {
			form.txiReqCity.focus();
			return(false);
			}
return true ;
   }
}*/

//FOR NAME
function isHotelQryName(form) {
if (trim(form.txiName.value) == "") {
form.txiName.focus();
return false ;
}
else {
			form.txiName.value=trim(form.txiName.value);
	     if(checkforchar(form.txiName.value)==0)
		   {
			form.txiName.focus();
			return(false);
			}
return true ;
   }
}

