// JavaScript Document
function Tajanalytics()
{
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-22825636-1']);
	_gaq.push(['_trackPageview']);
	(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })
	();

}


function openfrm(frm)
{
	document.location.href = 'Booking-Form.asp?Name='+frm;
}

function toursfrm(trm)
{
	document.location.href = 'Booking-Form.asp?Name='+trm;
}

function openfrmcar(trm)
{
	document.location.href = 'Booking-Form.asp?Name='+trm;
}

function fn_placetoEat(trm)
{
	document.location.href = 'Booking-Form.asp?Name='+trm;
}


// CREATE YOUR OWN PACKAGE 
function fn_myPackage()
{
	document.write("<div id=\"tour\">");
	document.write("<div id=\"tourpanel\">");
	document.write("<form id=\"myPackage\" action=\"myPackage.asp\" method=\"post\">");                    
	document.write("<div class=\"tourpanelcontent\">");
	document.write("<div class=\"left\">");
	document.write("<h1>Create your own package</h1>");
	document.write("<p class=\"grey\">Please fill up the following form correctly to help understand your requirements better and to assist you on planning an ideal package.</p>");
	document.write("<p class=\"grey\">&nbsp;</p>");
	document.write("<p class=\"grey\">Which Cities would you like to visit?</p>");
	
	// city list
	document.write("<fieldset>");
	document.write("<legend>Select all applicable cities</legend>");

	document.write("<table width=\"100%\">");							
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Agra\"></td><td>Agra</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Aurangabad\"></td><td>Aurangabad</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Bangalore\"></td><td>Bangalore</td></tr>");		
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Bharatpur\"></td><td>Bharatpur</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Bombay\"></td><td>Bombay</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Calcutta\"></td><td>Calcutta</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Chandigarh\"></td><td>Chandigarh</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Cochin\"></td><td>Cochin</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Corbett\"></td><td>Corbett</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Darjeeling\"></td><td>Darjeeling</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Gangtok\"></td><td>Gangtok</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Goa\"></td><td>Goa</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Haridwar\"></td><td>Haridwar</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Jaipur\"></td><td>Jaipur</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Jaisalmer\"></td><td>Jaisalmer</td></tr>");							
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Jodhpur\"></td><td>Jodhpur</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Kalimpong\"></td><td>Kalimpong</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Kanha\"></td><td>Kanha</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Khajuraho\"></td><td>Khajuraho</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Kulu &amp; Manali\"></td><td>Kulu &amp; Manali</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Madras\"></td><td>Madras</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Madurai\"></td><td>Madurai</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Mussorie\"></td><td>Mussorie</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Mysore\"></td><td>Mysore</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Nainital\"></td><td>Nainital</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"New Delhi\"></td><td>New Delhi</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Ooty\"></td><td>Ooty</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Periyar\"></td><td>Periyar</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Pondicherry\"></td><td>Pondicherry</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Ranthambore\"></td><td>Ranthambore</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Rishikesh\"></td><td>Rishikesh</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Shimla\"></td><td>Shimla</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Tiruchirappalli\"></td><td>Tiruchirappalli</td></tr>");
	document.write("<tr><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Trivandrum\"></td><td>Trivandrum</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Udaipur\"></td><td>Udaipur</td><td><input type=\"checkbox\" id=\"city\" name=\"city\" value=\"Varanasi\"></td><td>Varanasi</td></tr>");
	document.write("</table>");
	document.write("</fieldset>");
	document.write("</div>");
	
	document.write("<div class=\"left\">");
	document.write("<h1>Member Details?</h1>");
	document.write("<label class=\"grey\" for=\"log\">Name</label>");
	document.write("<input class=\"field\" type=\"text\" name=\"name\" id=\"name\" value=\"\" size=\"23\" />");
	document.write("<label class=\"grey\" for=\"log\">E-Mail Address</label>");
	document.write("<input class=\"field\" type=\"text\" name=\"email\" id=\"email\" value=\"\" size=\"23\" />");
	document.write("<label class=\"grey\" for=\"log\">Phone Number</label>");
	document.write("<input class=\"field\" type=\"text\" name=\"phone\" id=\"phone\" value=\"\" size=\"23\" />");
	document.write("<label class=\"grey\" for=\"log\">Nationality</label>");
	document.write("<input class=\"field\" type=\"text\" name=\"nationality\" id=\"nationality\" value=\"\" size=\"23\" />");
	document.write("<label class=\"grey\" for=\"log\">City in India you would like to start the tour from ?</label>");
	document.write("<input class=\"field\" type=\"text\" name=\"Startcity\" id=\"Startcity\" value=\"\" size=\"23\" />");
	document.write("<label class=\"grey\" for=\"log\">Do you have any other preferences?</label>");
	document.write("<textarea class=\"textarea\" name=\"comment\"></textarea>");
	document.write("<div class=\"clear\"></div>");
	document.write("</div>");
	document.write("<div class=\"left right\">");
	document.write("<h1>Travelling Details?</h1>");
	document.write("<label class=\"grey\" for=\"log\">When would you like to travel ?</label>");
	document.write("<select name=\"month\" class=\"month\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"January\">January</option>");
	document.write("<option value=\"February\">February</option>");
	document.write("<option value=\"March\">March</option>");
	document.write("<option value=\"April\">April</option>");
	document.write("<option value=\"May\">May</option>");
	document.write("<option value=\"June\">June</option>");
	document.write("<option value=\"July\">July</option>");
	document.write("<option value=\"August\">August</option>");
	document.write("<option value=\"September\">September</option>");
	document.write("<option value=\"October\">October</option>");
	document.write("<option value=\"November\">November</option>");
	document.write("<option value=\"December\">December</option>");
	document.write("</select>");
	document.write("&nbsp;");
	document.write("<select name=\"year\" class=\"year\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"2011\">2011</option>");
	document.write("<option value=\"2012\">2012</option>");
	document.write("<option value=\"2013\">2013</option>");
	document.write("<option value=\"2014\">2014</option>");
	document.write("<option value=\"2015\">2015</option>");						
	document.write("</select>");
	document.write("<label class=\"grey\" for=\"log\">What is your proposed duration of stay?</label>");
	document.write("<select name=\"duration\" class=\"select\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"3-4 Days\">3-4 Days</option>");
	document.write("<option value=\"1 Week\">1 Week</option>");
	document.write("<option value=\"2 Week\">2 Week</option>");
	document.write("<option value=\"3 Week\">3 Week</option>");
	document.write("<option value=\"1 Month\">1 Month</option>");
	document.write("<option value=\"2 Month\">2 Month</option>");
	document.write("<option value=\"3 Month\">3 Month</option>");
	document.write("<option value=\"Longer\">Longer</option>");
	document.write("</select>");
	document.write("<label class=\"grey\" for=\"log\">Number of adults travelling</label>");
	document.write("<select name=\"no_of_adults\" class=\"select\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"0\">0</option>");
	document.write("<option value=\"1\">1</option>");
	document.write("<option value=\"2\">2</option>");
	document.write("<option value=\"3\">3</option>");
	document.write("<option value=\"4\">4</option>");
	document.write("<option value=\"5\">5</option>");
	document.write("<option value=\"6\">6</option>");
	document.write("<option value=\"7\">7</option>");
	document.write("<option value=\"8\">8</option>");
	document.write("<option value=\"9\">9</option>");
	document.write("<option value=\"10\">10</option>");
	document.write("<option value=\"more than 10\">more than 10</option>");
	document.write("</select>");
	document.write("<label class=\"grey\" for=\"log\">Number of children travelling</label>");
	document.write("<select name=\"no_of_children\" class=\"select\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"0\">0</option>");
	document.write("<option value=\"1\">1</option>");
	document.write("<option value=\"2\">2</option>");
	document.write("<option value=\"3\">3</option>");
	document.write("<option value=\"4\">4</option>");
	document.write("<option value=\"5\">5</option>");
	document.write("<option value=\"6\">6</option>");
	document.write("<option value=\"7\">7</option>");
	document.write("<option value=\"8\">8</option>");
	document.write("<option value=\"9\">9</option>");
	document.write("<option value=\"10\">10</option>");
	document.write("<option value=\"more than 10\">more than 10</option>");					
	document.write("</select>");
	document.write("<label class=\"grey\" for=\"log\">Number of infants travelling</label>");
	document.write("<select name=\"no_of_infants\" class=\"select\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"0\">0</option>");
	document.write("<option value=\"1\">1</option>");
	document.write("<option value=\"2\">2</option>");
	document.write("<option value=\"3\">3</option>");
	document.write("<option value=\"4\">4</option>");
	document.write("<option value=\"5\">5</option>");
	document.write("<option value=\"6\">6</option>");
	document.write("<option value=\"7\">7</option>");
	document.write("<option value=\"8\">8</option>");
	document.write("<option value=\"9\">9</option>");
	document.write("<option value=\"10\">10</option>");
	document.write("<option value=\"more than 10\">more than 10</option>");					
	document.write("</select>");
	document.write("<label class=\"grey\" for=\"log\">Category of hotels required</label>");
	document.write("<select name=\"hotel_cat\" class=\"select\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"Standard\">Standard</option>");
	document.write("<option value=\"Superior\">Superior</option>");
	document.write("<option value=\"Deluxe\">Deluxe</option>");
	document.write("</select>");
	document.write("<label class=\"grey\" for=\"log\">How would you prefer to travel within India?</label>");
	document.write("<select name=\"travel_mode\" class=\"select\">");
	document.write("<option value=\"\">Select</option>");
	document.write("<option value=\"Air\">Air</option>");
	document.write("<option value=\"Rail\">Rail</option>");
	document.write("<option value=\"Road\">Road</option>");
	document.write("</select>");
	document.write("<p class=\"grey\">&nbsp;</p>");
	document.write("<input type=\"submit\" name=\"submit\" value=\"Submit\" class=\"bt_register\" />");
	document.write("</div>");
	document.write("</div>");
	document.write("</form>");
	document.write("</div>");
	// tab for scroll
	document.write("<div id=\"t2utab\">");
	document.write("<ul class=\"t2umaltitab\">");
	document.write("<li class=\"left\">&nbsp;</li>");
	document.write("<li id=\"links\">");
	document.write("<a href=\"index.html\">Home</a>  |  <a href=\"About-Us.html\">About Us</a>  |  <a href=\"Contact-Us.html\">Contact Us</a>  |  <a href=\"Site-Map.html\">Site Map</a>");
	document.write("</li>");
	document.write("<li class=\"right\">&nbsp;</li>");
	document.write("<li class=\"left\">&nbsp;</li>");
	document.write("<li id=\"toggletourpanel\">");
	document.write("<a id=\"tourpanelopen\" class=\"open\" href=\"#\">Make your own Tour</a>");
	document.write("<a id=\"tourpanelclose\" style=\"display: none;\" class=\"close\" href=\"#\">Close Panel</a>");
	document.write("</li>");
	document.write("<li class=\"right\">&nbsp;</li>");
	document.write("</ul>");
	document.write("</div>");
	document.write("</div>");
}

	function Check_Null()
	{
	 if (document.frm.txtname.value == "") 	
	{
		alert("Please enter your full name.")
		document.frm.txtname.focus()
		return false;	      
	}    
	if (document.frm.txtphone.value == "")  	
	{
		alert("Please enter your phone no.")
		document.frm.txtphone.focus()
		return false;
	}
	if (document.frm.txtmail.value == "")  	
	{
		alert("Please enter your email address.")
		document.frm.txtmail.focus()
		return false
	}
	    else
	    {
	    if (document.layers||document.getElementById||document.all)
			{
				var str=document.frm.txtmail.value
				var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
				if (!filter.test(str))
				{
					alert("Please enter a valid email address!")
					document.frm.txtmail.value=""
					document.frm.txtmail.focus()
					return false
				}
			}
	    var str,txtmail
	    str1=/\badysoftindia.com$/gi
	    str2=/\bomrhome.com$/gi
	    //txtemail=document.frm.txtemail.value
	    	if (str1.test(str))
	    	{
	    		alert("Please enter a valid email address!")
	    		document.frm.txtmail.value=""
				document.frm.txtmail.focus()
	    		return false;
	    	}
	    	else if (str2.test(str))
	    	{
	    		alert("Please enter a valid email address!")
	    		document.frm.txtmail.value=""
				document.frm.txtmail.focus()
	    		return false;
	    	}
	   }
	
	if (document.frm.txtcountry.value == "")  	
	{
		alert("Please enter country.")
		document.frm.txtcountry.focus()
		return false
	}
	if (document.frm.txtnofoPersons.value == "")  	
	{
		alert("Please enter number of Persons.")
		document.frm.txtnofoPersons.focus()
		return false
	}
	if (document.frm.txtdurationtoStay.value == "")  	
	{
		alert("Please enter duration of Stay.")
		document.frm.txtdurationtoStay.focus()
		return false
	}
	if (document.frm.txtBudget.value == "")  	
	{
		alert("Please enter your Budget.")
		document.frm.txtBudget.focus()
		return false
	}
	if ((document.frm.txtdotday.value == "")||(document.frm.txtdotmonth.value == "")||(document.frm.txtdotyear.value == ""))
	{
		alert("Please enter date of Date of travel.")
		document.frm.txtdotday.focus()
		return false
	}
	// validation for hotels
	if (document.frm.Name.value != "")  	
	{
		if (document.frm.Name.value.substr(0,1) == "H")  	
		{
			if ((document.frm.txtchkinday.value == "")||(document.frm.txtchkinmonth.value == "")||(document.frm.txtchkinyear.value == ""))
			{
				alert("Please enter check in date.")
				document.frm.txtdotday.focus()
				return false
			}
			if ((document.frm.txtchkoutday.value == "")||(document.frm.txtchkoutmonth.value == "")||(document.frm.txtchkoutyear.value == ""))
			{
				alert("Please enter check out date.")
				document.frm.txtdotday.focus()
				return false
			}
		}
	}
	
	if (document.frm.txtcalltime.value == "")  	
	{
		alert("Please enter at which time we can call you.")
		document.frm.txtcalltime.focus()
		return false
	}
   if (document.frm.txtquery.value == "")  	
	{
		alert("Please enter your query.")
		document.frm.txtquery.focus()
		return false
	}
return true;
}



function Check_RCB()
	{
	 if (document.frm.txtname.value == "") 	
	{
		alert("Please enter your full name.")
		document.frm.txtname.focus()
		return false;	      
	}    
	if (document.frm.txtphone.value == "")  	
	{
		alert("Please enter your phone no.")
		document.frm.txtphone.focus()
		return false;
	}
	if (document.frm.txtmail.value == "")  	
	{
		alert("Please enter your email address.")
		document.frm.txtmail.focus()
		return false
	}
	    else
	    {
	    if (document.layers||document.getElementById||document.all)
			{
				var str=document.frm.txtmail.value
				var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
				if (!filter.test(str))
				{
					alert("Please enter a valid email address!")
					document.frm.txtmail.value=""
					document.frm.txtmail.focus()
					return false
				}
			}
	    var str,txtmail
	    str1=/\badysoftindia.com$/gi
	    str2=/\bomrhome.com$/gi
	    //txtemail=document.frm.txtemail.value
	    	if (str1.test(str))
	    	{
	    		alert("Please enter a valid email address!")
	    		document.frm.txtmail.value=""
				document.frm.txtmail.focus()
	    		return false;
	    	}
	    	else if (str2.test(str))
	    	{
	    		alert("Please enter a valid email address!")
	    		document.frm.txtmail.value=""
				document.frm.txtmail.focus()
	    		return false;
	    	}
	   }
	
	if (document.frm.txtcountry.value == "")  	
	{
		alert("Please enter country.")
		document.frm.txtcountry.focus()
		return false
	}
	if ((document.frm.Travelday.value == "")||(document.frm.Travelmonth.value == "")||(document.frm.Travelyear.value == ""))
	{
		alert("Please enter date of Date of travel.")
		document.frm.Travelday.focus()
		return false
	}
	if (document.frm.txtcalltime.value == "")  	
	{
		alert("Please enter at which time we can call you.")
		document.frm.txtcalltime.focus()
		return false
	}
   if (document.frm.txtquery.value == "")  	
	{
		alert("Please enter your query.")
		document.frm.txtquery.focus()
		return false
	}
return true;
}
