function DoSortMenu(){	document.Suchformular.submit();}function chkFormular(){	if (document.Suchformular.Query_Fulltext.value.length <= 2)  {		alert("Bitte geben Sie mindestens drei Buchstaben als Suchbegriff ein.");		document.Suchformular.Query_Fulltext.focus();		return false;	}	} function chkUmkreis(){	if ((document.USuche.Umkreis_PLZ.value.length != 5) || (document.USuche.Umkreis_Radius.value.length == ""))  {		alert("Bitte geben Sie sowohl eine f\u00fcnfstellige deutsche Postleitzahl als auch eine max. Entfernung ein.");		document.USuche.Umkreis_PLZ.focus();		return false;	}	} function CheckAGB(TheLanguage){	/* Sonderzeichen werden als Unicode mit \u**** codiert */	if (TheLanguage == "ger") {		if (document.Eilantrag.vAGB.checked == false) {			alert("Zur Bearbeitung des Eilantrages ist Ihre Zustimmung zu den AGBs erforderlich.\n\nBitte aktivieren Sie das entsprechende Feld im Eilantrag.");			return false;		}	} else {		if (TheLanguage == "fra") {			if (document.Eilantrag.vAGB.checked == false) {				alert("Veuillez s.v.p. marquer le texte au-dessus du bouton \u0027Envoyer\u0027 pour confirmer que vous avez bien lu et accept\u00e9 les conditions de pr\u00e9l\u00e8vement de votre compte ainsi que les conditions de r\u00e9siliation.");				return false;			}		} else {			if (document.Eilantrag.vAGB.checked == false) {				alert("Please check the checkbox just above the submit button to confirm that you have read and accept the Terms of Payment (credit card + cancellation).");				return false;			}		}	}}function CheckBruneiAGB(){	/* Sonderzeichen werden als Unicode mit \u**** codiert */	if (document.forms[0].vAGB.checked == false) {		alert("Zur Bearbeitung der Buchung ist Ihre Zustimmung zu den Allgemeinen Gesch\u00e4ftsbedingungen erforderlich.\n\nBitte aktivieren Sie das entsprechende Feld in der Buchung.");		return false;	}}function BruneiSumme() {	var vErgebnis;	if (document.forms[0].vGFCMember.checked == true) {		vErgebnis = 2425;	} else {		vErgebnis = 2695;	}	if (document.forms[0].vUnterbringung.value == "EZ") {		vErgebnis = vErgebnis + 425;	}	if (document.forms[0].vKlasse.value == "Business") {		vErgebnis = vErgebnis + 1470;	}	if (document.forms[0].vAnzahlPersonen.value == "2") {		if (document.forms[0].vBGFCMember.checked == true) {			vErgebnis = vErgebnis + 2425;		} else {			vErgebnis = vErgebnis + 2695;		}		if (document.forms[0].vUnterbringung.value == "EZ") {			vErgebnis = vErgebnis + 425;		}		if (document.forms[0].vKlasse.value == "Business") {			vErgebnis = vErgebnis + 1470;		}	}	document.forms[0].vErgebnis.value = "Euro " + vErgebnis + ",-";}/* ******************************************************************************************************************* *//** * DHTML date validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) */// Declaring valid date character, minimum year and maximum yearvar dtCh= ".";var minYear=2005;var maxYear=2010;function isInteger(s){	var i;    for (i = 0; i < s.length; i++){           // Check that current character is number.        var c = s.charAt(i);        if (((c < "0") || (c > "9"))) return false;    }    // All characters are numbers.    return true;}function stripCharsInBag(s, bag){	var i;    var returnString = "";    // Search through string's characters one by one.    // If character is not in bag, append to returnString.    for (i = 0; i < s.length; i++){           var c = s.charAt(i);        if (bag.indexOf(c) == -1) returnString += c;    }    return returnString;}function daysInFebruary (year){	// February has 29 days in any year evenly divisible by four,    // EXCEPT for centurial years which are not also divisible by 400.    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );}function DaysArray(n) {	for (var i = 1; i <= n; i++) {		this[i] = 31		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}		if (i==2) {this[i] = 29}   }    return this}function isDate(dtStr){	var daysInMonth = DaysArray(12)	var pos1=dtStr.indexOf(dtCh)	var pos2=dtStr.indexOf(dtCh,pos1+1)	var strDay=dtStr.substring(0,pos1)	var strMonth=dtStr.substring(pos1+1,pos2)	var strYear=dtStr.substring(pos2+1)	strYr=strYear	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)	for (var i = 1; i <= 3; i++) {		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)	}	month=parseInt(strMonth)	day=parseInt(strDay)	year=parseInt(strYr)	if (pos1==-1 || pos2==-1){		alert("Das Datumsformat muss tt.mm.jjjj sein")		return false	}	if (strMonth.length<1 || month<1 || month>12){		alert("Bitte geben Sie einen g\u00fcltigen Monat ein")		return false	}	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){		alert("Bitte geben Sie einen g\u00fcltigen Tag ein")		return false	}	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){		alert("Bitte geben Sie ein vierstelliges Jahr zwischen "+minYear+" und "+maxYear+" ein")		return false	}	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){		alert("Bitte geben Sie ein g\u00fcltiges Datum ein")		return false	}	TheDate=new Date(year,month-1,day);	if (TheDate.getDay() != 5) {		alert ("Das eingegebene Datum ist kein Freitag!");		return false	}return true}/* ******************************************************************************************************************* */
