var MONTHS_SHORT = ["Januar", "Februar", "März", "April", "Mai", "Juni","Juli", "August", "September", "Oktober", "November", "Dezember"]; var MONTHS_DAYS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31]; var ARR_WEEKDAYS = ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]; function DayOfTheWeek(year, month, day) { var c = new Date(year, month-1, day); var dayOfWeek = c.getDay(); return ARR_WEEKDAYS[dayOfWeek]; } function getDays(startdate, enddate) { var startyear = startdate.charAt(0) + startdate.charAt(1) + startdate.charAt(2) + startdate.charAt(3); var startmonth = startdate.charAt(5) + startdate.charAt(6); var startday = startdate.charAt(8) + '' + startdate.charAt(9); var endyear = enddate.charAt(0) + enddate.charAt(1) + enddate.charAt(2) + enddate.charAt(3); var endmonth = enddate.charAt(5) + enddate.charAt(6); var endday = enddate.charAt(8) + '' + enddate.charAt(9); var start = new Date(startyear, startmonth-1, startday); var end = new Date(endyear, endmonth-1, endday); var one_day=1000*60*60*24 var days = Math.ceil((end.getTime()-start.getTime())/(one_day)); return days; } function setArrival(date, fullmonth) { today = '2024-04-28'; if (date < today) { date = today; } year = date.charAt(0) + date.charAt(1) + date.charAt(2) + date.charAt(3); month = date.charAt(5) + date.charAt(6); day = date.charAt(8) + '' + date.charAt(9); if (day > MONTHS_DAYS[month-1]) day = MONTHS_DAYS[month-1]; //nagy dátum beállítása myarr_date = document.getElementById("arr_date"); myarr_date.value = day + '-' + month + '-' + year; //a hét napja beállítása myarr_dayname = document.getElementById("arr_dayname"); myarr_dayname.value = DayOfTheWeek(year, month, day); myarr_day = document.getElementById("arr_day"); for (i=0;i<31;i++) { myarr_day.options[i]=null; } for (i=0;i 12) { aktmonth = 1*i-12; aktyear = 1*globalyear+1; } if (i > 24) { aktmonth = 1*i-24; aktyear = 1*globalyear+2; } if ((aktmonth == month) && (aktyear == year)) selectedmonth = j; myarr_month.options[j]=null; myarr_month.options[j]=new Option(MONTHS_SHORT[1*aktmonth-1] + ' '+ aktyear,aktyear + ''+ aktmonth); j++; } myarr_month.options[selectedmonth].selected=true; } function setDeparture(date, fullmonth) { today = '2024-04-29'; if (date < today) { date = today; } //alert(date); year = date.charAt(0) + date.charAt(1) + date.charAt(2) + date.charAt(3); month = date.charAt(5) + date.charAt(6); day = date.charAt(8) + '' + date.charAt(9); if (day > MONTHS_DAYS[month-1]) day = MONTHS_DAYS[month-1]; //nagy dátum beállítása mydep_date = document.getElementById("dep_date"); mydep_date.value = day + '-' + month + '-' + year; //a hét napja beállítása mydep_dayname = document.getElementById("dep_dayname"); mydep_dayname.value = DayOfTheWeek(year, month, day); mydep_day = document.getElementById("dep_day"); for (i=0;i<31;i++) { mydep_day.options[i]=null; } for (i=0;i<1*fullmonth;i++) { mydep_day.options[i]=new Option(1*i+1,1*i+1); } mydep_day.options[day-1].selected=true; mydep_month = document.getElementById("dep_month"); j = 0; globalmonth = 04; globalyear = 2024; for (i=globalmonth;i<1*globalmonth+12;i++) { aktmonth = i; aktyear = globalyear; if (i > 12) { aktmonth = 1*i-12; aktyear = 1*globalyear+1; } if (i > 24) { aktmonth = 1*i-24; aktyear = 1*globalyear+2; } //alert(aktyear); if ((aktmonth == month) && (aktyear == year)) selectedmonth = j; mydep_month.options[j]=null; mydep_month.options[j]=new Option(MONTHS_SHORT[aktmonth-1] + ' '+ aktyear,aktyear + ''+ aktmonth); j++; } mydep_month.options[selectedmonth].selected=true; } function changeArrDate() { myarr_day = document.getElementById("arr_day"); myarr_month = document.getElementById("arr_month"); myarr_month_text = myarr_month.options[myarr_month.selectedIndex].value; day = myarr_day.options[myarr_day.selectedIndex].value; year = myarr_month_text.charAt(0) + myarr_month_text.charAt(1) + myarr_month_text.charAt(2) + myarr_month_text.charAt(3); month = myarr_month_text.charAt(4) + myarr_month_text.charAt(5); //biztosan frissiteni kell az érkezést arrdate = year; if (month < 10) { arrdate = arrdate + '-0' + month; } else { arrdate = arrdate + '-' + month; } if (day < 10) { arrdate = arrdate + '-0' + day; } else { arrdate = arrdate + '-' + day; } //alert(arrdate); globaldate = '2025-03-31'; globaldate2 = '2025-03-30'; globalday2 = '30'; if (globaldate == arrdate) { arrdate = globaldate2; arrday = globalday2; } setArrival(arrdate, MONTHS_DAYS[month-1]); day = myarr_day.options[myarr_day.selectedIndex].value; year = myarr_month_text.charAt(0) + myarr_month_text.charAt(1) + myarr_month_text.charAt(2) + myarr_month_text.charAt(3); month = myarr_month_text.charAt(4) + myarr_month_text.charAt(5); //csak akkor módosítjuk a távozás dátumát, ha az megelõzi az érkezést mydep_day = document.getElementById("dep_day"); mydep_month = document.getElementById("dep_month"); mydep_month_text = mydep_month.options[mydep_month.selectedIndex].value; depnowday = mydep_day.options[mydep_day.selectedIndex].value; depnowyear = mydep_month_text.charAt(0) + mydep_month_text.charAt(1) + mydep_month_text.charAt(2) + mydep_month_text.charAt(3); depnowmonth = mydep_month_text.charAt(4) + mydep_month_text.charAt(5); if (1*year < 1*depnowyear) return; if ((1*year == 1*depnowyear) && (1*month < 1*depnowmonth)) return; if ( (1*year == 1*depnowyear) && (1*month==1*depnowmonth) && (1*day < 1*depnowday)) return; //alert(year + '-' + month + '-' + day); depday = 1*day + 1; depmonth = month; depyear = year; if ( (month<12) && (MONTHS_DAYS[month-1] == day)) { //nem december és hónap vége van depday = 1; depmonth = 1*month+1; depyear = 1*year; } if ((month == 12) && (MONTHS_DAYS[month-1] == day)) { //december és hónap vége van depday = 1; depmonth = 1; depyear = 1*year + 1; } depdate = depyear; if (depmonth < 10) { depdate = depdate + '-0' + depmonth; } else { depdate = depdate + '-' + depmonth; } if (depday < 10) { depdate = depdate + '-0' + depday; } else { depdate = depdate + '-' + depday; } //alert(depdate); setDeparture(depdate, MONTHS_DAYS[depmonth-1]); } function changeDepDate() { myarr_day = document.getElementById("arr_day"); myarr_month = document.getElementById("arr_month"); myarr_month_text = myarr_month.options[myarr_month.selectedIndex].value; arrday = myarr_day.options[myarr_day.selectedIndex].value; arryear = myarr_month_text.charAt(0) + myarr_month_text.charAt(1) + myarr_month_text.charAt(2) + myarr_month_text.charAt(3); arrmonth = myarr_month_text.charAt(4) + myarr_month_text.charAt(5); mydep_day = document.getElementById("dep_day"); mydep_month = document.getElementById("dep_month"); mydep_month_text = mydep_month.options[mydep_month.selectedIndex].value; depday = mydep_day.options[mydep_day.selectedIndex].value; depyear = mydep_month_text.charAt(0) + mydep_month_text.charAt(1) + mydep_month_text.charAt(2) + mydep_month_text.charAt(3); depmonth = mydep_month_text.charAt(4) + mydep_month_text.charAt(5); //biztosan frissiteni kell az távozást depdate = depyear; if (depmonth < 10) { depdate = depdate + '-0' + 1*depmonth; } else { depdate = depdate + '-' + 1*depmonth; } if (depday < 10) { depdate = depdate + '-0' + 1*depday; } else { depdate = depdate + '-' + 1*depday; } //alert(depdate); globaldate = '2024-04-01'; globaldate2 = '2024-04-02'; if (globaldate == depdate) { depdate = globaldate2; depday = 2; } arrdate = arryear; if (arrmonth < 10) { arrdate = arrdate + '-0' + 1*arrmonth; } else { arrdate = arrdate + '-' + 1*arrmonth; } if (arrday < 10) { arrdate = arrdate + '-0' + 1*arrday; } else { arrdate = arrdate + '-' + 1*arrday; } setDeparture(depdate, MONTHS_DAYS[1*depmonth-1]); return; if (arrdate < depdate) return; //minden ok //változtatni kell az érkezést is sajna arrday = 1*depday - 1; arrmonth = depmonth; arryear = depyear; if ( (depmonth>0) && (depday == 1)) { //nem január és hónap eleje arrday = 31; //a beállíátsnál úgyis a hónap végére módosítja a függvény arrmonth = 1*depmonth-1; arryear = 1*depyear; } if ((month == 0) && (depday == 1)) { //január és hónap eleje van arrday = 31; arrmonth = 12; arryear = 1*depyear - 1; } arrdate = arryear; if (arrmonth < 10) { arrdate = arrdate + '-0' + 1*arrmonth; } else { arrdate = arrdate + '-' + 1*arrmonth; } if (arrday < 10) { arrdate = arrdate + '-0' + 1*arrday; } else { arrdate = arrdate + '-' + 1*arrday; } //alert(arrdate); setArrival(arrdate, MONTHS_DAYS[arrmonth-1]); } function checkDateValidity() { myarr_day = document.getElementById("arr_day"); myarr_month = document.getElementById("arr_month"); myarr_month_text = myarr_month.options[myarr_month.selectedIndex].value; arrday = myarr_day.options[myarr_day.selectedIndex].value; arryear = myarr_month_text.charAt(0) + myarr_month_text.charAt(1) + myarr_month_text.charAt(2) + myarr_month_text.charAt(3); arrmonth = myarr_month_text.charAt(4) + myarr_month_text.charAt(5); mydep_day = document.getElementById("dep_day"); mydep_month = document.getElementById("dep_month"); mydep_month_text = mydep_month.options[mydep_month.selectedIndex].value; depday = mydep_day.options[mydep_day.selectedIndex].value; depyear = mydep_month_text.charAt(0) + mydep_month_text.charAt(1) + mydep_month_text.charAt(2) + mydep_month_text.charAt(3); depmonth = mydep_month_text.charAt(4) + mydep_month_text.charAt(5); //biztosan frissiteni kell az távozást depdate = depyear; if (depmonth < 10) { depdate = depdate + '-0' + 1*depmonth; } else { depdate = depdate + '-' + 1*depmonth; } if (depday < 10) { depdate = depdate + '-0' + 1*depday; } else { depdate = depdate + '-' + 1*depday; } //alert(depdate); globaldate = '2024-04-01'; globaldate2 = '2024-04-02'; if (globaldate == depdate) { depdate = globaldate2; depday = 2; } arrdate = arryear; if (arrmonth < 10) { arrdate = arrdate + '-0' + 1*arrmonth; } else { arrdate = arrdate + '-' + 1*arrmonth; } if (arrday < 10) { arrdate = arrdate + '-0' + 1*arrday; } else { arrdate = arrdate + '-' + 1*arrday; } if (arrdate < depdate) return true; //minden ok return false; } var startDate; var endDate; var ONEDAY = 3600 * 24; function resetDates() { startDate = endDate = null; } function filterDates1(cal) { var date = cal.date; startDate = date.getTime() if (endDate == null) { Zapatec.Calendar.setup({ inputField : "arrivalDate", button : "button8b", // What will trigger the popup of the calendar ifFormat : "%b %d, %Y", date : startDate, showsTime : false, //no time dateStatusFunc : disallowDateBefore, //the function to call onUpdate : filterDates2 }); } } function filterDates2(cal) { var date = cal.date; endDate = date.getTime() } function disallowDateBefore(date) { date = date.getTime(); if ((startDate != null) && (date < (startDate + ONEDAY))) { //start date can't be prior to end date return true; } var now = new Date().getTime(); if (date < (now - ONEDAY)) { //start date can't be prior to today return true; } return false; } function disallowDateAfter(date) { date = date.getTime(); if ((endDate != null) && (date > (endDate - ONEDAY))) { return true; } var now = new Date().getTime(); if (date < (now - ONEDAY)) { return true; } return false; } Zapatec.Calendar.setup({ firstDay : 1, inputField : "arr_date", // id of the input field button : "arr_button", // What will trigger the popup of the calendar ifFormat : "%d-%m-%Y", // format of the input field: Mar 18, 2005 showsTime : false, //no time dateStatusFunc : disallowDateAfter, //the function to call onUpdate : updateArr }); Zapatec.Calendar.setup({ firstDay : 1, inputField : "dep_date", button : "dep_button", // What will trigger the popup of the calendar ifFormat : "%d-%m-%Y", // format of the input field: Mar 18, 2005 showsTime : false, //no time dateStatusFunc : disallowDateBefore, //the function to call onUpdate : updateDep }); function updateArr(cal) { var date = cal.date; year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); if (month < 10) month = '0' + month; if (day < 10) day = '0'+day; fulldate = year + '-' + month + '-' + day; setArrival(fulldate, MONTHS_DAYS[date.getMonth()]); changeArrDate(); startDate = date.getTime(); } function updateDep(cal) { var date = cal.date; year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); if (month < 10) month = '0' + month; if (day < 10) day = '0'+day; fulldate = year + '-' + month + '-' + day; //alert(fulldate); setDeparture(fulldate, MONTHS_DAYS[date.getMonth()]); changeDepDate(); } function ChangeRoomNumber() { } function sendinquiry() { vname2 = document.guest_data.last_name.value; if (vname2.length == 0) { alert('Der Familienname fehlt!'); document.guest_data.last_name.focus(); return; } vname = document.guest_data.first_name.value; if (vname.length == 0) { alert('Der Vorname fehlt!'); document.guest_data.first_name.focus(); return; } vemil = document.guest_data.email.value; if (vemil.length == 0) { alert('Die Telefonnummer ist ungültig!'); document.guest_data.email.focus(); return; } if (vemil.length < 4) { alert('Die E-mail-Adresse zu kurz!'); document.guest_data.email.focus(); return; } vphone = document.guest_data.telefon_fax.value; if (vphone .length == 0) { alert('Your phone number is missing!'); document.guest_data.telefon_fax.focus(); return; } if (vphone.length < 4) { alert('Your phone number is too short!'); document.guest_data.telefon_fax.focus(); return; } vsrch = '[a-zA-Z0-9_.-]+@[a-zA-Z0-9.-]+'; if ((vemil.search(vsrch) == -1) || (vemil.search(' ') != -1)) { alert('Die E-mail-Adresse ist ungültig!'); document.guest_data.email.focus(); return; } if (checkDateValidity() == false) { alert('Das Abreisedatum sollte nach dem Ankunftsdatum liegen. Bitte kontrollieren Sie die Daten und probieren Sie noch einmal!'); return false; } var my_arrdate = document.getElementById("arr_date").value; var myright_arrdate = my_arrdate.charAt(6) + my_arrdate.charAt(7) + my_arrdate.charAt(8) + my_arrdate.charAt(9) + '-' + my_arrdate.charAt(3) + my_arrdate.charAt(4) + '-' + my_arrdate.charAt(0) + my_arrdate.charAt(1); var my_depdate = document.getElementById("dep_date").value; var myright_depdate = my_depdate.charAt(6) + my_depdate.charAt(7) + my_depdate.charAt(8) + my_depdate.charAt(9) + '-' + my_depdate.charAt(3) + my_depdate.charAt(4) + '-' + my_depdate.charAt(0) + my_depdate.charAt(1); var packID = document.getElementById("package").options[document.getElementById("package").selectedIndex].value; if (packID == 5563) { if (('2011-11-30' < myright_depdate) || (myright_arrdate < '2011-08-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2011. 09. 01 - 2011. 11. 25'); return false; } } if (packID == 5564) { if (('2011-12-05' < myright_depdate) || (myright_arrdate < '2011-08-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2011. 09. 01 - 2011. 11. 30'); return false; } } if (packID == 5566) { if (('2016-12-30' < myright_depdate) || (myright_arrdate < '2016-11-26')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 12. 01 - 2016. 12. 25'); return false; } } if (packID == 5567) { if (('2016-01-02' < myright_depdate) || (myright_arrdate < '2015-12-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 12. 23 - 2015. 12. 28'); return false; } } if (packID == 5568) { if (('2025-01-05' < myright_depdate) || (myright_arrdate < '2018-08-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 09. 01 - 2024. 12. 31'); return false; } } if (packID == 5569) { if (('2012-01-07' < myright_depdate) || (myright_arrdate < '2011-12-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2011. 12. 29 - 2012. 01. 02'); return false; } } if (packID == 5734) { if (('2013-04-10' < myright_depdate) || (myright_arrdate < '2013-03-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2013. 04. 01 - 2013. 04. 05'); return false; } } if (packID == 5790) { if (('2010-08-30' < myright_depdate) || (myright_arrdate < '2010-06-26')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 07. 01 - 2010. 08. 25'); return false; } } if (packID == 5791) { if (('2018-12-06' < myright_depdate) || (myright_arrdate < '2018-08-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 09. 01 - 2018. 12. 01'); return false; } } if (packID == 5884) { if (('2018-04-12' < myright_depdate) || (myright_arrdate < '2018-01-20')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 01. 25 - 2018. 04. 07'); return false; } } if (packID == 5885) { if (('2014-02-21' < myright_depdate) || (myright_arrdate < '2014-01-29')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2014. 02. 03 - 2014. 02. 16'); return false; } } if (packID == 5886) { if (('2013-03-23' < myright_depdate) || (myright_arrdate < '2013-03-09')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2013. 03. 14 - 2013. 03. 18'); return false; } } if (packID == 6431) { if (('2018-07-05' < myright_depdate) || (myright_arrdate < '2018-04-03')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 04. 08 - 2018. 06. 30'); return false; } } if (packID == 6432) { if (('2018-04-06' < myright_depdate) || (myright_arrdate < '2018-03-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 03. 29 - 2018. 04. 01'); return false; } } if (packID == 6433) { if (('2018-05-05' < myright_depdate) || (myright_arrdate < '2018-04-22')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 04. 27 - 2018. 04. 30'); return false; } } if (packID == 6434) { if (('2018-12-28' < myright_depdate) || (myright_arrdate < '2018-08-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 09. 01 - 2018. 12. 23'); return false; } } if (packID == 6435) { if (('2014-01-07' < myright_depdate) || (myright_arrdate < '2013-12-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2013. 12. 29 - 2014. 01. 02'); return false; } } if (packID == 8250) { if (('2018-05-26' < myright_depdate) || (myright_arrdate < '2018-05-13')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 05. 18 - 2018. 05. 21'); return false; } } if (packID == 9382) { if (('2013-04-23' < myright_depdate) || (myright_arrdate < '2013-03-16')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2013. 03. 21 - 2013. 04. 18'); return false; } } if (packID == 10086) { if (('2013-10-05' < myright_depdate) || (myright_arrdate < '2013-06-26')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2013. 07. 01 - 2013. 09. 30'); return false; } } if (packID == 10484) { if (('2015-01-05' < myright_depdate) || (myright_arrdate < '2014-10-23')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2014. 10. 28 - 2014. 12. 31'); return false; } } if (packID == 11984) { if (('2014-02-05' < myright_depdate) || (myright_arrdate < '2014-01-01')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2014. 01. 06 - 2014. 01. 31'); return false; } } if (packID == 13007) { if (('2016-09-02' < myright_depdate) || (myright_arrdate < '2016-06-26')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 07. 01 - 2016. 08. 28'); return false; } } if (packID == 13008) { if (('2018-12-06' < myright_depdate) || (myright_arrdate < '2018-08-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 09. 01 - 2018. 12. 01'); return false; } } if (packID == 13835) { if (('2017-01-07' < myright_depdate) || (myright_arrdate < '2016-12-21')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 12. 26 - 2017. 01. 02'); return false; } } if (packID == 16069) { if (('2017-04-06' < myright_depdate) || (myright_arrdate < '2016-12-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 01. 01 - 2017. 04. 01'); return false; } } if (packID == 17355) { if (('2018-03-23' < myright_depdate) || (myright_arrdate < '2018-03-10')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 03. 15 - 2018. 03. 18'); return false; } } if (packID == 19138) { if (('2017-11-09' < myright_depdate) || (myright_arrdate < '2017-10-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 10. 29 - 2017. 11. 04'); return false; } } if (packID == 20606) { if (('2017-03-26' < myright_depdate) || (myright_arrdate < '2017-03-16')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 03. 21 - 2017. 03. 21'); return false; } } if (packID == 20866) { if (('2017-10-28' < myright_depdate) || (myright_arrdate < '2017-10-15')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 10. 20 - 2017. 10. 23'); return false; } } if (packID == 21500) { if (('2017-10-28' < myright_depdate) || (myright_arrdate < '2017-10-15')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 10. 20 - 2017. 10. 23'); return false; } } if (packID == 24542) { if (('2020-01-06' < myright_depdate) || (myright_arrdate < '2018-12-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 01. 01 - 2020. 01. 01'); return false; } } if (packID == 25728) { if (('2018-07-05' < myright_depdate) || (myright_arrdate < '2018-06-06')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 06. 11 - 2018. 06. 30'); return false; } } if (packID == 25782) { if (('2018-11-03' < myright_depdate) || (myright_arrdate < '2018-06-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 06. 22 - 2018. 10. 29'); return false; } } if (packID == 25783) { if (('2015-09-05' < myright_depdate) || (myright_arrdate < '2015-06-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 06. 22 - 2015. 08. 31'); return false; } } if (packID == 25784) { if (('2015-09-05' < myright_depdate) || (myright_arrdate < '2015-06-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 06. 22 - 2015. 08. 31'); return false; } } if (packID == 25785) { if (('2015-09-05' < myright_depdate) || (myright_arrdate < '2015-06-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 06. 22 - 2015. 08. 31'); return false; } } if (packID == 25786) { if (('2015-07-05' < myright_depdate) || (myright_arrdate < '2015-06-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 06. 22 - 2015. 06. 30'); return false; } } if (packID == 25787) { if (('2015-09-05' < myright_depdate) || (myright_arrdate < '2015-06-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 06. 22 - 2015. 08. 31'); return false; } } if (packID == 25906) { if (('2024-08-25' < myright_depdate) || (myright_arrdate < '2024-08-10')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 08. 15 - 2024. 08. 20'); return false; } } if (packID == 25928) { if (('2023-10-28' < myright_depdate) || (myright_arrdate < '2023-10-14')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 10. 19 - 2023. 10. 23'); return false; } } if (packID == 26194) { if (('2020-01-01' < myright_depdate) || (myright_arrdate < '2019-12-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 12. 22 - 2019. 12. 27'); return false; } } if (packID == 26195) { if (('2011-01-07' < myright_depdate) || (myright_arrdate < '2010-12-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 12. 29 - 2011. 01. 02'); return false; } } if (packID == 27085) { if (('2024-03-22' < myright_depdate) || (myright_arrdate < '2024-03-09')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 03. 14 - 2024. 03. 17'); return false; } } if (packID == 27113) { if (('2024-04-06' < myright_depdate) || (myright_arrdate < '2024-03-23')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 03. 28 - 2024. 04. 01'); return false; } } if (packID == 27283) { if (('2024-05-25' < myright_depdate) || (myright_arrdate < '2024-05-11')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 05. 16 - 2024. 05. 20'); return false; } } if (packID == 29834) { if (('2023-05-06' < myright_depdate) || (myright_arrdate < '2023-04-22')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 04. 27 - 2023. 05. 01'); return false; } } if (packID == 30350) { if (('2020-12-06' < myright_depdate) || (myright_arrdate < '2020-11-08')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 11. 13 - 2020. 12. 01'); return false; } } if (packID == 30351) { if (('2020-06-16' < myright_depdate) || (myright_arrdate < '2020-05-01')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 05. 06 - 2020. 06. 11'); return false; } } if (packID == 30525) { if (('1999-12-05' < myright_depdate) || (myright_arrdate < '2020-05-20')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 05. 25 - 0000. 00. 00'); return false; } } if (packID == 30622) { if (('2015-01-06' < myright_depdate) || (myright_arrdate < '2006-12-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2007. 01. 01 - 2015. 01. 01'); return false; } } if (packID == 31534) { if (('2025-01-01' < myright_depdate) || (myright_arrdate < '2024-12-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 12. 23 - 2024. 12. 27'); return false; } } if (packID == 31535) { if (('2025-01-06' < myright_depdate) || (myright_arrdate < '2024-12-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 12. 29 - 2025. 01. 01'); return false; } } if (packID == 31536) { if (('2024-11-08' < myright_depdate) || (myright_arrdate < '2024-10-26')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 10. 31 - 2024. 11. 03'); return false; } } if (packID == 32089) { if (('2020-11-25' < myright_depdate) || (myright_arrdate < '2020-11-08')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 11. 13 - 2020. 11. 20'); return false; } } if (packID == 32967) { if (('2008-08-13' < myright_depdate) || (myright_arrdate < '2006-12-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2007. 01. 01 - 2008. 08. 08'); return false; } } if (packID == 33853) { if (('2025-01-04' < myright_depdate) || (myright_arrdate < '2024-12-21')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 12. 26 - 2024. 12. 30'); return false; } } document.guest_data.submit(); } function changechildrendnum() { document.getElementById("tr_childage1").style.display = 'none'; document.getElementById("tr_childage2").style.display = 'none'; document.getElementById("tr_childage3").style.display = 'none'; document.getElementById("tr_childage4").style.display = 'none'; document.getElementById("tr_childage5").style.display = 'none'; document.getElementById("tr_childage6").style.display = 'none'; if (document.getElementById("guest_persons_child").selectedIndex > 0) document.getElementById("tr_childage1").style.display = ''; if (document.getElementById("guest_persons_child").selectedIndex > 1) document.getElementById("tr_childage2").style.display = ''; if (document.getElementById("guest_persons_child").selectedIndex > 2) document.getElementById("tr_childage3").style.display = ''; if (document.getElementById("guest_persons_child").selectedIndex > 3) document.getElementById("tr_childage4").style.display = ''; if (document.getElementById("guest_persons_child").selectedIndex > 4) document.getElementById("tr_childage5").style.display = ''; if (document.getElementById("guest_persons_child").selectedIndex > 5) document.getElementById("tr_childage6").style.display = ''; } function checkhungarycard() { if (document.getElementById('hashungarycard')) { if (document.getElementById('hashungarycard').selectedIndex == 1) { document.getElementById('hcardblokk').style.display=''; document.getElementById('hungarycard').focus(); } else { document.getElementById('hcardblokk').style.display='none'; } } } //******************************************* //INICIALIZÁLÁS setArrival('2024-04-28', '30'); setDeparture('2024-04-29', '30'); //checkhungarycard();