function checkinput(theForm, locale)
{
	while (theForm.Hotel.options[theForm.Hotel.selectedIndex].value == '0')
	{
		alert("Wählen Sie Ihr Hotel / Choisissez votre hotel / Choose your hotel ");
		return(false);
	}
	
	while (theForm.Hotel.options[theForm.Hotel.selectedIndex].value == '1')
	{
		alert("Dieses Hotel is noch nicht verfügbar.");
		return(false);
	}
	
	var nights = theForm.nights.options[theForm.nights.selectedIndex].value;
	
	if ((theForm.Hotel.options[theForm.Hotel.selectedIndex].value == 'Lausanne') || (theForm.Hotel.options[theForm.Hotel.selectedIndex].value == 'Geneva') || (theForm.Hotel.options[theForm.Hotel.selectedIndex].value == 'Berne') || (theForm.Hotel.options[theForm.Hotel.selectedIndex].value == 'Zurich'))
	{
		var Hotel = "&Dest="+theForm.Hotel.options[theForm.Hotel.selectedIndex].value+"&start=1";
	}
	else
	{
		var Hotel = "&Hotel="+theForm.Hotel.options[theForm.Hotel.selectedIndex].value;
	}
	
	var adult = theForm.adult.options[theForm.adult.selectedIndex].value;
	var arrival = $('ctrl_arrival').get('value');
//	var arrive = theForm.jour.options[theForm.jour.selectedIndex].value + "%2f" + theForm.mois.options[theForm.mois.selectedIndex].value + "%2f" + theForm.annee.options[theForm.annee.selectedIndex].value;
	
	/*var actionURL = "https://reservations.synxis.com/LBE/rez.aspx?Chain=6357&locale=de-DE"+Hotel+"&adult="+adult+"&nights="+nights+"&step=2&arrive="+arrive;*/
	var actionURL = "https://gc.synxis.com/rez.aspx?Chain=6357&locale="+locale+"&"+Hotel+"&adult="+adult+"&nights="+nights+"&step=2&arrive="+arrival;
	
	var promo = theForm.code.value;
	promo = promo.replace(/\W/g,'');
	
	if (promo)
	{
		actionURL = actionURL+"&Promo="+promo;
	}
	
	window.open(actionURL, "Fenster" ,config='height=700, width=850, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no');
}

