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-27'; 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-28'; 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 == 6791) { if (('2010-12-28' < myright_depdate) || (myright_arrdate < '2009-12-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 01. 01 - 2010. 12. 23'); return false; } } if (packID == 6793) { if (('2023-05-06' < myright_depdate) || (myright_arrdate < '2023-04-23')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 04. 28 - 2023. 05. 01'); return false; } } if (packID == 6794) { if (('2022-04-20' < myright_depdate) || (myright_arrdate < '2021-12-29')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2022. 01. 03 - 2022. 04. 15'); return false; } } if (packID == 6795) { if (('2022-06-23' < myright_depdate) || (myright_arrdate < '2022-04-11')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2022. 04. 16 - 2022. 06. 18'); return false; } } if (packID == 6796) { if (('2019-03-29' < myright_depdate) || (myright_arrdate < '2019-03-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 03. 22 - 2019. 03. 24'); return false; } } if (packID == 6804) { if (('2020-09-04' < myright_depdate) || (myright_arrdate < '2020-07-20')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 07. 25 - 2020. 08. 30'); return false; } } if (packID == 6805) { if (('2020-06-02' < myright_depdate) || (myright_arrdate < '2020-05-10')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 05. 15 - 2020. 05. 28'); return false; } } if (packID == 6806) { if (('2013-12-27' < myright_depdate) || (myright_arrdate < '2013-01-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2013. 01. 23 - 2013. 12. 22'); return false; } } if (packID == 8238) { if (('2023-01-13' < myright_depdate) || (myright_arrdate < '2022-12-23')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2022. 12. 28 - 2023. 01. 08'); return false; } } if (packID == 8239) { if (('2011-01-06' < myright_depdate) || (myright_arrdate < '2010-12-25')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 12. 30 - 2011. 01. 01'); return false; } } if (packID == 8853) { if (('2024-08-30' < myright_depdate) || (myright_arrdate < '2024-06-16')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 06. 21 - 2024. 08. 25'); return false; } } if (packID == 8856) { 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 == 12863) { if (('2014-05-30' < myright_depdate) || (myright_arrdate < '2014-05-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2014. 05. 23 - 2014. 05. 25'); return false; } } if (packID == 12865) { if (('2017-04-05' < myright_depdate) || (myright_arrdate < '2016-09-29')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 10. 04 - 2017. 03. 31'); return false; } } if (packID == 12866) { if (('2014-04-27' < myright_depdate) || (myright_arrdate < '2014-04-12')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2014. 04. 17 - 2014. 04. 22'); return false; } } if (packID == 12867) { if (('2020-02-21' < myright_depdate) || (myright_arrdate < '2020-02-09')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2020. 02. 14 - 2020. 02. 16'); return false; } } if (packID == 12868) { if (('2017-12-22' < myright_depdate) || (myright_arrdate < '2017-08-29')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 09. 03 - 2017. 12. 17'); return false; } } if (packID == 13045) { if (('2011-07-05' < myright_depdate) || (myright_arrdate < '2010-08-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 08. 29 - 2011. 06. 30'); return false; } } if (packID == 13159) { if (('2022-09-02' < myright_depdate) || (myright_arrdate < '2022-08-20')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2022. 08. 25 - 2022. 08. 28'); return false; } } if (packID == 13961) { if (('2020-01-04' < myright_depdate) || (myright_arrdate < '2019-12-22')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 12. 27 - 2019. 12. 30'); return false; } } if (packID == 14293) { if (('2011-03-20' < myright_depdate) || (myright_arrdate < '2011-03-07')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2011. 03. 12 - 2011. 03. 15'); return false; } } if (packID == 14294) { if (('2024-03-05' < myright_depdate) || (myright_arrdate < '2024-01-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 02. 01 - 2024. 02. 29'); return false; } } if (packID == 14521) { if (('2015-03-13' < myright_depdate) || (myright_arrdate < '2015-03-01')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 03. 06 - 2015. 03. 08'); return false; } } if (packID == 14526) { if (('2024-04-06' < myright_depdate) || (myright_arrdate < '2024-03-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 03. 29 - 2024. 04. 01'); return false; } } if (packID == 14532) { if (('2024-05-25' < myright_depdate) || (myright_arrdate < '2024-05-12')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 05. 17 - 2024. 05. 20'); return false; } } if (packID == 14904) { if (('2016-10-07' < myright_depdate) || (myright_arrdate < '2016-09-13')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 09. 18 - 2016. 10. 02'); return false; } } if (packID == 15203) { if (('2019-08-31' < myright_depdate) || (myright_arrdate < '2019-08-15')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 08. 20 - 2019. 08. 26'); return false; } } if (packID == 15312) { if (('2010-08-31' < myright_depdate) || (myright_arrdate < '2010-06-13')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 06. 18 - 2010. 08. 26'); return false; } } if (packID == 15605) { if (('2011-07-05' < myright_depdate) || (myright_arrdate < '2010-08-21')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 08. 26 - 2011. 06. 30'); return false; } } if (packID == 15691) { if (('2016-04-05' < myright_depdate) || (myright_arrdate < '2015-09-03')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 09. 08 - 2016. 03. 31'); return false; } } if (packID == 16120) { if (('2015-12-25' < myright_depdate) || (myright_arrdate < '2015-11-17')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2015. 11. 22 - 2015. 12. 20'); return false; } } if (packID == 16635) { if (('2024-02-16' < myright_depdate) || (myright_arrdate < '2024-02-04')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 02. 09 - 2024. 02. 11'); return false; } } if (packID == 17190) { if (('2016-12-23' < myright_depdate) || (myright_arrdate < '2015-12-30')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 01. 04 - 2016. 12. 18'); return false; } } if (packID == 17191) { if (('2010-08-24' < myright_depdate) || (myright_arrdate < '2010-06-28')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 07. 03 - 2010. 08. 19'); return false; } } if (packID == 17832) { 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 == 17833) { if (('2018-07-09' < myright_depdate) || (myright_arrdate < '2018-03-16')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 03. 21 - 2018. 07. 04'); return false; } } if (packID == 17834) { if (('2018-06-05' < myright_depdate) || (myright_arrdate < '2018-04-26')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 05. 01 - 2018. 05. 31'); return false; } } if (packID == 17835) { if (('2019-05-05' < myright_depdate) || (myright_arrdate < '2019-03-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 04. 01 - 2019. 04. 30'); return false; } } if (packID == 18136) { if (('2017-05-06' < myright_depdate) || (myright_arrdate < '2017-04-23')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 04. 28 - 2017. 05. 01'); return false; } } if (packID == 18276) { if (('2016-11-02' < myright_depdate) || (myright_arrdate < '2016-08-16')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2016. 08. 21 - 2016. 10. 28'); return false; } } if (packID == 18670) { if (('2010-03-05' < myright_depdate) || (myright_arrdate < '2009-12-27')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 01. 01 - 2010. 02. 28'); return false; } } if (packID == 18702) { if (('2023-11-10' < myright_depdate) || (myright_arrdate < '2023-10-22')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 10. 27 - 2023. 11. 05'); return false; } } if (packID == 18728) { if (('2024-01-06' < myright_depdate) || (myright_arrdate < '2023-12-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 12. 29 - 2024. 01. 01'); return false; } } if (packID == 19237) { if (('2019-11-15' < myright_depdate) || (myright_arrdate < '2019-11-03')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 11. 08 - 2019. 11. 10'); return false; } } if (packID == 19484) { if (('2024-05-05' < myright_depdate) || (myright_arrdate < '2024-02-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 02. 23 - 2024. 04. 30'); return false; } } if (packID == 19656) { if (('2018-01-13' < myright_depdate) || (myright_arrdate < '2018-01-01')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 01. 06 - 2018. 01. 08'); return false; } } if (packID == 19801) { if (('2024-08-30' < myright_depdate) || (myright_arrdate < '2024-06-16')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2024. 06. 21 - 2024. 08. 25'); return false; } } if (packID == 19802) { if (('2017-02-06' < myright_depdate) || (myright_arrdate < '2017-01-25')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 01. 30 - 2017. 02. 01'); return false; } } if (packID == 21189) { if (('2021-08-24' < myright_depdate) || (myright_arrdate < '2021-07-04')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2021. 07. 09 - 2021. 08. 19'); return false; } } if (packID == 21350) { if (('2023-10-28' < myright_depdate) || (myright_arrdate < '2023-10-15')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 10. 20 - 2023. 10. 23'); return false; } } if (packID == 21351) { if (('2022-11-07' < myright_depdate) || (myright_arrdate < '2022-10-23')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2022. 10. 28 - 2022. 11. 02'); return false; } } if (packID == 21380) { if (('2018-08-30' < myright_depdate) || (myright_arrdate < '2018-07-01')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 07. 06 - 2018. 08. 25'); return false; } } if (packID == 21534) { if (('2010-09-04' < myright_depdate) || (myright_arrdate < '2010-08-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2010. 08. 23 - 2010. 08. 30'); return false; } } if (packID == 22261) { if (('2017-10-25' < myright_depdate) || (myright_arrdate < '2017-10-01')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2017. 10. 06 - 2017. 10. 20'); return false; } } if (packID == 22301) { if (('2018-12-23' < myright_depdate) || (myright_arrdate < '2018-12-11')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2018. 12. 16 - 2018. 12. 18'); return false; } } if (packID == 23659) { if (('2021-10-27' < myright_depdate) || (myright_arrdate < '2021-08-24')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2021. 08. 29 - 2021. 10. 22'); return false; } } if (packID == 24798) { if (('2019-06-26' < myright_depdate) || (myright_arrdate < '2019-02-12')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 02. 17 - 2019. 06. 21'); return false; } } if (packID == 26067) { if (('2019-09-06' < myright_depdate) || (myright_arrdate < '2019-08-15')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2019. 08. 20 - 2019. 09. 01'); return false; } } if (packID == 26514) { if (('2024-06-04' < myright_depdate) || (myright_arrdate < '2023-08-18')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 08. 23 - 2024. 05. 30'); return false; } } if (packID == 30323) { if (('2021-08-27' < myright_depdate) || (myright_arrdate < '2021-08-14')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2021. 08. 19 - 2021. 08. 22'); return false; } } if (packID == 31525) { if (('2011-07-13' < myright_depdate) || (myright_arrdate < '2011-01-07')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2011. 01. 12 - 2011. 07. 08'); return false; } } if (packID == 33393) { if (('2021-08-24' < myright_depdate) || (myright_arrdate < '2021-07-04')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2021. 07. 09 - 2021. 08. 19'); return false; } } if (packID == 33428) { if (('2024-10-05' < myright_depdate) || (myright_arrdate < '2021-07-03')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2021. 07. 08 - 2024. 09. 30'); return false; } } if (packID == 37620) { if (('2024-01-12' < myright_depdate) || (myright_arrdate < '2023-12-20')) { alert('Dieses Pauschalangebot ist nicht gültig in Ihrem gewünschten Zeitraum!\nDas Pauschalangebot ist gültig:\n2023. 12. 25 - 2024. 01. 07'); 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-27', '30'); setDeparture('2024-04-28', '30'); //checkhungarycard();