// JavaScript Documentfunction check2(anreise, abreise, personen, zimmer) {	 	 anreise=anreise.toString();	 abreise=abreise.toString();	  	 anreise=anreise.split(".");	 abreise=abreise.split(".");     	 if (!anreise[0] || !anreise[1] || !anreise[2]) {	 	var erroranreise = true;	 }	 	 else if (!abreise[0] || !abreise[1] || !abreise[2]) {	 	var errorabreise = true;	 }	 else {		 if (anreise[0].length==1) anreise[0]="0"+anreise[0];		 if (abreise[0].length==1) abreise[0]="0"+abreise[0];		 		 if (anreise[1].length==1) anreise[1]="0"+anreise[1];		 if (abreise[1].length==1) abreise[1]="0"+abreise[1];		 		 if (anreise[2].length==2) anreise[2]="20"+anreise[2];		 if (abreise[2].length==2) abreise[2]="20"+abreise[2];		 		 anreisestring = anreise[2]+anreise[1]+anreise[0];		 abreisestring = abreise[2]+abreise[1]+abreise[0];			 var heute = new Date();		 heutetag = heute.getDate();		 heutetag = heutetag.toString();		 if (heutetag.length==1) heutetag="0"+heutetag;		 heutemonat = heute.getMonth() + 1;		 heutemonat = heutemonat.toString();		 if (heutemonat.length==1) heutemonat="0"+heutemonat;		 kontrolldatum = heute.getFullYear().toString()+heutemonat+heutetag;				 if (anreisestring < kontrolldatum) {			var erroranreise = true;		 }		 		 if (abreisestring < kontrolldatum || abreisestring <= anreisestring) {			var errorabreise = true;		 }		 		 if (anreisestring.length != 8) {		 	var erroranreise = true;		 }		 		 if (abreisestring.length != 8) {		 	var errorabreise = true;		 }	 }	 	 if (erroranreise == true) {	 			// alert('Bitte überprüfen Sie Ihr Anreisedatum');		document.getElementById('f_date_c1').className = 'input_res_datum errorform';//		document.getElementById('pfeilf_date_c1').style.visibility = 'visible';		document.getElementById('f_date_c1').focus();	 }	 	 else if (errorabreise == true) {	 			// alert('Bitte überprüfen Sie Ihr Abreisedatum');		document.getElementById('f_date_c2').className = 'input_res_datum errorform';//		document.getElementById('pfeilf_date_c2').style.visibility = 'visible';		document.getElementById('f_date_c2').focus();	 }	 else {	 	 		 document.getElementById('f_date_c1').className = 'input_res_datum';//		 document.getElementById('pfeilf_date_c1').style.visibility = 'hidden';		 document.getElementById('f_date_c2').className = 'input_res_datum';//		 document.getElementById('pfeilf_date_c2').style.visibility = 'hidden';		 		 anreisestring = anreise[0]+anreise[1]+anreise[2];		 abreisestring = abreise[0]+abreise[1]+abreise[2];	  		 window.open(zielurl = 'https://secure.webres.net/webres/zimmer4/default.asp?LANG=D&HID=8932&WDBL='+anreisestring+'x'+abreisestring+'x'+zimmer+'x'+personen+'','webres',"screenY=210,screenX=640,width=780px,height=620px,left=100,top=100,toolbar=no,status=yes,scrollbars=no,resizable=no");	}}// ** I18N// Calendar EN language// Author: Mihai Bazon, <mihai_bazon@yahoo.com>// Encoding: any// Distributed under the same terms as the calendar itself.// For translators: please use UTF-8 if possible.  We strongly believe that// Unicode is the answer to a real internationalized world.  Also please// include your contact information in the header, as can be seen above.// full day namesCalendar._DN = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag");// Please note that the following array of short day names (and the same goes// for short month names, _SMN) isn't absolutely necessary.  We give it here// for exemplification on how one can customize the short day names, but if// they are simply the first N letters of the full name you can simply say:////   Calendar._SDN_len = N; // short day name length//   Calendar._SMN_len = N; // short month name length//// If N = 3 then this is not needed either since we assume a value of 3 if not// present, to be compatible with translation files that were written before// this feature.// short day namesCalendar._SDN = new Array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So");// First day of the week. "0" means display Sunday first, "1" means display// Monday first, etc.Calendar._FD = 1;// full month namesCalendar._MN = new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");// short month namesCalendar._SMN = new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");// tooltipsCalendar._TT = {};Calendar._TT["INFO"] = "";Calendar._TT["ABOUT"] ="DHTML Date/Time Selector\n" +"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)"For latest version visit: http://www.dynarch.com/projects/calendar/\n" +"Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +"\n\n" +"Date selection:\n" +"- Use the \xab, \xbb buttons to select year\n" +"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" +"- Für eine Schnellauswahl halten Sie die Maustaste über diesen Buttons fest.";Calendar._TT["ABOUT_TIME"] = "\n\n" +"Time selection:\n" +"- Click on any of the time parts to increase it\n" +"- or Shift-click to decrease it\n" +"- or click and drag for faster selection.";Calendar._TT["PREV_YEAR"] = "Voriges Jahr";Calendar._TT["PREV_MONTH"] = "Voriger Monat";Calendar._TT["GO_TODAY"] = "Heute auswählen";Calendar._TT["NEXT_MONTH"] = "Nächster Monat";Calendar._TT["NEXT_YEAR"] = "Nächstes Jahr";Calendar._TT["SEL_DATE"] = "Bitte Datum auswählen";Calendar._TT["DRAG_TO_MOVE"] = "Zum Bewegen festhalten";Calendar._TT["PART_TODAY"] = " (Heute)";// the following is to inform that "%s" is to be the first day of week// %s will be replaced with the day name.Calendar._TT["DAY_FIRST"] = "Woche beginnt mit %s ";// This may be locale-dependent.  It specifies the week-end days, as an array// of comma-separated numbers.  The numbers are from 0 to 6: 0 means Sunday, 1// means Monday, etc.Calendar._TT["WEEKEND"] = "0,6";Calendar._TT["WEEKEND"] = "";Calendar._TT["CLOSE"] = "Schließen";Calendar._TT["TODAY"] = "Heute";Calendar._TT["TIME_PART"] = "(Shift-)Klick oder Festhalten und Ziehen um den Wert zu ändern";// date formatsCalendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e";Calendar._TT["TT_DATE_FORMAT"] = "%A, %e. %b";Calendar._TT["WK"] = "Wo.";Calendar._TT["WK"] = "Wo";Calendar._TT["TIME"] = "Time:";