function JsSearchBox()
	{
		if (document.forms[0].country.selectedIndex == 0)
		{			
			alert("Please Select A Country");			
			return false;
		}
		
		if (document.forms[0].city.selectedIndex == 0)
		{			
			
			if (document.roomSearch.country.options[cCountry.selectedIndex].text == "--------- Asia ---------") 
			{
				alert("Please Select A Country in Asia");			
			}
			else if (document.roomSearch.country.options[cCountry.selectedIndex].text == "------- Oceania -------") 
			{
				alert("Please Select A Country in Oceania");
			}
			else if (document.roomSearch.country.options[cCountry.selectedIndex].text == "-------- Africa --------") 
			{
				alert("Please Select A Country in Africa");			
			}
			else if (document.roomSearch.country.options[cCountry.selectedIndex].text == "----- Middle East -----") 
			{
				alert("Please Select A Country in Middle East");			
			}
			else if (document.roomSearch.country.options[cCountry.selectedIndex].text == "-------- Europe -------") 
			{
				alert("Please Select A Country in Europe");
			}
			else if (document.roomSearch.country.options[cCountry.selectedIndex].text == "------- America -------")
			{
				alert("Please Select A Country in America");
			}
			else
			{
				alert("Please Select A City");
			}
			return false;
		}
		storeInfo(0);
	}
	function PageLoad()
	{	
		//document.roomSearch.country.selectedIndex=0;			
	}

function extra_1()
{
	var choosenCountry=-1;
for(i=0; i<countries.length; i++)
{												
	choosenCountry = (countries[i].country == "Select a Country" ? i: choosenCountry);												
	//style="background-color:#f0f0f0"
	if (countries[i].country == "--------- Asia ---------")
		document.write("<option style=background-color:#f0f0f0 value="+countries[i].code+">"+countries[i].country+"</option>");	
	else if (countries[i].country == "------- Oceania -------") 
		document.write("<option style=background-color:#f0f0f0 value="+countries[i].code+">"+countries[i].country+"</option>");	
	else if (countries[i].country == "-------- Europe -------") 
		document.write("<option style=background-color:#f0f0f0 value="+countries[i].code+">"+countries[i].country+"</option>");	
	else if (countries[i].country == "------- America -------")
		document.write("<option style=background-color:#f0f0f0 value="+countries[i].code+">"+countries[i].country+"</option>");
	else if (countries[i].country == "----- Middle East -----")
		document.write("<option style=background-color:#f0f0f0 value="+countries[i].code+">"+countries[i].country+"</option>");	
	else if (countries[i].country == "-------- Africa --------")
		document.write("<option style=background-color:#f0f0f0 value="+countries[i].code+">"+countries[i].country+"</option>");	
	else												
	    document.write("<option value="+countries[i].code+">"+countries[i].country+"</option>");
}
if(choosenCountry == -1)
	alert("Country did not exist");
else
	document.forms[0].country.selectedIndex=choosenCountry;
	}
	
	
function extra_2()
	{
				//var cCountry = document.forms[0].country;
				//var cCity = document.forms[0].city;
				
				countrySel();
				for(var i=0; i<cCity.options.length; i++){
					if(cCity[i].text == City){
					cCity.selectedIndex = i;
					break;
					}
				}
				document.forms[0].gway.value = Gateway;
				if(i==cCity.options.length && Country == cCountry[cCountry.selectedIndex].text)
					alert("City Not Found");
	}

function extra_3()
{ var stampDate = (new Date).getFullYear();
for(var i=0; i<3; i++)
document.writeln("<OPTION value='"+(stampDate+i)+"'>"+(stampDate+i)+"</OPTION>");
}

function extra_4()
{var stampDate = (new Date).getFullYear();
for(var i=0; i<3; i++)
document.writeln("<OPTION value='"+(stampDate+i)+"'>"+((new Date).getFullYear()+i)+"</OPTION>");
}

function extra_5()
{

setDate();
moveDate(cInMonth)
moveDate(cOutMonth)

//Used Necessarily for reloading the page
	if(cChild.selectedIndex > 0){
		changeSetting();
	}
}

//Child Input Box
	function changeSetting(){
		document.getElementById("test").innerHTML="";
		document.getElementById("test1").innerHTML="";

		var children = cChild.selectedIndex
		var inputBox = "";

		for(i=0; i< cChild.selectedIndex ; i++){
			inputBox+="<INPUT NAME=\"Availability1:txtAgeOfChild"+i+"\" style=\"FONT-SIZE: 10px; FONT-FAMILY: verdana, arial\" SIZE=1 MAXLENGTH=2 id=\"Availability1_txtAgeOfChild"+i+"\" Value=1 >&nbsp;";
			document.getElementById("test1").innerHTML="<FONT face=arial size=1>&nbsp;Age Of Children:</FONT>";
		}
		document.getElementById("test").innerHTML = inputBox;
	}

//Used for Clear Button
	function initSettings(){
		with(document.forms[0]){
			country.selectedIndex=0;
			child.selectedIndex=0;
			unit.selectedIndex =0;
			adult.selectedIndex=0;
		}
		clearData();
		countrySel();
		changeSetting();
		location.reload();
	}