// JavaScript Document



function hotel_change(){

	

	for(i=0; i<document.getElementById("hotel_selection").options.length; i++){

	if(document.getElementById("hotel_selection").options[i].selected){

		

		

//block from util_scripts for detecting an html document size

var path  = window.location.toString();

var z = path.lastIndexOf("/");



var letter = new String("");

var doc_name = new String("");

var selected_lang = new String("");

str1 = new String("");

for(n=z+1;n<path.length;n++){

    

	letter = path.charAt(n);

	doc_name = doc_name.concat(letter);

	

}





if(doc_name==""){

	doc_name="index.html";

}





//-----------------------------------------------

		

		if((doc_name.indexOf("eng")!=-1)||(doc_name.indexOf("fin")!=-1)){

		

		

			for(v=0; v<=2; v++){

				

				letter = doc_name.charAt(v);

				selected_lang = selected_lang.concat(letter);

			

				}

				

			

			window.location = selected_lang+"_"+document.getElementById("hotel_selection").options[i].value+"-hotel-reservation.html";

			

			

		}else{

			

		window.location = document.getElementById("hotel_selection").options[i].value+"-hotel-reservation.html";

		}

	}

	}



}





function goto_hotel(lang){

	

     for(i=0; i<document.getElementById("hotel_selection").options.length; i++){

	if(document.getElementById("hotel_selection").options[i].selected){

		if(document.getElementById("hotel_selection").options[i].value!="none"){

		

		window.location  = lang + document.getElementById("hotel_selection").options[i].value+".html?area=numbers";

	}

	}

	}





}
