//

var cntdis = '<option value="Afghanistan">Afghanistan <option value="Albania">Albania <option value="Algeria">Algeria <option value="American Samoa">American Samoa <option value="Andorra">Andorra <option value="Angola">Angola <option value="Anguilla">Anguilla <option value="Anguilla">Antarctica <option value="Antigua and Barbuda">Antigua and Barbuda <option value="Argentina">Argentina <option value="Armenia">Armenia <option value="Aruba">Aruba <option value="Australia">Australia <option value="Austria">Austria <option value="Azerbaijan">Azerbaijan <option value="Bahamas">Bahamas <option value="Bahrain">Bahrain <option value="Bangladesh">Bangladesh <option value="Barbados">Barbados <option value="Belarus">Belarus <option value="Belgium">Belgium <option value="Belize">Belize <option value="Benin">Benin <option value="Bermuda">Bermuda <option value="Bhutan">Bhutan <option value="Bolivia">Bolivia <option value="Bosnia and Herzegovina">Bosnia &amp; Herzegovina <option value="Botswana">Botswana <option value="Brazil">Brazil <option value="British Indian Ocean Territory">British Indian Ocean <option value="British Virgin Islands">British Virgin Islands <option value="Brunei">Brunei <option value="Bulgaria">Bulgaria <option value="Burkina Faso">Burkina Faso <option value="Burundi">Burundi <option value="Cambodia">Cambodia <option value="Cameroon">Cameroon <option value="Canada">Canada <option value="Cape Verde">Cape Verde <option value="Cayman Islands">Cayman Islands <option value="Central African Republic">Central African Rep. <option value="Chad">Chad <option value="Chile">Chile <option value="China">China <option value="Christmas Island">Christmas Island <option value="Cocos Islands">Cocos Islands <option value="Colombia">Colombia <option value="Comoros">Comoros <option value="Congo">Congo <option value="Cook Islands">Cook Islands <option value="Costa Rica">Costa Rica <option value="Croatia">Croatia <option value="Cuba">Cuba <option value="Cyprus">Cyprus <option value="Czech Republic">Czech Republic <option value="Denmark">Denmark <option value="Djibouti">Djibouti <option value="Dominica">Dominica <option value="Dominican Republic">Dominican Republic <option value="East Timor">East Timor <option value="Ecuador">Ecuador <option value="Egypt">Egypt <option value="El Salvador">El Salvador <option value="Equatorial Guinea">Equatorial Guinea <option value="Eritrea">Eritrea <option value="Estonia">Estonia <option value="Ethiopia">Ethiopia <option value="Falkland Islands">Falkland Islands <option value="Faroe Islands">Faroe Islands <option value="Fiji">Fiji <option value="Finland">Finland <option value="France">France <option value="French Guiana">French Guiana <option value="French Polynesia">French Polynesia <option value="French Southern Territories">French Southern Terr. <option value="Gabon">Gabon <option value="Gambia">Gambia <option value="Georgia">Georgia <option value="Germany">Germany <option value="Ghana">Ghana <option value="Gibraltar">Gibraltar <option value="Greece">Greece <option value="Greenland">Greenland <option value="Grenada">Grenada <option value="Guadeloupe">Guadeloupe <option value="Guam">Guam <option value="Guatemala">Guatemala <option value="Guinea">Guinea <option value="Guinea-Bissau">Guinea-Bissau <option value="Guyana">Guyana <option value="Haiti">Haiti <option value="Heard and McDonald Islands">Heard &amp; McDonald <option value="Honduras">Honduras <option value="Hong Kong">Hong Kong <option value="Hungary">Hungary <option value="Iceland">Iceland <option value="India">India <option value="Indonesia">Indonesia <option value="Iran">Iran <option value="Iraq">Iraq <option value="Ireland">Ireland <option value="Israel">Israel <option value="Italy">Italy <option value="Ivory Coast">Ivory Coast <option value="Jamaica">Jamaica <option value="Japan">Japan <option value="Jordan">Jordan <option value="Kazakhstan">Kazakhstan <option value="Kenya">Kenya <option value="Kiribati">Kiribati <option value="Korea, North">Korea, North <option value="Korea, South">Korea, South <option value="Kuwait">Kuwait <option value="Kyrgyzstan">Kyrgyzstan <option value="Laos">Laos <option value="Latvia">Latvia <option value="Lebanon">Lebanon <option value="Lesotho">Lesotho <option value="Liberia">Liberia <option value="Libya">Libya <option value="Liechtenstein">Liechtenstein <option value="Lithuania">Lithuania <option value="Luxembourg">Luxembourg <option value="Macau">Macau <option value="Madagascar">Madagascar <option value="Malawi">Malawi <option value="Malaysia">Malaysia <option value="Maldives">Maldives <option value="Mali">Mali <option value="Malta">Malta <option value="Marshall Islands">Marshall Islands <option value="Martinique">Martinique <option value="Mauritania">Mauritania <option value="Mauritius">Mauritius <option value="Mayotte">Mayotte <option value="Mexico">Mexico <option value="Micronesia, Federated States of">Micronesia, Fed. St. <option value="Moldova">Moldova <option value="Monaco">Monaco <option value="Mongolia">Mongolia <option value="Montserrat">Montserrat <option value="Morocco">Morocco <option value="Mozambique">Mozambique <option value="Myanmar">Myanmar <option value="Namibia">Namibia <option value="Nauru">Nauru <option value="Nepal">Nepal <option value="Netherlands">Netherlands <option value="Netherlands Antilles">Netherlands Antilles <option value="New Caledonia">New Caledonia <option value="New Zealand">New Zealand <option value="Nicaragua">Nicaragua <option value="Niger">Niger <option value="Nigeria">Nigeria <option value="Niue">Niue <option value="Norfolk Island">Norfolk Island <option value="Northern Mariana Islands">Northern Mariana Isl. <option value="Norway">Norway <option value="Oman">Oman <option value="Pakistan">Pakistan <option value="Palau">Palau <option value="Panama">Panama <option value="Papua New Guinea">Papua New Guinea <option value="Paraguay">Paraguay <option value="Peru">Peru <option value="Philippines">Philippines <option value="Pitcairn Island">Pitcairn Island <option value="Poland">Poland <option value="Portugal">Portugal <option value="Puerto Rico">Puerto Rico <option value="Qatar">Qatar <option value="Reunion">Reunion <option value="Romania">Romania <option value="Russia">Russia <option value="Rwanda">Rwanda <option value="S. Georgia and S. Sandwich Isls.">S.Georgia &amp; S.Sand. <option value="Saint Kitts &amp; Nevis">Saint Kitts &amp; Nevis <option value="Saint Lucia">Saint Lucia <option value="Saint Vincent and The Grenadines">St.Vincent &amp; Gren. <option value="Samoa">Samoa <option value="San Marino">San Marino <option value="Sao Tome and Principe">Sao Tome &amp; Principe <option value="Saudi Arabia">Saudi Arabia <option value="Senegal">Senegal <option value="Seychelles">Seychelles <option value="Seychelles">Seychelles <option value="Singapore">Singapore <option value="Slovakia">Slovakia <option value="Slovenia">Slovenia <option value="Somalia">Somalia <option value="South Africa">South Africa <option value="Spain">Spain <option value="Sri Lanka">Sri Lanka <option value="St. Helena">St. Helena <option value="St. Pierre and Miquelon">St. Pierre &amp; Miquelon <option value="Sudan">Sudan <option value="Suriname">Suriname <option value="Svalbard and Jan Mayen Islands">Svalbard &amp; J.Mayen <option value="Swaziland">Swaziland <option value="Sweden">Sweden <option value="Switzerland">Switzerland <option value="Syria">Syria <option value="Taiwan">Taiwan <option value="Tajikistan">Tajikistan <option value="Tanzania">Tanzania <option value="Thailand">Thailand <option value="Togo">Togo <option value="Tokelau">Tokelau <option value="Tonga">Tonga <option value="Trinidad and Tobago">Trinidad and Tobago <option value="Tunisia">Tunisia <option value="Turkey">Turkey <option value="Turkmenistan">Turkmenistan <option value="Turks and Caicos Islands">Turks &amp; Caicos Isl. <option value="Tuvalu">Tuvalu <option value="U.S. Minor Outlying Islands">U.S.Minor Outlying Isl. <option value="Uganda">Uganda <option value="Ukraine">Ukraine <option value="United Arab Emirates">United Arab Emirates <option value="United Kingdom">United Kingdom <option value="United States of America">U.S.A. <option value="Uruguay">Uruguay <option value="Uzbekistan">Uzbekistan <option value="Vanuatu">Vanuatu <option value="Vatican City">Vatican City <option value="Venezuela">Venezuela <option value="Vietnam">Vietnam <option value="Virgin Islands">Virgin Islands <option value="Wallis and Futuna Islands">Wallis &amp; Futuna Isl. <option value="Western Sahara">Western Sahara <option value="Yemen">Yemen <option value="Yugoslavia (Former)">Yugoslavia (Former) <option value="Zaire">Zaire <option value="Zambia">Zambia <option value="Zimbabwe">Zimbabwe';



function headermain(path){

if (path==null){

		path="./";

	}



document.writeln('<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="100%" align=center><font class=sitenametop>Tourist Places in India</font></td></tr>	<!-- HEADER ROW  -->		<tr><td width="100%" BACKGROUND="http://www.touristplacesinindia.com/images/top.jpg" valign=top  WIDTH="779" HEIGHT="176" BORDER="0" ALT="Tourist Places in India"  style="background-repeat:NO-repeat;"></td></tr></table>');

}



function rightpanelmain(path){

if (path==null){

		path="./";

	}



document.writeln(' <TABLE WIDTH="100%" CELLPADDING=2 CELLSPACING=2 BORDER=0 ALIGN=CENTER bgcolor="#A0A838">									<TR><TD><a href="http://www.touristplacesinindia.com/tourist-places-india.html" CLASS="LEFTPANELLINKSheading">Tourist Places In India</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/agra/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Agra</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/amritsar/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Amritsar</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/goa/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Goa</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/kerala-backwaters/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Kerala</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/rajasthan/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Rajasthan</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/mumbai-bombay/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Mumbai</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/new-delhi/index.html" CLASS="LEFTPANELLINKS">Tourist Places in New Delhi</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/bangalore/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Bangalore</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/chennai-madras/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Chennai-Madras</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/hyderabad/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Hyderabad</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/karnataka/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Karnataka</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/kolkata-calcutta/index.html" CLASS="LEFTPANELLINKS">Tourist Places in Kolkata-Calcutta</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/tourist-places-india.html" CLASS="LEFTPANELLINKS">&raquo;More Tourist Places in India </a></TD></TR> 							   		<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/index.html" CLASS="LEFTPANELLINKSheading">Hotels In India - States</a></TD></TR>									<!-- <TR><TD><a href="http://www.touristplacesinindia.com/#" CLASS="LEFTPANELLINKS">Hotels in Andhra Pradesh</td></tr>  -->									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/goa-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Goa</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/gujarat/accommodations.html" CLASS="LEFTPANELLINKS">Hotels in Gujarat</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/himachal-pradesh-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Himachal Pradesh</td></tr> 									<TR><TD><a href="http://www.touristplacesinindia.com/karnataka/karnataka-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Karnataka</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/kerala-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Kerala</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/maharashtra/maharashtra-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Maharashtra</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/rajasthan-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Rajasthan</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/tamil-nadu-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Tamil Nadu</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/uttaranchal-hotels.html" CLASS="LEFTPANELLINKS">Hotels in Uttaranchal</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/state-hotels/index.html" CLASS="LEFTPANELLINKS">&raquo;More Hotels in Indian States</a></TD></TR> 			 									 <TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/index.html" CLASS="LEFTPANELLINKSheading">Hotels In India - Cities</a></TD></TR>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/agra-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Agra</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/ahmedabad/ahmedabad-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Ahmedabad</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/bangalore-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Bangalore</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/bhopal/bhopal-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Bhopal</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/chennai-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Chennai</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/coimbatore/coimbatore-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Coimbatore </td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/gurgaon/gurgaon-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Gurgaon </td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/hyderabad-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Hyderabad</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/indore/indore-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Indore</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/jaipur-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Jaipur </td></tr><!-- <TR><TD><a href="http://www.touristplacesinindia.com/#" CLASS="LEFTPANELLINKS">	Hotels in Jalandhar</td></tr> -->									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/khajuraho-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Khajuraho</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/cochin/accommodations.html" CLASS="LEFTPANELLINKS">	Hotels in Kochi</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/kolkata-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Kolkata </td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/mumbai-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in Mumbai </td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/new-delhi-hotels.html" CLASS="LEFTPANELLINKS">	Hotels in New Delhi</td></tr>									<TR><TD><a href="http://www.touristplacesinindia.com/pune/accommodations.html" CLASS="LEFTPANELLINKS">	Hotels in Pune </td></tr>									<!-- <TR><TD><a href="#" CLASS="LEFTPANELLINKS">	Hotels in Thiruvananthapuram</td></tr>									<TR><TD><a href="#" CLASS="LEFTPANELLINKS">	Hotels in Vishakhapatnam </td></tr> -->									<TR><TD><a href="http://www.touristplacesinindia.com/hotels/india/city-hotels/index.html" CLASS="LEFTPANELLINKS">&raquo;More Hotels in Indian Cities </a></TD></TR> 							   </TABLE>');



}



function standardpanel(path){

	if (path==null){

		path="../";

	}



document.write('<TABLE CELLPADDING=2 CELLSPACING=1 WIDTH="779" ALIGN=CENTER BGCOLOR="white" style="{border: 1 solid #000000;font-family: verdana; font-size:12px;}" border=0><TR><TD BGCOLOR="#F1F1F1" align=center style="{color:#A0A838;}"><a href="http://www.touristplacesinindia.com/index.html" style="{color:#000000; text-decoration: none;}"> Home</A> | <a href="http://www.touristplacesinindia.com/tourist-zones-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Zones of India</A> | <a href="http://www.touristplacesinindia.com/tourist-states-of-india.html" style="{color:#000000; text-decoration: none;}"> Tourist States in India</A> | <a href="http://www.touristplacesinindia.com/tourist-cities-of-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Cities in India</A> | <a href="http://www.touristplacesinindia.com/hotels-india.html" style="{color:#000000; text-decoration: none;}"> Hotels In India</A> | <a href="http://www.touristplacesinindia.com/hill-stations-of-india.html" style="{color:#000000; text-decoration: none;}"> Hill Stations In India</A> | <a href="http://www.touristplacesinindia.com/wildlife-destinations-of-india.html" style="{color:#000000; text-decoration: none;}"> Wildlife in India</A> | <a href="http://www.touristplacesinindia.com/pilgrimage-destinations-of-india.html" style="{color:#000000; text-decoration: none;}"> Pilgrimage Destinations in India</A> | <a href="http://www.touristplacesinindia.com/heritage-destinations-of-india.html" style="{color:#000000; text-decoration: none;}"> Heritage Destinations in India</A> | <a href="http://www.touristplacesinindia.com/monumental-heritage-india.html" style="{color:#000000; text-decoration: none;}"> Monuments in India</A> |<br> <a href="http://www.touristplacesinindia.com/temple-sites-india.html" style="{color:#000000; text-decoration: none;}"> Temples in India</A> | <a href="http://www.touristplacesinindia.com/theme-holidays-india.html" style="{color:#000000; text-decoration: none;}"> Theme Holidays in India</A> | <a href="http://www.touristplacesinindia.com/tourist-places-beyond-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Places Beyond India</A> | <a href="http://www.touristplacesinindia.com/tourist-services-for-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Services for India</A></TD></TR><TR><TD BGCOLOR="#CCCCCC" align=center style="{color:#A0A838;}">		<a href="http://www.touristplacesinindia.com/tour-booking.html" style="{color:#000000; text-decoration: none;}">Tour Booking</A> | <a href="http://www.touristplacesinindia.com/hotels-booking.html" style="{color:#000000; text-decoration: none;}">Hotel Booking</A> | <a href="http://www.touristplacesinindia.com/air-booking.html" style="{color:#000000; text-decoration: none;}">Air Booking</A> | <a href="http://www.touristplacesinindia.com/car-rental.html" style="{color:#000000; text-decoration: none;}">Car Rental</A> | <a href="http://www.touristplacesinindia.com/aboutus.html" style="{color:#000000; text-decoration: none;}">AboutUs </A> | <a href="http://www.touristplacesinindia.com/terms-and-conditions.html" style="{color:#000000; text-decoration: none;}">Terms & Conditions</A> | <a href="mailto:webmaster@indianvisit.com" style="{color:#000000; text-decoration: none;}">Contact Us</A> | <a href="http://www.touristplacesinindia.com/india-travel-tips.html" style="{color:#000000; text-decoration: none;}" title="India Travel Tips">Travel Tips</a> </TD></TR></TABLE>');

}

function footer(path){

	if (path==null){

		path="../";

	}

document.write('<table cellpadding="0" cellspacing="0" width="779" align="center" style="{font-family: verdana; font-size:10px;}"><tr height="0"><td align="right"><!--Hotel content and images on the site are sponsored by <a target="_blank" href="http://www.indiahotelsandresorts.com" style="{text-decoration:none; color:red;}">IndiaHotelsandResorts.com</a>--></td></tr></table><TABLE CELLPADDING=2 CELLSPACING=1 WIDTH="779" ALIGN=CENTER BGCOLOR="white" style="{border: 1 solid #000000;font-family: verdana; font-size:12px;}" border=0><TR><TD BGCOLOR="#F1F1F1" align=center style="{color:#A0A838;}"><a href="http://www.touristplacesinindia.com/index.html" style="{color:#000000; text-decoration: none;}"> Home</A> | <a href="http://www.touristplacesinindia.com/tourist-zones-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Zones of India</A> | <a href="http://www.touristplacesinindia.com/tourist-states-of-india.html" style="{color:#000000; text-decoration: none;}"> Tourist States in India</A> | <a href="http://www.touristplacesinindia.com/tourist-cities-of-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Cities in India</A> | <a href="http://www.touristplacesinindia.com/hotels-in-india.html" style="{color:#000000; text-decoration: none;}"> Hotels In India</A> | <a href="http://www.touristplacesinindia.com/hill-stations-in-india.html" style="{color:#000000; text-decoration: none;}"> Hill Stations In India</A> | <a href="http://www.touristplacesinindia.com/wildlife-destinations-in-india.html" style="{color:#000000; text-decoration: none;}"> Wildlife in India</A> | <a href="http://www.touristplacesinindia.com/pilgrimage-destinations-in-india.html" style="{color:#000000; text-decoration: none;}"> Pilgrimage Destinations in India</A> | <a href="http://www.touristplacesinindia.com/heritage-destinations-in-india.html" style="{color:#000000; text-decoration: none;}"> Heritage Destinations in India</A> | <a href="http://www.touristplacesinindia.com/monumental-heritage-india.html" style="{color:#000000; text-decoration: none;}"> Monuments in India</A> |<br> <a href="http://www.touristplacesinindia.com/temple-sites-india.html" style="{color:#000000; text-decoration: none;}"> Temples in India</A> | <a href="http://www.touristplacesinindia.com/theme-holidays-in-india.html" style="{color:#000000; text-decoration: none;}"> Theme Holidays in India</A> | <a href="http://www.touristplacesinindia.com/tourist-places-beyond-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Places Beyond India</A> | <a href="http://www.touristplacesinindia.com/tourist-services-for-india.html" style="{color:#000000; text-decoration: none;}"> Tourist Services for India</A></TD></TR><TR><TD BGCOLOR="#CCCCCC" align=center style="{color:#A0A838;}">		<a href="http://www.touristplacesinindia.com/tour-booking.html" style="{color:#000000; text-decoration: none;}">Tour Booking</A> | <a href="http://www.touristplacesinindia.com/hotels-booking.html" style="{color:#000000; text-decoration: none;}">Hotel Booking</A> | <a href="http://www.touristplacesinindia.com/air-booking.html" style="{color:#000000; text-decoration: none;}">Air Booking</A> | <a href="http://www.touristplacesinindia.com/car-rental.html" style="{color:#000000; text-decoration: none;}">Car Rental</A> | <a href="http://www.touristplacesinindia.com/about-us.html" style="{color:#000000; text-decoration: none;}">AboutUs </A> | <a href="http://www.touristplacesinindia.com/terms-and-conditions.html" style="{color:#000000; text-decoration: none;}">Terms & Conditions</A> | <a href="mailto:webmaster@indianvisit.com" style="{color:#000000; text-decoration: none;}">Contact Us</A> | <a href="http://www.touristplacesinindia.com/india-travel-tips.html" style="{color:#000000; text-decoration: none;}" title="India Travel Tips">Travel Tips</a> </TD></TR></TABLE><TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="779" ALIGN=CENTER BGCOLOR="#F8E868" style="{font-family: verdana; font-size:10px;}"><TR><TD ALIGN=CENTER class=copyright><b>Recognized by Ministry of Tourism, Government of India</B></font></font><BR><BR><IMG SRC="http://www.touristplacesinindia.com/images/iato1.gif" WIDTH="50" HEIGHT="55" BORDER="0" ALT="Indian Association of Tour Operators (IATO)">&nbsp;&nbsp;&nbsp;<IMG SRC="http://www.touristplacesinindia.com/images/pata.gif" WIDTH="40" HEIGHT="45" BORDER="0" ALT="Pacific Asia Travel Association (PATA)">&nbsp;&nbsp;&nbsp;<img src="http://www.touristplacesinindia.com/images/asta-logo.gif" WIDTH="40" HEIGHT="45" BORDER="0" ALT="American Society of Travel Agents(ASTA)"><BR>Site designed, developed and maintained by Turnkey Software Projects Pvt. Ltd.<BR>Best view at 800x600 pixles in IE 4.0+ / NN 5.0+</TD></TR></TABLE>');

}



var mylocation = window.location;

var sitename="TouristPlacesinIndia.com";

var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")



var mydate=new Date()

var year=mydate.getYear()



if (year < 1000)

year+=1900



var day=mydate.getDay()

var month=mydate.getMonth()



var daym=mydate.getDate()

if (daym<10)

daym="0"+daym

var hours=mydate.getHours()

var minutes=mydate.getMinutes()

var seconds=mydate.getSeconds()

var dn="AM"

if (hours>=12)

dn="PM"

if (hours>12){

hours=hours-12

}

if (hours==0)

hours=12

if (minutes<=9)

minutes="0"+minutes

if (seconds<=9)

seconds="0"+seconds



var dateVal = daym + "-" + montharray[month] + "-" + year

var rtflg=true;

var pkflg=true;

var retmn = 0;

var pickmn = 0;

//presently in use

//////////////////////////////////////// Hotel Booking Form //////////////////////////////////////////



function hotelBooking(path){

//var border="B38135";

//var background="E8DCB8";



	if (path==null)

		path="./";



//1

document.write('<a name="frmHotelQuery"></a><div align="center"><form name="frmHotelQry" action="http://www.touristplacesinindia.com/cgi-bin/tourhotel.pl" method="post"> <input type="hidden" name="referer" value="'+window.location+'"><input type="hidden" name="sitename" value="'+sitename+'">')



//2

document.write('<BR><table width="85%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td colspan="3"><table width="60%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-1.gif" width="11" height="23"></td>  <td bgcolor="#1048B0" width="100%"><p align="center"><span style="font-family: Arial, Verdana; font-size: 10pt"><font color="#FFFFFF"><strong>Hotel Bookings</strong></font></span></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-2.gif" width="44" height="23"></td>  </tr>  </table>  </td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-3.gif" width="20" height="22"></td>  <td background="http://www.touristplacesinindia.com/images/top-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-4.gif" width="20" height="22"></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/left-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td width="100%" valign="top" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td align="center"><font color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Contact TouristPlacesinIndia.com for Great Deals on Hotel Accommodation in India, Nepal, and Bhutan</span></font></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/text-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="5"></td>  </tr>  <tr>  <td align="center" valign="top">')



//3



document.write('<table border="0" cellpadding="0" cellspacing="0" width="500"> <tr> <td width="500" align="center" nowrap><table border="0" width="100%" cellpadding="2"> <tr> <td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0"> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Title:</span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><select NAME="selTitle" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option SELECTED VALUE="Mr">Mr </option> <option VALUE="Mrs">Mrs </option> <option VALUE="Ms">Ms </option> <option VALUE="Dr">Dr </option> </select> </span></td> </tr> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Name:<font color="red">*</font></span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text" NAME="txiName" SIZE="29" MAXLENGTH="50" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Email:<font color="red">*</font></span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text" NAME="txiEmail" SIZE="29" MAXLENGTH="50" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Country:<font color="red">*</font></span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><select size="1" name="selCountry" style="font-family: Arial, Verdana; font-size: 8pt"> <option value="NA" selected>Select Your Country'+cntdis+'</option></select></span></td> </tr> <tr> <td vAlign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Phone:</span></td> <td align="left" valign="middle"><table border="0" cellpadding="0" cellspacing="0"> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Country<br> <input maxLength="10" name="txiCountryCode" size="2" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Area<br>&nbsp;<input maxLength="10" name="txiCityCode" size="3" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Phone<br> &nbsp;<input maxLength="50" name="txiPhone" size="8" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr></table></td></tr><tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Hotel<BR> Category:</span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><select NAME="selCategory" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>Select</option> <option VALUE="Deluxe">Deluxe</option> <option VALUE="First class">First class</option> <option VALUE="Economy">Economy</option> </select> </span></td> </tr> </table> </td> <td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0"> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Hotel Required At City:</span></td> <td align="left" valign="middle"><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text" NAME="txiReqCity" SIZE="31" MAXLENGTH="50" style="font-family: Arial, Verdana; font-size: 8pt"><br> <font style="{font-size:10px;font-style:normal;}" COLOR="#000000">in India, Nepal or Bhutan</font></span></td> </tr> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Check In Date:</span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><select NAME="selINMonth" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>MM</option> <option VALUE="January">Jan</option> <option VALUE="February">Feb</option> <option VALUE="March">Mar</option> <option VALUE="April">Apr</option> <option VALUE="May">May</option> <option VALUE="June">Jun</option> <option VALUE="July">Jul</option> <option VALUE="August">Aug</option> <option VALUE="September">Sep</option> <option VALUE="October">Oct</option> <option VALUE="November">Nov</option> <option VALUE="December">Dec</option> </select>&nbsp; <select NAME="selINDate" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>DD</option> <option VALUE="1">1</option> <option VALUE="2">2</option> <option VALUE="3">3</option> <option VALUE="4">4</option> <option VALUE="5">5</option> <option VALUE="6">6</option> <option VALUE="7">7</option> <option VALUE="8">8</option> <option VALUE="9">9</option> <option VALUE="10">10</option> <option VALUE="11">11</option> <option VALUE="12">12</option> <option VALUE="13">13</option> <option VALUE="14">14</option> <option VALUE="15">15</option> <option VALUE="16">16</option> <option VALUE="17">17</option> <option VALUE="18">18</option> <option VALUE="19">19</option> <option VALUE="20">20</option> <option VALUE="21">21</option> <option VALUE="22">22</option> <option VALUE="23">23</option> <option VALUE="24">24</option> <option VALUE="25">25</option> <option VALUE="26">26</option> <option VALUE="27">27</option> <option VALUE="28">28</option> <option VALUE="29">29</option> <option VALUE="30">30</option> <option VALUE="31">31</option> </select>&nbsp; <select NAME="selINYear" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>YY</option> <OPTION VALUE="2007">2007</OPTION>	<OPTION VALUE="2008">2008</OPTION>	<OPTION VALUE="2009">2009</OPTION>		<OPTION VALUE="2010">2010</OPTION> <OPTION VALUE="2011">2011</OPTION> <OPTION VALUE="2012">2012</OPTION> <OPTION VALUE="2013">2013</OPTION> <OPTION VALUE="2014">2014</OPTION> <OPTION VALUE="2015">2015</OPTION> <OPTION VALUE="2016">2016</OPTION>  <OPTION VALUE="2017">2017</OPTION>   <OPTION VALUE="2018">2018</OPTION> <OPTION VALUE="2019">2019</OPTION> <OPTION VALUE="2020">2020</OPTION> </select></span></td> </tr> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Check Out Date:</span></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><select NAME="selOUTMonth" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>MM</option> <option VALUE="January">Jan</option> <option VALUE="February">Feb</option> <option VALUE="March">Mar</option> <option VALUE="April">Apr</option> <option VALUE="May">May</option> <option VALUE="June">Jun</option> <option VALUE="July">Jul</option> <option VALUE="August">Aug</option> <option VALUE="September">Sep</option> <option VALUE="October">Oct</option> <option VALUE="November">Nov</option> <option VALUE="December">Dec</option> </select>&nbsp; <select NAME="selOUTDate" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>DD</option> <option VALUE="1">1</option> <option VALUE="2">2</option> <option VALUE="3">3</option> <option VALUE="4">4</option> <option VALUE="5">5</option> <option VALUE="6">6</option> <option VALUE="7">7</option> <option VALUE="8">8</option> <option VALUE="9">9</option> <option VALUE="10">10</option> <option VALUE="11">11</option> <option VALUE="12">12</option> <option VALUE="13">13</option> <option VALUE="14">14</option> <option VALUE="15">15</option> <option VALUE="16">16</option> <option VALUE="17">17</option> <option VALUE="18">18</option> <option VALUE="19">19</option> <option VALUE="20">20</option> <option VALUE="21">21</option> <option VALUE="22">22</option> <option VALUE="23">23</option> <option VALUE="24">24</option> <option VALUE="25">25</option> <option VALUE="26">26</option> <option VALUE="27">27</option> <option VALUE="28">28</option> <option VALUE="29">29</option> <option VALUE="30">30</option> <option VALUE="31">31</option> </select>&nbsp; <select NAME="selOUTYear" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>YY</option> <OPTION VALUE="2007">2007</OPTION>	<OPTION VALUE="2008">2008</OPTION>	<OPTION VALUE="2009">2009</OPTION>		<OPTION VALUE="2010">2010</OPTION> <OPTION VALUE="2011">2011</OPTION> <OPTION VALUE="2012">2012</OPTION> <OPTION VALUE="2013">2013</OPTION> <OPTION VALUE="2014">2014</OPTION> <OPTION VALUE="2015">2015</OPTION> <OPTION VALUE="2016">2016</OPTION>  <OPTION VALUE="2017">2017</OPTION>   <OPTION VALUE="2018">2018</OPTION> <OPTION VALUE="2019">2019</OPTION> <OPTION VALUE="2020">2020</OPTION> </select></span></td> </tr> <tr> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt">Rooms Required:</span></td> <td valign="middle" align="left"><table border="0" cellpadding="0" cellspacing="0"> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font COLOR="#000000">Single</font><br> <select NAME="selRooms" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA">Select</option> <option VALUE="1 room">1 room</option> <option VALUE="2 rooms">2 rooms </option> <option VALUE="3 rooms">3 rooms</option> <option VALUE="4 rooms">4 rooms </option> <option VALUE="5 rooms">5 rooms </option> <option VALUE="6 rooms">6 rooms </option> <option VALUE="7 rooms">7 rooms </option> <option VALUE="8 rooms">8 rooms </option> </select></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font COLOR="#000000">Double</font><br> <select NAME="selDouble" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA">Select</option> <option VALUE="1 room">1 room</option> <option VALUE="2 rooms">2 rooms </option> <option VALUE="3 rooms">3 rooms</option> <option VALUE="4 rooms">4 rooms </option> <option VALUE="5 rooms">5 rooms </option> <option VALUE="6 rooms">6 rooms </option> <option VALUE="7 rooms">7 rooms </option> <option VALUE="8 rooms">8 rooms </option> </select></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font COLOR="#000000">Triple</font><br> <select NAME="selTriple" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA">Select</option> <option VALUE="1 room">1 room</option> <option VALUE="2 rooms">2 rooms </option> <option VALUE="3 rooms">3 rooms</option> <option VALUE="4 rooms">4 rooms </option> <option VALUE="5 rooms">5 rooms </option> <option VALUE="6 rooms">6 rooms </option> <option VALUE="7 rooms">7 rooms </option> <option VALUE="8 rooms">8 rooms </option> </select></span></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width="100%" valign="top" colspan="2"><table border="0" cellpadding="0" cellspacing="0"> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Booking Query/Comments:<font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><textarea NAME="txaQuery" COLS="30" ROWS="5" WRAP="virtual"></textarea></span></td> <td valign="bottom"><span style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;&nbsp;&nbsp; <input TYPE="submit" VALUE="Submit" style="font-family: Arial, Verdana; font-size: 8pt" onClick="return validateHotelQry(this.form)">&nbsp;&nbsp;<input TYPE="reset" VALUE="Reset" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> </table> </td> </tr> <tr> <td width="50%" valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><em><font color="red">*</font> <font COLOR="#000000">Essential Information</font></em></span></td> <td width="50%" valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> </table> </td> </tr> </table>')





//4

document.write('</td>  </tr>  </table>  </td>  <td background="http://www.touristplacesinindia.com/images/right-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-6.gif" width="20" height="20"></td>  <td background="http://www.touristplacesinindia.com/images/bottom-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-5.gif" width="20" height="20"></td>  </tr>  </table>')





//5

document.write('<BR></CENTER>')

document.write('</FORM></div>')

//

}







//////



function validateHotelQry(form) {



rtflg = true;

pkflg=true;



var v=allblanksHotel(form)

isHotelQryQuery(form)

isHotelQryChkInDate(form)

isHotelQryChkOutDate(form)

isHotelQryCity(form)

isHotelQryPhone(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) && isHotelQryPhone(form)  && isHotelQryCity(form) && isHotelQryChkInDate(form) && isHotelQryChkOutDate(form) && isHotelQryQuery(form)) {

 return true ;

}

if( (isHotelQryName(form) == false) || (isHotelQryEmail(form) == false) || (isHotelQryCountry(form) == false) || (isHotelQryPhone(form) == false) || (isHotelQryCity(form) == false) || (isHotelQryChkInDate(form)==false) || (isHotelQryChkOutDate(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(isHotelQryPhone(form) == false) {

text += "\nYour Phone Number -- incomplete/improper(should be numeric)"

}

if(isHotelQryCity(form) == false) {

text += "\nHotel Required at -- must be purely alphabetic"

}

if ((isHotelQryChkInDate(form)==false) && pkflg == true){

		text += "\nYour Arrival Date -- not selected yet"

	}

	else{

		if ((isHotelQryChkInDate(form)==false) && pkflg == false){

		text += "\nYour Arrival Date is invalid -- pick a future date"

		}

	}

	if ((isHotelQryChkOutDate(form)==false) && rtflg == true){

		text += "\nYour Departure Date -- not selected yet"

	}

	else{

		if ((isHotelQryChkOutDate(form)==false) && rtflg == false){

		text += "\nYour Departure Date -- cannot be earlier than checkin date"

		}

	}

if(isHotelQryQuery(form) == false) {

text += "\nComments/Query -- should atleast be a line"

}

alert(text)

}

function isHotelQryChkInDate(form)

{

 if((form.selINDate.value == "NA") || (form.selINMonth.value == "NA") || (form.selINYear.value == "NA"))

	{

	 form.selINMonth.focus(); 

	 return false;

	} 

 else

	{

		if (isChkInDate(form)==false)

		{

			return false;

		}

		else

			return true;

	}

 }



//for Departure Date

function isHotelQryChkOutDate(form)

{

 if((form.selOUTDate.value == "NA") || (form.selOUTMonth.value == "NA") || (form.selOUTYear.value == "NA"))

	{

	 form.selOUTMonth.focus(); 

	 return false;

	} 

 else

	{

		if (isChkOutDate(form)== false)

		{

			return false;

		}

		else

			return true;

	}

 }

function isChkInDate(form)

{

	for(i=0;i<=montharray.length;i++)

	{

		if (montharray[i]==form.selINMonth.value)

		{

			dgt=i;

			break;

		}

	}

	//alert(dgt)

if(form.selINYear.value < year)

{

	//alert("Invalid date. It must be a future date.");

	pkflg = false;

	form.selINYear.focus(); 

	return false; //presently  used

 } 

 else

	{

		if((form.selINYear.value == year) && (dgt < month))

		{

			//alert("Invalid date. It must be a future date.");

			pkflg = false;

			form.selINMonth.focus();

			return false;

		}

		else

		{

			if((form.selINYear.value == year) && (dgt == month))

			{

				if (form.selINDate.value < daym)

				{

				//alert("Invalid date. It must be a future date.");

				pkflg = false;

				form.selINDate.focus();

				return false;

				}

				else

					return true;

			}

		}

	}

 }



 function isChkOutDate(form)

{

	if(form.selOUTYear.value < form.selINYear.value)

	{

		//alert("1")

		//alert("Return Date cannot be Earlier than Picking Date");

		rtflg = false;

		form.selOUTYear.focus(); 

		return false; //presently  used

	}

	else

	{

		for(i=0;i<=montharray.length;i++)

		{

			if (montharray[i]==form.selOUTMonth.value)

			{

				retmn=i+1;

				break;

			}

		}

		for(i=0;i<=montharray.length;i++)

		{

			if (montharray[i]==form.selINMonth.value)

			{

				pickmn=i+1;

				break;

			}

		}

		//alert(retmn)

		//alert(pickmn)

		if((form.selOUTYear.value == form.selINYear.value) && (retmn < pickmn))

		{

			//alert("2")

			//alert("Return Date cannot be Earlier than Picking Date");

			rtflg = false;

			form.selOUTMonth.focus();

			return false;

		}

		else

		{

			if((form.selOUTYear.value == form.selINYear.value) && (retmn == pickmn))

			{

				//alert("hello")

				//alert(form.selOutDate.value)

				//alert(form.selINDate.value)

				if (parseInt(form.selOUTDate.value) < parseInt(form.selINDate.value))

				{

					//alert("3")

					//alert("Return Date cannot be Earlier than Picking Date");

					rtflg = false;

					form.selOUTDate.focus();

					return false;

				}

				else

					return true;

			}

		}

	}

}

//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 Phone

function isHotelQryPhone(form) {

form.txiCountryCode.value=trim(form.txiCountryCode.value);

form.txiCityCode.value=trim(form.txiCityCode.value);

form.txiPhone.value=trim(form.txiPhone.value);

	if (trim(form.txiCountryCode.value) == "") {

		form.txiCountryCode.focus();

		return false;

	}

	else {

		if(checkfornum(form.txiCountryCode.value)== false)// i. e, it is a pure number that is invalid

		{

			form.txiCountryCode.focus();

			return(false);

		}

	}

	if (trim(form.txiCityCode.value) == "") {

		form.txiCityCode.focus();

		return false;

	}

	else {

		if(checkfornum(form.txiCityCode.value)== false)// i. e, it is a pure number that is invalid

		{

			form.txiCityCode.focus();

			return(false);

		}

	}

	if (trim(form.txiPhone.value) == "") {

		form.txiPhone.focus();

		return false;

	}

	else {

		if(checkfornum(form.txiPhone.value)== false)// i. e, it is a pure number that is invalid

		{

			form.txiPhone.focus();

			return(false);

		}

		else

			return true;

	}

}



//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 ;

   }

}





////////////////////////////// Common Functions are put here ///////////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return 1;

        }

        else

        {

        return 0;

        }

}





function GoBack() { 

			history.back();   

					}







//////////////////////////////// New Tech. General Query Form //////////////////////////////////////////



//++++++++++++++++++++++++++



function form(path)

{

	if (path==null)

		path="./";





//1



document.write('<a name="form1"></a><div align="center"><form name="form1" action="http://www.touristplacesinindia.com/cgi-bin/tourquery.pl" method="post"> <input type="hidden" name="referer" value="'+window.location+'"><input type="hidden" name="sitename" value="'+sitename+'">')



//2

document.write('<BR><table width="85%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td colspan="3"><table width="60%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-1.gif" width="11" height="23"></td>  <td bgcolor="#1048B0" width="100%"><p align="center"><span style="font-family: Arial, Verdana; font-size: 10pt"><font color="#FFFFFF"><strong>Tour Booking</strong></font></span></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-2.gif" width="44" height="23"></td>  </tr>  </table>  </td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-3.gif" width="20" height="22"></td>  <td background="http://www.touristplacesinindia.com/images/top-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-4.gif" width="20" height="22"></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/left-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td width="100%" valign="top" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td align="center"><font color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Contact TouristPlacesInIndia.com, your trusted Online Tour Operator in India for<BR> Tour Packages, Costing of Tours to India, and Air and Hotel Bookings</span></font></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/text-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="5"></td>  </tr>  <tr>  <td align="center" valign="top">')



//3



document.write('<table border="0" cellpadding="0" cellspacing="0" width="500">  <tr>  <td width="500" align="center" nowrap><table border="0" width="100%" cellpadding="2">  <tr>  <td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0">  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt">Title:</span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><select NAME="selTitle"  size="1" style="font-family: Arial, Verdana; font-size: 8pt">  <option SELECTED VALUE="Mr">Mr </option>  <option VALUE="Mrs">Mrs </option>  <option VALUE="Ms">Ms </option>  <option VALUE="Dr">Dr </option>  </select> </span></td>  </tr>  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt">Name:<font color="red">*</font></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text"  NAME="txiName" SIZE="24" MAXLENGTH="100"  style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt">Email:<font color="red">*</font></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text"  NAME="txiEmail" SIZE="27" MAXLENGTH="50"  style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt">Country:<font color="red">*</font></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><select name="selCountry"  size="1" style="font-family: Arial, Verdana; font-size: 8pt">  <option selected value="null">--Select Your Country of Residence--  '+cntdis+' </option> </select></span></td>  </tr>  <tr>  <td vAlign="center" width="40%"><span style="font-family: Arial, Verdana; font-size: 8pt">Phone:</span></td>  <td align="left"><table border="0" cellpadding="2" cellspacing="0">  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="#000000">Country<br>  </font><input maxLength="50" name="txiCountryCode" size="2"  style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="#000000">Area<br>  </font><input maxLength="50" name="txiCityCode" size="2"  style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="#000000">Phone</font><br>  <input maxLength="50" name="txiPhone" size="17"  style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  </table>  </td>  </tr>  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  </table>  </td>  <td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0">  <tr>  <td vAlign="top"><span style="font-family: Arial, Verdana; font-size: 8pt">Tentative Date<br>  to start your trip:</span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><input maxLength="20"  name="txiArrival" size="20" style="font-family: Arial, Verdana; font-size: 8pt"> (dd/mm/yy)</span></td>  </tr>  <tr>  <td><span style="font-family: Arial, Verdana; font-size: 8pt">Days in Hand:<font color="red">*</font></span></td>  <td><span style="font-family: Arial, Verdana; font-size: 8pt"><input maxLength="20"  name="txiHands" size="5" style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  <tr>  <td width="40%"><span style="font-family: Arial, Verdana; font-size: 8pt">No. of People  Travelling:<font color="red">*</font></span></td>  <td align="left" vAlign="top" width="60%"><span  style="font-family: Arial, Verdana; font-size: 8pt"><input maxLength="20" name="txiAdults"  size="6" style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;&nbsp;Adult(s)  &nbsp;&nbsp;&nbsp;&nbsp;<input maxLength="20" name="txiChildren" size="6"  style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;&nbsp;Children</span></td>  </tr>  </table>  </td>  </tr>  <tr>  <td width="50%" valign="top"><em><font color="#000000"><span  style="font-family: Arial, Verdana; font-size: 8pt"></span></font></em></td>  <td width="50%" valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  <tr>  <td width="100%" valign="top" colspan="2"><table border="0" cellpadding="0"  cellspacing="0">  <tr>  <td width="33%"><span style="font-family: Arial, Verdana; font-size: 8pt">For  Booking/Travel Related Query :<font color="red">*</font></span></td>  <td width="33%"><span style="font-family: Arial, Verdana; font-size: 8pt"><textarea  NAME="txaQuery" COLS="34" ROWS="5" WRAP="virtual"  style="font-family: Arial, Verdana; font-size: 8pt"></textarea></span></td>  <td width="34%"><p align="right"><span style="font-family: Arial, Verdana; font-size: 8pt"><INPUT TYPE="submit" VALUE="Submit" onClick="return validateGeneralQry(this.form)" style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;&nbsp;<input  TYPE="reset" VALUE="Reset" style="font-family: Arial, Verdana; font-size: 8pt">  &nbsp;&nbsp; </span></td>  </tr>  </table>  </td>  </tr>  <tr>  <td width="50%" valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><em><font  color="red">*</font> <font COLOR="#000000">Essential Information</font></em></span></td>  <td width="50%" valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"></span></td>  </tr>  </table>  </td>  </tr>  </table>');



//4

document.write('</td>  </tr>  </table>  </td>  <td background="http://www.touristplacesinindia.com/images/right-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-6.gif" width="20" height="20"></td>  <td background="http://www.touristplacesinindia.com/images/bottom-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-5.gif" width="20" height="20"></td>  </tr>  </table>')



//5

document.write('<BR></CENTER>')

document.write('</FORM></div>')

//



} 





//++++++++++++++++++++++++++





///////////



function validateGeneralQry(form) {

var v=allblanksGeneral(form)

isGeneralQryQuery(form)

isGeneralQryPhone(form)

isGeneralQryCountry(form)

isGeneralQryEmail(form)

isGeneralQryName(form)

if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksGeneral(form) {

if(isGeneralQryName(form) && isGeneralQryEmail(form) && isGeneralQryCountry(form) && isGeneralQryPhone(form) && isGeneralQryQuery(form)) {

 return true ;

}

if((isGeneralQryName(form) == false) || (isGeneralQryEmail(form) == false) || (isGeneralQryCountry(form) == false) || (isGeneralQryPhone(form) == false) || (isGeneralQryQuery(form)==false)) {

composeGeneral(form);

return false ;

   }

}

function composeGeneral(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isGeneralQryName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isGeneralQryEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isGeneralQryCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isGeneralQryPhone(form) == false) {

text += "\nYour Phone Number -- incomplete/improper"

}

if(isGeneralQryQuery(form) == false) {

text += "\nComments/Query -- should atleast be a line"

}

alert(text)

}



//for country of residence

function isGeneralQryCountry(form)

{

 if(form.selCountry.value == "NA")

	{

	 form.selCountry.focus(); 

	 return false; //presently used

	} 

 else

   return true;  

 }

//FOR EMAIL

function isGeneralQryEmail(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 ;

	}		



}

function isGeneralQryPhone(form) {

form.txiCountryCode.value=trim(form.txiCountryCode.value);

form.txiCityCode.value=trim(form.txiCityCode.value);

form.txiPhone.value=trim(form.txiPhone.value);

	if (trim(form.txiCountryCode.value) == "") {

		form.txiCountryCode.focus();

		return false;

	}

	else {

		if(checkfornum(form.txiCountryCode.value)== false)// i. e, it is a pure number that is invalid

		{

			form.txiCountryCode.focus();

			return(false);

		}

	}

	if (trim(form.txiCityCode.value) == "") {

		form.txiCityCode.focus();

		return false;

	}

	else {

		if(checkfornum(form.txiCityCode.value)== false)// i. e, it is a pure number that is invalid

		{

			form.txiCityCode.focus();

			return(false);

		}

	}

	if (trim(form.txiPhone.value) == "") {

		form.txiPhone.focus();

		return false;

	}

	else {

		if(checkfornum(form.txiPhone.value)== false)// i. e, it is a pure number that is invalid

		{

			form.txiPhone.focus();

			return(false);

		}

		else

			return true;

	}

}

//FOR Query

function isGeneralQryQuery(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 NAME

function isGeneralQryName(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 ;

   }

}



//////////////////////////////

//presently not in use

function confirm1(country){

	if( country!=""){

		 if(country=="null"){

			alert("Please select Your Nationality from the list");

			return false;

			}	

	}

}





////////////////////////////// Common Functions are put here ///////////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return 1;

        }

        else

        {

        return 0;

        }

}





function GoBack() { 

			history.back();   

					}







/////////////////////////////////////////////////New Tech. Hotel Popup form////////////////////////////

function popUpHotelBooking(h,bc)

{

u=self.location;

//prompt(self.location);

window.open("http://www.rajasthanholiday.com/cgi-bin/bookhotel.pl?hotel="+h+"&bgc="+bc+"&ul="+u+"","dcc","toolbar=no,menubar=no,height=500,width=500,top=20,left=200,scrollbars=yes,location=no,status=yes,resize=yes,alwaysRaised=yes")

//self.close()

}



function validatePopUpHotelBooking(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksHotelPopUp(form)

isHotelQuery(form)

isHotelCountry(form)

isHotelEmail(form)

isHotelName(form)

if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksHotelPopUp(form) {

if( (isHotelName(form) && isHotelEmail(form)) && (isHotelCountry(form) && isHotelQuery(form)) ) {

 return true ;

}

if( (isHotelName(form) == false || isHotelEmail(form) == false ) || ( isHotelCountry(form) == false || isHotelQuery(form)==false ) ) {

composeHotelPopUp(form);

return false ;

   }

}

function composeHotelPopUp(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isHotelName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isHotelEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isHotelCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isHotelQuery(form) == false) {

text += "\nTopic Comments/Query -- should atleast be a line or blank"

}

alert(text)

}



//for country of residence

function isHotelCountry(form)

{

 if(form.your_country.value == "NA")

	{

	 //form.your_country.focus(); 

	 return true;

	} 

 else

   return true;  

 }



//FOR EMAIL

function isHotelEmail(form) {

if (trim(form.your_email.value)== "")

	{

		form.your_email.focus();

		return false; // because  it is not optional 

	}

else

	{

		var eid=form.your_email.value=trim(form.your_email.value);

		if (eid.indexOf(' ')!= -1)

			{

			form.your_email.focus();

			return false ; // no spaces

			} 

		if (eid.length < 6 ){

			form.your_email.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.your_email.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.your_email.focus();

						return false ;	

						}

					else

						{

						 if ( (dot + 2 ) < eid.length )

							return true ;

						 else

						    {

							form.your_email.focus();

							return false ;

							}

						}

				}

				else // two @ are there

				{

				form.your_email.focus();

				return false;

				}

			}	

	form.your_email.focus();

	return false ;

	}		



}

//FOR Query

function isHotelQuery(form) {

form.query.value=trim(form.query.value);

if (trim(form.query.value) == "") {

//form.query.focus();

return true;

}

else {

			

	     if(checkfornum(form.query.value)==1)// i. e, it is a pure number that is invalid

		   {

			form.query.focus();

			return(false);

			}

		qry=trim(form.query.value);

		if(qry.length <= 6 )// if it is too short

			{

			 form.query.focus();

			 return(false);

			}	

return true ;

   }

}





//FOR NAME

function isHotelName(form) {

if (trim(form.your_name.value) == "") {

form.your_name.focus();

return false ;

}

else {

			form.your_name.value=trim(form.your_name.value);

	     if(checkforchar(form.your_name.value)==0)

		   {

			form.your_name.focus();

			return(false);

			}

return true ;

   }

}

////////////////////////////////////////////////New Tech. More Info  PopUp Form///////////////////////////////

function popUp(c,bc)

{

u=self.location;

//prompt(self.location);

window.open("http://www.rajasthanholiday.com/cgi-bin/moreinfo.pl?ctgry="+c+"&bgc="+bc+"&ul="+u+"","dcc","toolbar=no,menubar=no,height=400,width=450,top=20,left=200,scrollbars=no,location=no,status=yes,resize=yes")

//self.close()

}







function validatePopUp(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksPopUp(form)

isQuery(form)

isCountry(form)

isEmail(form)

isName(form)

//if( v == true)

//	{

//	v=confirm("Have You entered \nthe information Correctly !!");

//	}

return v;

}



function allblanksPopUp(form) {

if( (isName(form) && isEmail(form)) && (isCountry(form) && isQuery(form)) ) {

 return true ;

}

if( (isName(form) == false || isEmail(form) == false ) || ( isCountry(form) == false || isQuery(form)==false ) ) {

composePopUp(form);

return false ;

   }

}

function composePopUp(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isQuery(form) == false) {

text += "\nTopic Comments/Query -- should be given briefly"

}

alert(text)

}



//for country of residence

function isCountry(form)

{

 if(form.your_country.value == "null")

   return true;

 else

   return true;  

 }



//FOR EMAIL

function isEmail(form) {

if (trim(form.your_email.value)== "")

	{

		form.your_email.focus();

		return false; // because  it is not optional 

	}

else

	{

		var eid=form.your_email.value=trim(form.your_email.value);

		if (eid.indexOf(' ')!= -1)

			{

			form.your_email.focus();

			return false ; // no spaces

			} 

		if (eid.length < 6 ){

			form.your_email.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.your_email.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.your_email.focus();

						return false ;	

						}

					else

						{

						 if ( (dot + 2 ) < eid.length )

							return true ;

						 else

						    {

							form.your_email.focus();

							return false ;

							}

						}

				}

				else // two @ are there

				{

				form.your_email.focus();

				return false;

				}

			}	

	form.your_email.focus();

	return false ;

	}		



}

//FOR Query

function isQuery(form) {

form.query.value=trim(form.query.value);

if (trim(form.query.value) == "") {

//form.query.focus();

return true

}

else {

			

	     if(checkfornum(form.query.value)==1)// i. e, it is a pure number that is invalid

		   {

			form.query.focus();

			return(false);

			}

		qry=trim(form.query.value);

		if(qry.length <= 6 )// if it is too short

			{

			 form.query.focus();

			 return(false);

			}	

return true ;

   }

}





//FOR NAME

function isName(form) {

if (trim(form.your_name.value) == "") {

form.your_name.focus();

return false ;

}

else {

			form.your_name.value=trim(form.your_name.value);

	     if(checkforchar(form.your_name.value)==0)

		   {

			form.your_name.focus();

			return(false);

			}

return true ;

   }

}







///////////////////////////////////////// common functions are put here///////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return true;

        }

        else

        {

        return false;

        }

}





function GoBack() { 

			history.back();   

					}

	



////////////////////////////// Common Functions are put here ///////////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return 1;

        }

        else

        {

        return 0;

        }

}





function GoBack() { 

			history.back();   

					}



///////////////// for passenger numeric feild///////////////////////

   function validate(string) {

    if (!string) return false;

    var Chars = "0123456789";



    for (var i = 0; i < string.length; i++) {

       if (Chars.indexOf(string.charAt(i)) == -1)

          return false;

    }

    return true;

} 



/////////////////////////////////////////////////New Tech. Hotel Popup form////////////////////////////

function popUpHotelBooking(h,bc)

{

u=self.location;

//prompt(self.location);

window.open("http://www.rajasthanholiday.com/cgi-bin/bookhotel.pl?hotel="+h+"&bgc="+bc+"&ul="+u+"","dcc","toolbar=no,menubar=no,height=500,width=500,top=20,left=200,scrollbars=yes,location=no,status=yes,resize=yes,alwaysRaised=yes")

//self.close()

}



function validatePopUpHotelBooking(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksHotelPopUp(form)

isHotelQuery(form)

isHotelCountry(form)

isHotelEmail(form)

isHotelName(form)

if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksHotelPopUp(form) {

if( (isHotelName(form) && isHotelEmail(form)) && (isHotelCountry(form) && isHotelQuery(form)) ) {

 return true ;

}

if( (isHotelName(form) == false || isHotelEmail(form) == false ) || ( isHotelCountry(form) == false || isHotelQuery(form)==false ) ) {

composeHotelPopUp(form);

return false ;

   }

}

function composeHotelPopUp(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isHotelName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isHotelEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isHotelCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isHotelQuery(form) == false) {

text += "\nTopic Comments/Query -- should atleast be a line or blank"

}

alert(text)

}



//for country of residence

function isHotelCountry(form)

{

 if(form.your_country.value == "NA")

	{

	 //form.your_country.focus(); 

	 return true;

	} 

 else

   return true;  

 }



//FOR EMAIL

function isHotelEmail(form) {

if (trim(form.your_email.value)== "")

	{

		form.your_email.focus();

		return false; // because  it is not optional 

	}

else

	{

		var eid=form.your_email.value=trim(form.your_email.value);

		if (eid.indexOf(' ')!= -1)

			{

			form.your_email.focus();

			return false ; // no spaces

			} 

		if (eid.length < 6 ){

			form.your_email.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.your_email.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.your_email.focus();

						return false ;	

						}

					else

						{

						 if ( (dot + 2 ) < eid.length )

							return true ;

						 else

						    {

							form.your_email.focus();

							return false ;

							}

						}

				}

				else // two @ are there

				{

				form.your_email.focus();

				return false;

				}

			}	

	form.your_email.focus();

	return false ;

	}		



}

//FOR Query

function isHotelQuery(form) {

form.query.value=trim(form.query.value);

if (trim(form.query.value) == "") {

//form.query.focus();

return true;

}

else {

			

	     if(checkfornum(form.query.value)==1)// i. e, it is a pure number that is invalid

		   {

			form.query.focus();

			return(false);

			}

		qry=trim(form.query.value);

		if(qry.length <= 6 )// if it is too short

			{

			 form.query.focus();

			 return(false);

			}	

return true ;

   }

}





//FOR NAME

function isHotelName(form) {

if (trim(form.your_name.value) == "") {

form.your_name.focus();

return false ;

}

else {

	form.your_name.value=trim(form.your_name.value);

	     if(checkforchar(form.your_name.value)==0)

		   {

			form.your_name.focus();

			return(false);

			}

return true ;

   }

}

////////////////////////////////////////////////New Tech. More Info  PopUp Form///////////////////////////////

function popUp(c,bc)

{

u=self.location;

//prompt(self.location);

window.open("http://www.rajasthanholiday.com/cgi-bin/moreinfo.pl?ctgry="+c+"&bgc="+bc+"&ul="+u+"","dcc","toolbar=no,menubar=no,height=400,width=450,top=20,left=200,scrollbars=no,location=no,status=yes,resize=yes")

//self.close()

}







function validatePopUp(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksPopUp(form)

isQuery(form)

isCountry(form)

isEmail(form)

isName(form)

//if( v == true)

//	{

//	v=confirm("Have You entered \nthe information Correctly !!");

//	}

return v;

}



function allblanksPopUp(form) {

if( (isName(form) && isEmail(form)) && (isCountry(form) && isQuery(form)) ) {

 return true ;

}

if( (isName(form) == false || isEmail(form) == false ) || ( isCountry(form) == false || isQuery(form)==false ) ) {

composePopUp(form);

return false ;

   }

}

function composePopUp(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isQuery(form) == false) {

text += "\nTopic Comments/Query -- should be given briefly"

}

alert(text)

}



//for country of residence

function isCountry(form)

{

 if(form.your_country.value == "null")

   return true;

 else

   return true;  

 }



//FOR EMAIL

function isEmail(form) {

if (trim(form.your_email.value)== "")

	{

		form.your_email.focus();

		return false; // because  it is not optional 

	}

else

	{

		var eid=form.your_email.value=trim(form.your_email.value);

		if (eid.indexOf(' ')!= -1)

			{

			form.your_email.focus();

			return false ; // no spaces

			} 

		if (eid.length < 6 ){

			form.your_email.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.your_email.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.your_email.focus();

						return false ;	

						}

					else

						{

						 if ( (dot + 2 ) < eid.length )

							return true ;

						 else

						    {

							form.your_email.focus();

							return false ;

							}

						}

				}

				else // two @ are there

				{

				form.your_email.focus();

				return false;

				}

			}	

	form.your_email.focus();

	return false ;

	}		



}

//FOR Query

function isQuery(form) {

form.query.value=trim(form.query.value);

if (trim(form.query.value) == "") {

//form.query.focus();

return true

}

else {

			

	     if(checkfornum(form.query.value)==1)// i. e, it is a pure number that is invalid

		   {

			form.query.focus();

			return(false);

			}

		qry=trim(form.query.value);

		if(qry.length <= 6 )// if it is too short

			{

			 form.query.focus();

			 return(false);

			}	

return true ;

   }

}





//FOR NAME

function isName(form) {

if (trim(form.your_name.value) == "") {

form.your_name.focus();

return false ;

}

else {

			form.your_name.value=trim(form.your_name.value);

	     if(checkforchar(form.your_name.value)==0)

		   {

			form.your_name.focus();

			return(false);

			}

return true ;

   }

}







///////////////////////////////////////// common functions are put here///////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return 1;

        }

        else

        {

        return 0;

        }

}





function GoBack() { 

			history.back();   

					}

	

function validate_entries() {	

val1 = document.custform.your_name.value

val6 = document.custform.your_email.value





if(val1=="" ||val6=="") {

alert("At least one of the fields is empty")

return false

}

else {

if(val6!=""){

i = document.custform.your_email.value

j = document.custform.your_email.value.length

//alert(j);

if(j>0){

a = i.indexOf("@")

b = i.indexOf(",")

c = i.indexOf(" ")

d = i.lastIndexOf(".")

e = i.lastIndexOf("@")

//alert(a+" "+b+" "+c+" "+d+" "+e);

if(a>0 && a==e && d>1 && c == -1 && b == -1 && j-d >= 3 && j-d <= 4)

{

return true

}

else {

alert("Please Enter exact email address")

return false

}

}	

}

}

}





////////////////////////////////////////////////////////////////////////////////////

//////////		Hotel Required at Validations





var _aStatesAndCities = new Array( 



new Array("Delhi", new Array("The Oberoi Hotel","The Grand Hotel","Hotel Hyatt Regency","Crowne Plaza Surya","Taj Mahal Hotel","Hotel Taj Palace","Le Meridien Hotel","Inter-Continental Grand","Park Royal Grand","Ashok Hotel","The Park Hotel","Hotel Oberoi Maidens","Hotel Vasant Continental","Siddharath Hotel","Hotel Nikko","Hotel Imperial","The Connaught Hotel","Hotel Janpath","Hans Plaza","Ashok Country Resort","Centre Point Hotel","Marriott Hotel","Westend Hotel","Trident Gurgaon","Good Times Hotel ","Surya Shelter Hotel","Radisson Hotel","Centaur Hotel","Maurya Sheraton Hotel","Sita Hotel")),new Array("Bombay", new Array("Taj Mahal Hotel","The Oberoi Hotel","The Oberoi Towers","Centaur Hotel Juhu","Grand Maratha Sheraton","Hotel Le Royal Meridien ","Taj Lands End Hotel","Taj President Hotel","JW Marriott Hotel","Sun n Sand Hotel","Ramada Hotel","Hotel Marine Plaza","Hotel Kohinoor","Hotel Fariyas","Ambassador Hotel","Parle International","Ramee Guestline Hotel","Heritage Hotel","Godwin Hotel","Renaissance Hotel","Hotel Sahil","Hotel Inter Continental","The Leela Kempinski","Hyatt Regency","Midland Hotel")),new Array("Others", new Array("")));



function checkForm(frm){



	if ( trim(frm.selState.value).toUpperCase() == "NA" ){

			alert("Please Select a City");

			frm.selState.focus();

			return false;

	}



	if ( trim(frm.txtStateOther.value).length <= 0 &&  trim(frm.selState.value).toUpperCase() == "OTHER" ){

		 	alert("Please specify your Other Delivery State!");

			frm.txtStateOther.focus();

			return false;

	} 







	if ( trim(frm.selCity.value).toUpperCase() == "NA" ){

			alert("Please Select a Hotel");

			frm.selCity.focus();

			return false;

	}

}





function changeCities(objState){

	var _strStateToSearch = objState.value.toUpperCase();

	//alert(objState.value.toUpperCase());

	

	if ( _strStateToSearch == "OTHER" ){



		  //window.document.forms[0].txtStateOther.focus();



	}else{



		for (var i=0;i<_aStatesAndCities.length;i++){

			if ( _strStateToSearch == _aStatesAndCities[i][0].toUpperCase() ){

					window.document.forms[0].selCity.length=0;

					addToList(window.document.forms[0].selCity,"","NA");

					for (var k=0;k<_aStatesAndCities[i][1].length;k++){

						addToList(window.document.forms[0].selCity,_aStatesAndCities[i][1][k],_aStatesAndCities[i][1][k]); 

					}

					addToList(window.document.forms[0].selCity,"Other","Other"); 



			break;

			}

		}

	}



}



function checkCity(objCity){

	if ( objCity.value.toUpperCase() == "OTHER"){

		//window.document.forms[0].txtCityOther.focus();

	}

}







//generic function to add items to a drop down list box.

function addToList(listField, newText, newValue) {

var Found = false;

 		for (var f=0;f<listField.length ;f++) {

				if (newValue == listField[f].value) {

					Found = true;

					break;

				}

		}

 		if (!Found) {

		  var len = listField.length++; 

		  listField.options[len].value = newValue;

	      listField.options[len].text = newText;

		  listField.selectedIndex = 0; 

		}

}





////////////////////////////////////////New Tech Car Hire Form/////////////////////////////////////////

function carRental(path)

{



if (path==null)

	path="./";



//1

document.write('<a name="frmCarQry"></a><div align="center"><form name="frmCarQry" action="http://www.touristplacesinindia.com/cgi-bin/tourcar.pl" method="post"> <input type="hidden" name="referer" value="'+window.location+'"><input type="hidden" name="sitename" value="'+sitename+'">')



//2

document.write('<BR><table width="85%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td colspan="3"><table width="60%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-1.gif" width="11" height="23"></td>  <td bgcolor="#1048B0" width="100%"><p align="center"><span style="font-family: Arial, Verdana; font-size: 10pt"><font color="#FFFFFF"><strong>Car Rental</strong></font></span></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-2.gif" width="44" height="23"></td>  </tr>  </table>  </td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-3.gif" width="20" height="22"></td>  <td background="http://www.touristplacesinindia.com/images/top-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-4.gif" width="20" height="22"></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/left-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td width="100%" valign="top" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td align="center"><font color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Contact TouristPlacesinIndia.com for Great Deals on Car Rentals </span></font></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/text-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="5"></td>  </tr>  <tr>  <td align="center" valign="top">')



//3



document.write('<table border="0" cellpadding="0" cellspacing="0" width="500"><tr> <td width="500" align="center" nowrap><table border="0" width="100%" cellpadding="2"><tr> <td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0"><tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Name<font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><select NAME="selTitle" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option SELECTED VALUE="Mr">Mr </option> <option VALUE="Mrs">Mrs </option> <option VALUE="Ms">Ms </option> <option VALUE="Dr">Dr </option> </select><input TYPE="text" NAME="txiName" SIZE="22" MAXLENGTH="60" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Company Name</span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text" NAME="txiCompName" SIZE="31" MAXLENGTH="60" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Email<font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><input TYPE="text" NAME="txiEmail" SIZE="31" MAXLENGTH="60" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> <tr> <td valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Address</font><font color="red">*</font></span></td> <td valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><textarea NAME="txaAddress" COLS="32" ROWS="3" WRAP="virtual" style="font-family: Arial, Verdana; font-size: 9pt"></textarea></span></td> </tr> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Country</font><font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;<select name="selCountry" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="NA">Select - Country of Residence'+cntdis+'</option></select></span></td> </tr> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Car Preference</font><font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;<select name="selCar" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option value="NA">Select - Car Preferred</option> <option value="Ambassador">Ambassador </option> <option value="Cielo">Cielo</option> <option value="Ford Escort">Ford Escort</option> <option value="Ford Ikon">Ford Ikon </option> <option value="Fiat UNO">Fiat UNO</option> <option value="Hyundai Accent">Hyundai Accent</option> <option value="Maruti">Maruti </option> <option value="Maruti Esteem">Maruti Esteem</option> <option value="Mercedes C-Class">Mercedes C-Class</option> <option value="Mercedes E-Class"> Mercedes E-Class</option> <option value="Mitsubishi Lancer">Mitsubishi Lancer</option> <option value="Opel Astra">Opel Astra</option> <option value="Tata Safari">Tata Safari</option> </select></span></td> </tr> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Query / Comments</font><font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><textarea NAME="txaQuery" COLS="34" ROWS="5" WRAP="virtual" style="font-family: Arial, Verdana; font-size: 8pt"></textarea></span></td> </tr> </table> </td> <td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0"> <tr> <td vAlign="center"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Telephone Number </font>&nbsp;</span></td> <td align="left"><table border="0" cellpadding="2" cellspacing="0"> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Country<br> <input maxLength="50" name="txiCountryCode" size="2" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Area<br><input maxLength="50" name="txiCityCode" size="2" style="font-family: Arial, Verdana; font-size: 8pt"></span></td><td><span style="font-family: Arial, Verdana; font-size: 8pt">Phone<br> <input maxLength="50" name="txiPhone" size="8" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> </table> </td> </tr> <tr> <td vAlign="center"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Fax Number </font>&nbsp;</span></td> <td align="left"><table border="0" cellpadding="2" cellspacing="0"> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Country<br> <input maxLength="50" name="txiFaxCountryCode" size="2" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Area<br> <input maxLength="50" name="txiFaxCityCode" size="2" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Fax<br> <input maxLength="50" name="txiFax" size="8" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> </table> </td> </tr> <tr> <td><span style="font-family: Arial, Verdana; font-size: 8pt">Car Picking Place<font color="red">*</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;<input TYPE="text" NAME="txiCarPickPlace" SIZE="26" MAXLENGTH="60" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> <tr> <td align="left" vAlign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Car Picking Date/Time</font><font color="red">*</font></span></td> <td valign="top" align="left"><table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr> <td width="100%"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black"><select NAME="selPickMonth" STYLE="background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; font-family: Arial, Verdana; font-size: 8pt; background-position: 0%" size="1"> <option VALUE="NA" SELECTED>MM</option> <option VALUE="January">Jan</option> <option VALUE="February">Feb</option> <option VALUE="March">Mar</option> <option VALUE="April">Apr</option> <option VALUE="May">May</option> <option VALUE="June">Jun</option> <option VALUE="July">Jul</option> <option VALUE="August">Aug</option> <option VALUE="September">Sep</option> <option VALUE="October">Oct</option> <option VALUE="November">Nov</option> <option VALUE="December">Dec</option> </select>&nbsp;&nbsp; <select NAME="selPickDate" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option VALUE="NA" SELECTED>DD</option> <option VALUE="1">1</option> <option VALUE="2">2</option> <option VALUE="3">3</option> <option VALUE="4">4</option> <option VALUE="5">5</option> <option VALUE="6">6</option> <option VALUE="7">7</option> <option VALUE="8">8</option> <option VALUE="9">9</option> <option VALUE="10">10</option> <option VALUE="11">11</option> <option VALUE="12">12</option> <option VALUE="13">13</option> <option VALUE="14">14</option> <option VALUE="15">15</option> <option VALUE="16">16</option> <option VALUE="17">17</option> <option VALUE="18">18</option> <option VALUE="19">19</option> <option VALUE="20">20</option> <option VALUE="21">21</option> <option VALUE="22">22</option> <option VALUE="23">23</option> <option VALUE="24">24</option> <option VALUE="25">25</option> <option VALUE="26">26</option> <option VALUE="27">27</option> <option VALUE="28">28</option> <option VALUE="29">29</option> <option VALUE="30">30</option> <option VALUE="31">31</option> </select>&nbsp;&nbsp; <select NAME="selPickYear" STYLE="background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; font-family: Arial, Verdana; font-size: 8pt; background-position: 0%" size="1"> <option VALUE="NA" SELECTED>YY</option> <OPTION VALUE="2007">2007</OPTION>	<OPTION VALUE="2008">2008</OPTION>	<OPTION VALUE="2009">2009</OPTION>		<OPTION VALUE="2010">2010</OPTION> <OPTION VALUE="2011">2011</OPTION> <OPTION VALUE="2012">2012</OPTION> <OPTION VALUE="2013">2013</OPTION> <OPTION VALUE="2014">2014</OPTION> <OPTION VALUE="2015">2015</OPTION> <OPTION VALUE="2016">2016</OPTION>  <OPTION VALUE="2017">2017</OPTION>   <OPTION VALUE="2018">2018</OPTION> <OPTION VALUE="2019">2019</OPTION> <OPTION VALUE="2020">2020</OPTION> </select></font></span></td> </tr> <tr> <td width="100%"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black"><select name="selPickHour" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="HRS">Hrs</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select>&nbsp;&nbsp; <select name="selPickMinute" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="MIN">Min</option> <option value="00">00</option> <option value="10">10</option> <option value="20">20</option> <option value="30">30</option> <option value="40">40</option> <option value="50">50</option> </select>&nbsp;&nbsp; <select name="selPickAmPm" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="AM">AM</option> <option value="PM">PM</option> </select></font></span></td> </tr> </table> </td> </tr> <tr> <td align="left" vAlign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black">Car Returning Date/Time</font><font color="red">*</font></span></td> <td valign="top" align="left"><table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr> <td width="100%"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black"><select NAME="selRetMonth" STYLE="background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; font-family: Arial, Verdana; font-size: 8pt; background-position: 0%" size="1"> <option VALUE="NA" SELECTED>MM</option> <option VALUE="January">Jan</option> <option VALUE="February">Feb</option> <option VALUE="March">Mar</option> <option VALUE="April">Apr</option> <option VALUE="May">May</option> <option VALUE="June">Jun</option> <option VALUE="July">Jul</option> <option VALUE="August">Aug</option> <option VALUE="September">Sep</option> <option VALUE="October">Oct</option> <option VALUE="November">Nov</option> <option VALUE="December">Dec</option> </select>&nbsp;&nbsp; <select NAME="selRetDate" STYLE="background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; font-family: Arial, Verdana; font-size: 8pt; background-position: 0%" size="1"> <option VALUE="NA" SELECTED>DD</option> <option VALUE="1">1</option> <option VALUE="2">2</option> <option VALUE="3">3</option> <option VALUE="4">4</option> <option VALUE="5">5</option> <option VALUE="6">6</option> <option VALUE="7">7</option> <option VALUE="8">8</option> <option VALUE="9">9</option> <option VALUE="10">10</option> <option VALUE="11">11</option> <option VALUE="12">12</option> <option VALUE="13">13</option> <option VALUE="14">14</option> <option VALUE="15">15</option> <option VALUE="16">16</option> <option VALUE="17">17</option> <option VALUE="18">18</option> <option VALUE="19">19</option> <option VALUE="20">20</option> <option VALUE="21">21</option> <option VALUE="22">22</option> <option VALUE="23">23</option> <option VALUE="24">24</option> <option VALUE="25">25</option> <option VALUE="26">26</option> <option VALUE="27">27</option> <option VALUE="28">28</option> <option VALUE="29">29</option> <option VALUE="30">30</option> <option VALUE="31">31</option> </select>&nbsp;&nbsp; <select NAME="selRetYear" STYLE="background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; font-family: Arial, Verdana; font-size: 8pt; background-position: 0%" size="1"> <option VALUE="NA" SELECTED>YY</option> <OPTION VALUE="2007">2007</OPTION>	<OPTION VALUE="2008">2008</OPTION>	<OPTION VALUE="2009">2009</OPTION>		<OPTION VALUE="2010">2010</OPTION> <OPTION VALUE="2011">2011</OPTION> <OPTION VALUE="2012">2012</OPTION> <OPTION VALUE="2013">2013</OPTION> <OPTION VALUE="2014">2014</OPTION> <OPTION VALUE="2015">2015</OPTION> <OPTION VALUE="2016">2016</OPTION>  <OPTION VALUE="2017">2017</OPTION>   <OPTION VALUE="2018">2018</OPTION> <OPTION VALUE="2019">2019</OPTION> <OPTION VALUE="2020">2020</OPTION> </select></font></span></td> </tr> <tr> <td width="100%"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black"><select name="selRetHour" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="HRS">Hrs</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select>&nbsp;&nbsp; <select name="selRetMinute" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="MIN">Min</option> <option value="00">00</option> <option value="10">10</option> <option value="20">20</option> <option value="30">30</option> <option value="40">40</option> <option value="50">50</option> </select>&nbsp;&nbsp; <select name="selRetAmPm" size="1" style="font-family: Arial, Verdana; font-size: 8pt"> <option selected value="AM">AM</option> <option value="PM">PM</option> </select></font></span></td> </tr> </table> </td> </tr> <tr> <td align="left" vAlign="top"></td> <td valign="top" align="left"></td> </tr> <tr> <td align="left" vAlign="top"></td> <td valign="top" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="black"><p align="right"></font><BR>&nbsp;&nbsp; <input TYPE="submit" VALUE=" Submit " onClick="return validateCarQry(this.form)" style="font-family: Arial, Verdana; font-size: 8pt">&nbsp;&nbsp;<input TYPE="reset" VALUE=" Reset" style="font-family: Arial, Verdana; font-size: 8pt"></span></td> </tr> </table> </td> </tr> <tr> <td width="50%" valign="top"><span style="font-family: Arial, Verdana; font-size: 8pt"><em><font color="red">*</font> <font COLOR="#000000">Essential Information</font></em></span></td> <td width="50%" valign="top"></td> </tr> </table> </td> </tr> </table>')



//4

document.write('</td>  </tr>  </table>  </td>  <td background="http://www.touristplacesinindia.com/images/right-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-6.gif" width="20" height="20"></td>  <td background="http://www.touristplacesinindia.com/images/bottom-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-5.gif" width="20" height="20"></td>  </tr>  </table>')

//5

document.write('<BR></CENTER>')

document.write('</FORM></div>')

//

} 







/////



function validateCarQry(form) {

syspk= true;

sysrt= true;

pktime= true;

rttime= true;

//prompt("jas val = "+form+"\n");

var v=allblanksCarQry(form)

isCarQryQuery(form)

isCarQryRet(form)

isCarQryPick(form)

isCarQryPlace(form)

isCarQryCar(form)

isCarQryCountry(form)

isCarQryAddress(form) 

isCarQryEmail(form)

isCarQryName(form)



if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksCarQry(form) {

if(isCarQryPlace(form) && (isCarQryRet(form) && isCarQryPick(form))&& (isCarQryRetTime(form) && isCarQryPickTime(form)) && (isCarQryAddress(form) && isCarQryCar(form)) && (isCarQryName(form) && isCarQryEmail(form)) && (isCarQryCountry(form) && isCarQryQuery(form)) ) {

 return true ;

}

if((isCarQryPlace(form) == false) || (isCarQryRet(form) == false || isCarQryPick(form) == false) || (isCarQryPickTime(form) == false || isCarQryRetTime(form) == false) || (isCarQryAddress(form) == false || isCarQryCar(form) == false )  || (isCarQryName(form) == false || isCarQryEmail(form) == false ) || ( isCarQryCountry(form) == false || isCarQryQuery(form)==false ) ) {

composeCarQry(form);

return false ;

   }

}

function composeCarQry(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isCarQryName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isCarQryEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isCarQryAddress(form) == false) {

text += "\nYour Address -- should atleast be a line"

}

if(isCarQryCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isCarQryCar(form) == false) {

text += "\nYour Car Preference -- not selected yet"

}

if(isCarQryPlace(form) == false) {

text += "\nYour Car Picking Place -- can't be blank"

}

if((isCarQryPick(form) == false) && syspk == true) {

text += "\nYour Car Picking Date -- not selected yet"

}

else{

	if((isCarQryPick(form) == false) && syspk == false) {

		text += "\nYour Car Picking Date -- cannot be earlier than the System Date"

	}

}

if((isCarQryRet(form) == false) && sysrt == true){

text += "\nYour Car Returning Date -- not selected yet"

}

else{

	if((isCarQryRet(form) == false) && sysrt == false){

		text += "\nYour Car Returning Date -- cannot be earlier than the Pick Date"

	}

}

if((isCarQryPickTime(form) == false) && pktime == true) {

text += "\nYour Car Picking Time -- not selected yet"

}

else{

	if((isCarQryPickTime(form) == false) && pktime == false) {

		text += "\nYour Car Picking Time -- cannot be earlier than the System Time"

	}

}

if((isCarQryRetTime(form) == false) && rttime == true){

text += "\nYour Car Returning Time -- not selected yet"

}

else{

	if((isCarQryRetTime(form) == false) && rttime == false){

		text += "\nYour Car Returning Time -- cannot be earlier than the Pick Time"

	}

}

if(isCarQryQuery(form) == false) {

text += "\nComments/Query -- should atleast be a line"

}

alert(text)

}



//for country of residence

function isCarQryCountry(form)

{

 if(form.selCountry.value == "NA")

	{

	 form.selCountry.focus(); 

	 return false;

	} 

 else

   return true;  

 }



 //for car of preference

function isCarQryCar(form)

{

 if(form.selCar.value == "NA")

	{

	 form.selCar.focus(); 

	 return false;

	} 

 else

   return true;  

 }



//FOR EMAIL

function isCarQryEmail(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 isCarQryQuery(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 Picking Place

function isCarQryPlace(form) {

form.txiCarPickPlace.value=trim(form.txiCarPickPlace.value);

if (trim(form.txiCarPickPlace.value) == "") {

form.txiCarPickPlace.focus();

return false;

}

else {

			

	     if(checkfornum(form.txiCarPickPlace.value)==1)// i. e, it is a pure number that is invalid

		   {

			form.txiCarPickPlace.focus();

			return(false);

			}

		qry=trim(form.txiCarPickPlace.value);

		if(qry.length <= 4 )// if it is too short

			{

			 form.txiCarPickPlace.focus();

			 return(false);

			}	

return true ;

   }

}



//FOR Address

function isCarQryAddress(form) {

form.txaAddress.value=trim(form.txaAddress.value);

if (trim(form.txaAddress.value) == "") {

form.txaAddress.focus();//compulsory

return false;

}

else {

		if(checkfornum(form.txaAddress.value)==1)// i. e, it is a pure number that is invalid

		   {

			form.txaAddress.focus();

			return(false);

			}

		qry=trim(form.txaAddress.value);

		if(qry.length <= 10 )// if it is too short

			{

			 form.txaAddress.focus();

			 return(false);

			}	

return true ;

   }

}



//FOR NAME

function isCarQryName(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 ;

   }

}



//for Picking Date

function isCarQryPick(form)

{

	syspk = true;

 if((form.selPickDate.value == "NA") || (form.selPickMonth.value == "NA") || (form.selPickYear.value == "NA") ) {

	

	if(form.selPickYear.value == "NA"){ 

	 form.selPickYear.focus(); 

	}

	if(form.selPickDate.value == "NA"){ 

	 form.selPickDate.focus(); 

	}

	if(form.selPickMonth.value == "NA"){ 

	 form.selPickMonth.focus(); 

	}

		 return false; //presently  used

 } 

 else{

		for(i=0;i<=montharray.length;i++)

		{

			if (montharray[i]==form.selPickMonth.value)

			{

				dgt=i;

				break;	

			}

		}

		//alert(dgt)

		if(form.selPickYear.value < year)

		{

			//alert("Invalid date. It must be a future date.");

			syspk = false;

			form.selPickYear.focus(); 

			return false; //presently  used

		} 

		else

		{

			if((form.selPickYear.value == year) && (dgt < month))

			{

				//alert("Invalid date. It must be a future date.");

				syspk = false;

				form.selPickMonth.focus();

				return false;

			}

			else

			{

				if((form.selPickYear.value == year) && (dgt == month))

				{

					if (form.selPickDate.value < daym)

					{

						//alert("Invalid date. It must be a future date.");

						syspk = false;

						form.selPickDate.focus();

						return false;

					}

					else

						return true;

				}

			}

		}

	}  

 }



//for Returning Date

function isCarQryRet(form)

{

	sysrt = true;

 if((form.selRetDate.value == "NA") || (form.selRetMonth.value == "NA") || (form.selRetYear.value == "NA") ) {

	

	if(form.selRetYear.value == "NA"){ 

	 form.selRetYear.focus(); 

	}

	if(form.selRetDate.value == "NA"){ 

	 form.selRetDate.focus(); 

	}

	if(form.selRetMonth.value == "NA"){ 

	 form.selRetMonth.focus(); 

	}

		 return false; //presently  used

 } 

 else{

		if(form.selRetYear.value < form.selPickYear.value)

		{

		//alert("1")	

		sysrt = false;

		//alert("Return Date cannot be Earlier than Picking Date");

		form.selRetYear.focus(); 

		return false; //presently  used

	}

	else

	{

		for(i=0;i<=montharray.length;i++)

		{

			if (montharray[i]==form.selRetMonth.value)

			{

				retmn=i+1;

				break;

			}

		}

		for(i=0;i<=montharray.length;i++)

		{

			if (montharray[i]==form.selPickMonth.value)

			{

				pickmn=i+1;

				break;

			}

		}

		//alert(retmn)

		//alert(pickmn)

		if((form.selRetYear.value == form.selPickYear.value) && (retmn < pickmn))

		{

			//alert("2")

			sysrt = false;

			//alert("Return Date cannot be Earlier than Picking Date");

			form.selRetMonth.focus();

			return false;

		}

		else

		{

			if((form.selRetYear.value == form.selPickYear.value) && (retmn == pickmn))

			{

				//alert("hello")

				//alert(form.selRetDate.value)

				//alert(form.selPickDate.value)

				if (parseInt(form.selRetDate.value) < parseInt(form.selPickDate.value))

				{

					//alert("3")

					sysrt = false;

					//alert("Return Date cannot be Earlier than Picking Date");

					form.selRetDate.focus();

					return false;

				}

				else 

					return true;

			}

		}

	}

	} 

 }

function isCarQryPickTime(form)

{

		pktime=true;

 if((trim(form.selPickHour.value) == "HRS") || (trim(form.selPickMinute.value) == "MIN")) {

	

	if(trim(form.selPickHour.value) == "HRS"){

		//alert("Pick Time cannot be Left Blank")

		form.selPickHour.focus(); 

		return false;

	}

	else{

		if(trim(form.selPickMinute.value) == "MIN"){

		//alert("Pick Time cannot be Left Blank")		

		form.selPickMinute.focus(); 

		return false; //presently  used

		}

	}

 } 

 else

	{

		for(i=0;i<=montharray.length;i++)

		{

			if (montharray[i] == form.selPickMonth.value)

			{

				pkm = i;

				break;

			}

		}

		if((parseInt(form.selPickYear.value == year)) && (pkm == month) && (form.selPickDate.value == daym))

		{

		chktime = parseInt(hours) + (parseInt(minutes) / 60) 

		picktime = parseInt(form.selPickHour.value) + (parseInt(form.selPickMinute.value) / 60)

			//alert(parseInt(form.selPickMinute.value) / 60)

			//alert("picktime: "+picktime+"\nrettime: "+rettime)

			if (picktime <= chktime)

			{

				if (form.selPickAmPm.value == dn)

				{

					//alert("Invalid Return Time!\nCannot be earlier than Pick Time");

					pktime=false;

					form.selPickHour.focus(); 

					return false; 

				}

				if ((form.selPickAmPm.value == "AM") && (dn == "PM"))

				{

					//alert("Invalid Return Time!\nCannot be earlier than Pick Time");

					pktime=false;

					form.selPickHour.focus(); 

					return false; 

				}

			}

			else

				return true; 

	}

	}

 }

function isCarQryRetTime(form)

{

	rttime=true;

 if((trim(form.selRetHour.value) == "HRS") || (trim(form.selRetMinute.value) == "MIN")) {

	

	if(trim(form.selRetHour.value) == "HRS"){

		//alert("Return Time cannot be Left Blank")

		form.selRetHour.focus(); 

		return false;

	}

	else{

		if(trim(form.selRetMinute.value) == "MIN"){

		//alert("Return Time cannot be Left Blank")		

		form.selRetMinute.focus(); 

		return false; //presently  used

		}

	}

 } 

 else

	{

		for(i=0;i<=montharray.length;i++)

	{

		if (montharray[i] == form.selPickMonth.value)

		{

			pkm = i;

			break;

		}

	}

	for(i=0;i<=montharray.length;i++)

	{

		if (montharray[i] == form.selRetMonth.value)

		{

			rtm = i;

			break;

		}

	}



	if((parseInt(form.selRetYear.value) == parseInt(form.selPickYear.value)) && (rtm == pkm) && (form.selRetDate.value == form.selPickDate.value))

	{

		chkpicktime = parseInt(form.selPickHour.value) + (parseInt(form.selPickMinute.value) / 60) 

		rettime = parseInt(form.selRetHour.value) + (parseInt(form.selRetMinute.value) / 60)

			//alert(parseInt(form.selPickMinute.value) / 60)

			//alert("picktime: "+picktime+"\nrettime: "+rettime)

			if (rettime <= chkpicktime)

			{

				if (form.selRetAmPm.value == form.selPickAmPm.value)

				{

					//alert("Invalid Return Time!\nCannot be earlier than Pick Time");

					rttime=false;

					form.selRetHour.focus(); 

					return false; 

				}

				if ((form.selRetAmPm.value == "AM") && (form.selPickAmPm.value == "PM"))

				{

					//alert("Invalid Return Time!\nCannot be earlier than Pick Time");

					rttime=false;

					form.selRetHour.focus(); 

					return false; 

				}

			}

			else

				return true; 

	}

	} 

 }



//////////////////////////////////////////New Tech. General Air  Booking form /////////////////////////////////////////

//Contact RajasthanHoliday.com  your trusted Online Tour Operator in India for Tour Packages, Costing of Tours to India, and Air and Hotel Bookings.



function airBooking(path)

{

if (path==null)

	path="./";



//1

document.write('<a name="frmAirQuery"></a><div align="center"><form name="frmAirQry" action="http://www.touristplacesinindia.com/cgi-bin/tourair.pl" method="post">')





//2

document.write('<br><table width="85%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td colspan="3"><table width="60%" border="0" cellspacing="0" cellpadding="0">  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-1.gif" width="11" height="23"></td>  <td bgcolor="#1048B0" width="100%"><p align="center"><span style="font-family: Arial, Verdana; font-size: 10pt"><font color="#FFFFFF"><strong>Air Bookings</strong></font></span></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-2.gif" width="44" height="23"></td>  </tr>  </table>  </td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-3.gif" width="20" height="22"></td>  <td background="http://www.touristplacesinindia.com/images/top-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-4.gif" width="20" height="22"></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/left-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td width="" valign="top" align="center"><table width="" border="0" bordercolor=yellow cellspacing="0" cellpadding="0">  <tr>  <td align="center"><font color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Contact TouristPlacesinIndia.com for Great Deals on Domestic and International Air Booking from India</span></font></td>  </tr>  <tr>  <td background="http://www.touristplacesinindia.com/images/text-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="5"></td>  </tr>  <tr>  <td align="center" valign="top">')



//3



document.write('<table border="0" cellpadding="0" cellspacing="0" width="500"><tr><td width="500" align="center" nowrap><table border="0" width="100%"cellpadding="2"><tr><td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Title</span></font></td><td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><INPUT TYPE="HIDDEN" NAME="referer" VALUE="'+window.location+'"><INPUT TYPE="HIDDEN" NAME="sitename" VALUE="'+sitename+'"><select NAME="selTitle" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option SELECTED VALUE="Mr">Mr </option><option VALUE="Mrs">Mrs </option><option VALUE="Ms">Ms </option><option VALUE="Dr">Dr </option></select> </font></span></td></tr><tr><td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Your Name</span></font></td><td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><input TYPE="text" NAME="txiName" SIZE="25" MAXLENGTH="50" style="font-family: Arial, Verdana; font-size: 8pt"><font color="red"></font></font></span><sup>*</sup></td></tr><tr>')



document.write('<td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Your Email</span></font></td> <td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><input TYPE="text" NAME="txiEmail" SIZE="24" MAXLENGTH="50" style="font-family: Arial, Verdana; font-size: 8pt"><font color="red"></font></font></span><sup>*</sup></td></tr><tr><td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Country </span></font></td><td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><select name="selCountry" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option selected value="NA">Country of Residence'+cntdis+'</option></select></font></span></td></tr><tr><td vAlign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Telephone Number :</span></font></td> <td align="left" valign="middle"><table border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="middle"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1">Country<br> <input maxLength="10" name="txiCountryCode" size="2" style="font-family: Arial, Verdana; font-size: 8pt"></font></span></td> <td align="left" valign="middle"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1">Area<br>&nbsp;<input maxLength="3" name="txiCityCode" size="5" style="font-family: Arial, Verdana; font-size: 8pt"></font></span></td><td align="left" valign="middle"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1">Phone<br> &nbsp;<input maxLength="50" name="txiPhone" size="8" style="font-family: Arial, Verdana; font-size: 8pt"></font></span></td></tr></table></td></tr></table></td><td width="50%" valign="top"><table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Flying from Country, City :</span></font></td><td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="#000000" face="Arial" size="1"></font><font face="Arial" size="1"><select name="selFlyingFromCountry" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option selected value="NA">Select flying from - Country'+cntdis+'</option></select><br><input type="text" size="26" maxlength="30" name="txiFlyingFromCity" style="font-family: Arial, Verdana; font-size: 8pt"><font COLOR="#000000">(City)</font></font><font color="#000000" face="Arial" size="1"></font></span></td></tr><tr><td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Flying to Country, City :</span></font></td><td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="#000000" face="Arial" size="1"></font><font face="Arial" size="1"><select name="selFlyingToCountry" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option selected value="NA">Select flying to - Country'+cntdis+'</option></select><br><input type="text" size="26" maxlength="30" name="txiFlyingToCity" style="font-family: Arial, Verdana; font-size: 8pt"><font COLOR="#000000">(City)</font></font><font color="#000000" face="Arial" size="1"></font></span></td></tr><tr><td valign="middle" align="left"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">Date of Travel :</span></font></td><td valign="middle" align="left"><span style="font-family: Arial, Verdana; font-size: 8pt"><font color="#000000" face="Arial" size="1"></font><font face="Arial" size="1"><select name="selTentDate" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option selected value="NA">DD</option><option value="01">1</option><option value="02">2</option><option value="03">3</option><option value="04">4</option><option value="05">5</option><option value="06">6</option><option value="07">7</option><option value="08">8</option><option value="09">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select><select name="selTentMonth" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option selected value="NA">MM</option><option value="01">Jan</option><option value="02">Feb</option><option value="03">Mar</option><option value="04">Apr</option><option value="05">May</option><option value="06">Jun</option><option value="07">Jul</option><option value="08">Aug</option><option value="09">Sep</option><option value="10">Oct</option><option value="11">Nov</option><option value="12">Dec</option></select> <select name="selTentYear" size="1" style="font-family: Arial, Verdana; font-size: 8pt"><option selected value="NA">YY</option><OPTION VALUE="2007">2007</OPTION>	<OPTION VALUE="2008">2008</OPTION>	<OPTION VALUE="2009">2009</OPTION>		<OPTION VALUE="2010">2010</OPTION> <OPTION VALUE="2011">2011</OPTION> <OPTION VALUE="2012">2012</OPTION> <OPTION VALUE="2013">2013</OPTION> <OPTION VALUE="2014">2014</OPTION> <OPTION VALUE="2015">2015</OPTION> <OPTION VALUE="2016">2016</OPTION>  <OPTION VALUE="2017">2017</OPTION>   <OPTION VALUE="2018">2018</OPTION> <OPTION VALUE="2019">2019</OPTION> <OPTION VALUE="2020">2020</OPTION></select><font COLOR="#000000">(Select)</font></font><font color="#000000" face="Arial" size="1"></font></span></td></tr><tr><td align="left" vAlign="middle"><font face="Arial" size="1" color="#000000"><span style="font-family: Arial, Verdana; font-size: 8pt">No. of Passengers : </span></font></td><td align="left" vAlign="middle"><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><input maxLength="5" name="txiPax" size="5" style="font-family: Arial, Verdana; font-size: 8pt"></font></span></td></tr></table></td></tr><tr><td width="100%" valign="top" colspan="2"><table border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"></font><font COLOR="#000000" face="Arial" size="1">Routing(Origin / Stopovers/Destination)</font><font face="Arial" size="1"> :</font></span></td> <td><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><textarea NAME="txaQuery" COLS="40" ROWS="5" WRAP="virtual" style="font-family: Arial, Verdana; font-size: 8pt"></textarea></font></span></td><td valign="bottom"><font face="Arial" size="1"><span style="font-family: Arial, Verdana; font-size: 8pt"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input TYPE="submit" VALUE="Submit" onClick="return validateAirQry(this.form)" style="font-family: Arial, Verdana; font-size: 8pt">&nbsp; <input TYPE="reset" VALUE="Reset" style="font-family: Arial, Verdana; font-size: 8pt"></span></font></td> </tr></table></td></tr><tr><td width="50%" valign="top"><em><span style="font-family: Arial, Verdana; font-size: 8pt"><font face="Arial" size="1"><font color="red">*</font> <font COLOR="#000000">Essential Information</font></font></span></em></td><td width="50%" valign="top"></td> </tr> </table> </td> </tr> </table>')



//4

document.write('</td>  </tr>  </table>  </td>  <td background="http://www.touristplacesinindia.com/images/right-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  </tr>  <tr>  <td><img src="http://www.touristplacesinindia.com/images/cor-6.gif" width="20" height="20"></td>  <td background="http://www.touristplacesinindia.com/images/bottom-bg.gif"><img src="http://www.touristplacesinindia.com/images/trans.gif" width="10" height="10"></td>  <td><img src="http://www.touristplacesinindia.com/images/cor-5.gif" width="20" height="20"></td>  </tr>  </table>')



//5

document.write('<BR></CENTER>')

document.write('</FORM></div>')

//

}











//////



function validateAirQry(form) {

pkflg == true

var v=allblanksAir(form)

isAirQryQuery(form)

//isAirQryCountry(form)

isAirQryTentDate(form)

isAirQryEmail(form)

isAirQryName(form)

if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksAir(form) {

if( (isAirQryName(form) && isAirQryEmail(form)) && (isAirQryTentDate(form) && isAirQryQuery(form)) ) {

 return true ;

}

if( (isAirQryName(form) == false || isAirQryEmail(form) == false) || (isAirQryTentDate(form) == false || isAirQryQuery(form)==false ) ) {

composeAir(form);

return false ;

   }

}

function composeAir(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isAirQryName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isAirQryEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if ((isAirQryTentDate(form)==false) && pkflg == true){

		text += "\nYour Tentative Date of Travel-- not selected yet"

	}

	else{

		if ((isAirQryTentDate(form)==false) && pkflg == false){

		text += "\nYour Tentative Date of Travel is invalid -- pick a future date"

		}

	}

//if(isAirQryCountry(form) == false) {

//text += "\nYour Country of Residence -- not selected yet"

//}

if(isAirQryQuery(form) == false) {

text += "\nTopic Comments/Query -- should atleast be a line or blank"

}

alert(text)

}



//for country of residence not used at present

function isAirQryCountry(form)

{

 if(form.selCountry.value == "NA")

	{

	 form.selCountry.focus(); 

	 return false; //presently not used

	} 

 else

   return true;  

 }

//FOR EMAIL

function isAirQryEmail(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 isAirQryQuery(form) {

form.txaQuery.value=trim(form.txaQuery.value);

if (trim(form.txaQuery.value) == "") {

//form.txaQuery.focus();

return true;

}

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 NAME

function isAirQryName(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 ;

   }

}



function isAirQryTentDate(form)

{

 if((form.selTentDate.value == "NA") || (form.selTentMonth.value == "NA") || (form.selTentYear.value == "NA"))

	{

	 form.selTentMonth.focus(); 

	 return false;

	} 

 else

	{

		if (isAirTentDate(form)==false)

		{

			return false;

		}

		else

			return true;

	}

 }

function isAirTentDate(form)

{

	for(i=0;i<=montharray.length;i++)

	{

		if (montharray[i]==form.selTentMonth.value)

		{

			dgt=i;

			break;

		}

	}

	//alert(dgt)

if(form.selTentYear.value < year)

{

	//alert("Invalid date. It must be a future date.");

	pkflg = false;

	form.selTentYear.focus(); 

	return false; //presently  used

 } 

 else

	{

		if((form.selTentYear.value == year) && (dgt < month))

		{

			//alert("Invalid date. It must be a future date.");

			pkflg = false;

			form.selTentMonth.focus();

			return false;

		}

		else

		{

			if((form.selTentYear.value == year) && (dgt == month))

			{

				if (form.selTentDate.value < daym)

				{

				//alert("Invalid date. It must be a future date.");

				pkflg = false;

				form.selTentDate.focus();

				return false;

				}

				else

					return true;

			}

		}

	}

 }







////////////////////////////// Common Functions are put here ///////////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return 1;

        }

        else

        {

        return 0;

        }

}





function GoBack() { 

			history.back();   

					}







function validateQry(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksQry(form)

isQryQuery(form)

isQryCountry(form)

isQryEmail(form)

isQryName(form)

if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksQry(form) {

if( (isQryName(form) && isQryEmail(form)) && (isQryCountry(form) && isQryQuery(form)) ) {

 return true ;

}

if( (isQryName(form) == false || isQryEmail(form) == false ) || ( isQryCountry(form) == false || isQryQuery(form)==false ) ) {

composeQry(form);

return false ;

   }

}

function composeQry(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isQryName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isQryEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isQryCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isQryQuery(form) == false) {

text += "\nTopic Comments/Query -- should atleast be a line or blank"

}

alert(text)

}



//for country of residence

function isQryCountry(form)

{

 if(form.selCountry.value == "NA")

	{

	 //form.selCountry.focus(); 

	 return true; //presently not used

	} 

 else

   return true;  

 }

//FOR EMAIL

function isQryEmail(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 isQryQuery(form) {

form.txaQuery.value=trim(form.txaQuery.value);

if (trim(form.txaQuery.value) == "") {

//form.txaQuery.focus();

return true;

}

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 NAME

function isQryName(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 ;

   }

}



/////////////////////////////////////////////////New Tech. Hotel Popup form////////////////////////////

function popUpHotelBooking(h,bc)

{

u=self.location;

//prompt(self.location);

window.open("http://www.indiahotelsandresorts.com/cgi-bin/bookhotel.pl?hotel="+h+"&bgc="+bc+"&ul="+u+"","dcc","toolbar=no,menubar=no,height=500,width=500,top=20,left=200,scrollbars=yes,location=no,status=yes,resize=yes,alwaysRaised=yes")

//self.close()

}



function validatePopUpHotelBooking(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksHotelPopUp(form)

isHotelQuery(form)

isHotelCountry(form)

isHotelEmail(form)

isHotelName(form)

if( v == true)

	{

		v=confirm("Have You entered \nthe information Correctly !!");

	}

return v;

}



function allblanksHotelPopUp(form) {

if( (isHotelName(form) && isHotelEmail(form)) && (isHotelCountry(form) && isHotelQuery(form)) ) {

 return true ;

}

if( (isHotelName(form) == false || isHotelEmail(form) == false ) || ( isHotelCountry(form) == false || isHotelQuery(form)==false ) ) {

composeHotelPopUp(form);

return false ;

   }

}

function composeHotelPopUp(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isHotelName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isHotelEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isHotelCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isHotelQuery(form) == false) {

text += "\nTopic Comments/Query -- should atleast be a line or blank"

}

alert(text)

}



//for country of residence

function isHotelCountry(form)

{

 if(form.selCountry.value == "NA")

	{

	 //form.selCountry.focus(); 

	 return true;

	} 

 else

   return true;  

 }



//FOR EMAIL

function isHotelEmail(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 isHotelQuery(form) {

form.txaQuery.value=trim(form.txaQuery.value);

if (trim(form.txaQuery.value) == "") {

//form.txaQuery.focus();

return true;

}

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 NAME

function isHotelName(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 ;

   }

}



////////////////////////////////////////////////New Tech. More Info  PopUp Form///////////////////////////////

function popUp()

{

u=self.location;

var bc="ffffff";

//alert(self.location);

window.open("http://www.indiahotelsandresorts.com/cgi-bin/moreinfo.pl?bgc="+bc+"&ul="+u+"","ihar","toolbar=no,menubar=no,height=370,width=520,top=20,left=200,scrollbars=no,location=no,status=yes,resize=yes")

//self.close()

}







function validatePopUp(form) {

//prompt("jas val = "+form+"\n")

var v=allblanksPopUp(form)

isQuery(form)

isCountry(form)

isEmail(form)

isName(form)

//if( v == true)

//	{

//	v=confirm("Have You entered \nthe information Correctly !!");

//	}

return v;

}



function allblanksPopUp(form) {

if( (isName(form) && isEmail(form)) && (isCountry(form) && isQuery(form)) ) {

 return true ;

}

if( (isName(form) == false || isEmail(form) == false ) || ( isCountry(form) == false || isQuery(form)==false ) ) {

composePopUp(form);

return false ;

   }

}

function composePopUp(form) {

var text = " You entered incorrectly or forgot to fill in ::\n"	

if(isName(form) == false) {

text += "\nYour Name -- must be purely alphabetic"

}

if(isEmail(form) == false) {

text += "\nYour E-mail -- improper/incomplete e-mail ID"

}

if(isCountry(form) == false) {

text += "\nYour Country of Residence -- not selected yet"

}

if(isQuery(form) == false) {

text += "\nTopic Comments/Query -- should be given briefly"

}

alert(text)

}



//for country of residence

function isCountry(form)

{

 if(form.selCountry.value == "null")

   return true;

 else

   return true;  

 }



//FOR EMAIL

function isEmail(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 isQuery(form) {

form.txaQuery.value=trim(form.txaQuery.value);

if (trim(form.txaQuery.value) == "") {

//form.txaQuery.focus();

return true

}

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 NAME

function isName(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 ;

   }

}







///////////////////////////////////////// common functions are put here///////////////////////////////

function trim(str1)

{

// This function trims any given field value for blank spaces.

        var intCtr=0

        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);

        str1=str1.substring(intCtr,str1.length);

        return str1;    

}



function checkforchar(strdate)

{

//This function checks for string values

var validdate = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	

	var strlength = strdate.length;

	for(var i=0; i<=strlength; i++)

	{

		var unitstr = strdate.substr(i,1);

		if (validdate.indexOf(unitstr)==-1)

		{

			return false;

		}

	}

	return true;

}



function checkfornum(str1) 

{

//This function checks for numeric values

        var numstr="1234567890 ,";

        var intctr,intLen;

            intLen=str1.length;

        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);

        if(intCtr > intLen)

        {

                return 1;

        }

        else

        {

        return 0;

        }

}





function GoBack() { 

			history.back();   

					}

function manusmile(){

window.open("../link.html","win1","menubar=0,location=0,status=no,directories=no,toolbar=0,scrollbars=0,width=385,height=330,resizable=no,alwaysRaised=yes,left=10,top=0");





}	
