function setOptionsSearch()
{

var c = document.form5.search_region.options[document.form5.search_region.selectedIndex].value;
//var flag = document.form5.landOnly[0].checked;

//alert(cond);
//alert(c);

var search_country = document.form5.search_country;
var search_city = document.form5.search_city;

search_country.options.length = 0;
search_city.options.length = 0;
if (c == "US. Rockies") {

search_country.options[search_country.options.length] = new Option('Select State','');
search_country.options[search_country.options.length] = new Option('California','California');
search_country.options[search_country.options.length] = new Option('Colorado','Colorado');
search_country.options[search_country.options.length] = new Option('Idaho','Idaho');
search_country.options[search_country.options.length] = new Option('Montana','Montana');
search_country.options[search_country.options.length] = new Option('Nevada','Nevada');
search_country.options[search_country.options.length] = new Option('Utah','Utah');
search_country.options[search_country.options.length] = new Option('Wyoming','Wyoming');
search_city.options[search_city.options.length] = new Option('Select','');
}

if (c == "Canada")
{

search_country.options[search_country.options.length] = new Option('Select Province','');
search_country.options[search_country.options.length] = new Option('Alberta','Alberta');
search_country.options[search_country.options.length] = new Option('British Columbia','British Columbia');
search_country.options[search_country.options.length] = new Option('Quebec','Quebec');
search_city.options[search_city.options.length] = new Option('Select','');
}

if (c == "European Alps")
{
	//alert('greece land' + cond);
search_country.options[search_country.options.length] = new Option('Select Country','');
search_country.options[search_country.options.length] = new Option('Italy','Italy');
search_country.options[search_country.options.length] = new Option('Austria','Austria');
search_country.options[search_country.options.length] = new Option('Switzerland','Switzerland');
search_country.options[search_country.options.length] = new Option('France','France');
search_country.options[search_country.options.length] = new Option('Germany','Germany');
search_country.options[search_country.options.length] = new Option('Andorra','Andorra');
search_city.options[search_city.options.length] = new Option('Select','');
}

if (c == "")
{
	//alert('greece land' + cond);
search_country.options[search_country.options.length] = new Option('Select','');
search_city.options[search_city.options.length] = new Option('Select','');
}

}

function setOptionsSearch2()
{

var c = document.form5.search_country.options[document.form5.search_country.selectedIndex].value;
//var flag = document.form5.landOnly[0].checked;

//alert(cond);
//alert(c);
//alert(c);
var search_city = document.form5.search_city;

search_city.options.length = 0;

if (c == "Colorado") {

search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Aspen','Aspen');
search_city.options[search_city.options.length] = new Option('Beaver Creek','Beaver Creek');
search_city.options[search_city.options.length] = new Option('Breckenridge','Breckenridge');
search_city.options[search_city.options.length] = new Option('Copper Mountain','Copper Mountain');
search_city.options[search_city.options.length] = new Option('Crested Butte','Crested Butte');
search_city.options[search_city.options.length] = new Option('Keystone','Keystone');
search_city.options[search_city.options.length] = new Option('Snowmass','Snowmass');
search_city.options[search_city.options.length] = new Option('Steamboat Springs','Steamboat Springs');
search_city.options[search_city.options.length] = new Option('Telluride','Telluride');
search_city.options[search_city.options.length] = new Option('Vail','Vail');
search_city.options[search_city.options.length] = new Option('Winter Park','Winter Park');
}

if (c == "Utah")
{
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Alta','Alta');
search_city.options[search_city.options.length] = new Option('Deer Valley','Deer Valley');
search_city.options[search_city.options.length] = new Option('Park City','Park City');
search_city.options[search_city.options.length] = new Option('Snowbird','Snowbird');
search_city.options[search_city.options.length] = new Option('The Canyons','The Canyons');
}

if (c == "Wyoming")
{
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Jackson Hole','Jackson Hole');
}

if (c == "California") {

search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Mammoth Lakes','Mammoth Lakes');
search_city.options[search_city.options.length] = new Option('Northstar','Northstar');
search_city.options[search_city.options.length] = new Option('Squaw Valley','Squaw Valley');
//search_city.options[search_city.options.length] = new Option('Olympic Valley','Olympic Valley');
//search_city.options[search_city.options.length] = new Option('South Lake Tahoe','South Lake Tahoe');
//search_city.options[search_city.options.length] = new Option('Truckee','Truckee');
}

if (c == "Nevada")
{
search_city.options[search_city.options.length] = new Option('Select Resort','');
//search_city.options[search_city.options.length] = new Option('Crystal Bay','Crystal Bay');
search_city.options[search_city.options.length] = new Option('Heavenly','Heavenly');
search_city.options[search_city.options.length] = new Option('Incline Village','Incline Village');

//search_city.options[search_city.options.length] = new Option('Lake Tahoe','Lake Tahoe');
}

if (c == "Montana")
{
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Big Mountain','Big Mountain');
search_city.options[search_city.options.length] = new Option('Big Sky','Big Sky');
}

if (c == "Idaho")
{
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Sun Valley','Sun Valley');
}

if (c == "Alberta")
{
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Banff','Banff');
search_city.options[search_city.options.length] = new Option('Jasper','Jasper');
search_city.options[search_city.options.length] = new Option('Lake Louise','Lake Louise');
search_city.options[search_city.options.length] = new Option('Sunshine','Sunshine');
}

if (c == "British Columbia")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Big White','Big White');
search_city.options[search_city.options.length] = new Option('Fernie','Fernie');
search_city.options[search_city.options.length] = new Option('Panorama','Panorama');
search_city.options[search_city.options.length] = new Option('Silver Star','Silver Star');
search_city.options[search_city.options.length] = new Option('Sun Peaks','Sun Peaks');
search_city.options[search_city.options.length] = new Option('Whistler','Whistler');
}

if (c == "Quebec")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Quebec City','Quebec City');
search_city.options[search_city.options.length] = new Option('Tremblant','Tremblant');
}

if (c == "Italy")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Bormio','Bormio');
search_city.options[search_city.options.length] = new Option('Cervinia','Cervinia');
search_city.options[search_city.options.length] = new Option('Cortina','Cortina');
search_city.options[search_city.options.length] = new Option('Courmayeur','Courmayeur');
search_city.options[search_city.options.length] = new Option('Madonna Di Campiglio','Madonna Di Campiglio');
search_city.options[search_city.options.length] = new Option('Moena','Moena');
search_city.options[search_city.options.length] = new Option('Sestriere','Sestriere');
search_city.options[search_city.options.length] = new Option('Val Di Fassa','Val Di Fassa');
search_city.options[search_city.options.length] = new Option('Val Gardena','Val Gardena');
}

if (c == "Austria")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Bad Gastein','Bad Gastein');
search_city.options[search_city.options.length] = new Option('Innsbruck','Innsbruck');
search_city.options[search_city.options.length] = new Option('Ischgl','Ischgl');
search_city.options[search_city.options.length] = new Option('Kitzbuhel','Kitzbuhel');
search_city.options[search_city.options.length] = new Option('Lech','Lech');
search_city.options[search_city.options.length] = new Option('Mayrhofen','Mayrhofen');
search_city.options[search_city.options.length] = new Option('Saalbach','Saalbach');
search_city.options[search_city.options.length] = new Option('Solden','Solden');
search_city.options[search_city.options.length] = new Option('St Anton','St Anton');
search_city.options[search_city.options.length] = new Option('Stubai Valley','Stubai Valley');
search_city.options[search_city.options.length] = new Option('Zell Am See','Zell Am See');
search_city.options[search_city.options.length] = new Option('Zurs','Zurs');
}

if (c == "Switzerland")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Davos','Davos');
search_city.options[search_city.options.length] = new Option('Engelberg','Engelberg');
search_city.options[search_city.options.length] = new Option('Grindelwald','Grindelwald');
search_city.options[search_city.options.length] = new Option('Gstaad','Gstaad');
search_city.options[search_city.options.length] = new Option('Interlaken','Interlaken');
search_city.options[search_city.options.length] = new Option('Saas Fee','Saas Fee');
search_city.options[search_city.options.length] = new Option('St Moritz','St Moritz');
search_city.options[search_city.options.length] = new Option('Verbier','Verbier');
search_city.options[search_city.options.length] = new Option('Wengen','Wengen');
search_city.options[search_city.options.length] = new Option('Zermatt','Zermatt');
}

if (c == "France")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Chamonix','Chamonix');
search_city.options[search_city.options.length] = new Option('Courchevel','Courchevel');
search_city.options[search_city.options.length] = new Option('Les Deux Alpes','Les Deux Alpes');
search_city.options[search_city.options.length] = new Option('Meribel','Meribel');
search_city.options[search_city.options.length] = new Option('Morzine','Morzine');
search_city.options[search_city.options.length] = new Option('Tignes','Tignes');
search_city.options[search_city.options.length] = new Option('Val DIsere','Val DIsere');
search_city.options[search_city.options.length] = new Option('Val Thorens','Val Thorens');
}

if (c == "Germany")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Garmisch','Garmisch');
}


if (c == "Andorra")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select Resort','');
search_city.options[search_city.options.length] = new Option('Andorra','Andorra');
}

if (c == "")
{
	//alert('greece land' + cond);
search_city.options[search_city.options.length] = new Option('Select','');
}

}



			function lodgingSubmit(location){
				if(location==""){
					alert("Please select a resort location");
					return false;
				}
				else {
					//window.location.href="/lodging/"+location+"/index.html";
					//alert(location);
					return true;
				}
				//alert(location);
				//return true;
			}

			function lodgingAddress(location){
				if(location==""){
					//alert("Please select a resort location");
					return false;
				}
				else {
					//window.location.href="/lodging/"+location+"/index.html";
					//alert(location);
					address= "/resort/"+location+".html";
					document.forms['form5'].method='post';
					document.forms['form5'].action=address;
					document.forms['form5'].target='_self';
					document.forms['form5'].submit();
				}
				//alert(location);
				//return true;
			}


