1var _contactform={load:function(settings){this.errorMsg=settings.errorMessages,this.dataOffers=settings.dataOffers,this.valEmail(),this.valDate(),this.valQuestion(),this.valRoomType()},valForm:function(evt){var outputMessage="",temp;return!1!==(temp=_contactform.valEmail())&&(outputMessage+="- "+temp+"\n"),!1!==(temp=_contactform.valDate())&&(outputMessage+="- "+temp+"\n"),!1!==(temp=_contactform.valComment())&&(outputMessage+="- "+temp+"\n"),""===outputMessage||(title=this.errorMsg.form,alert(title+outputMessage),!1)},valEmail:function(){var message=!1,valNode=document.getElementById("femail");return valNode.innerHTML="",document.contacts_form&&document.contacts_form.femail&&(/^([a-zA-Z0-9\._\-])+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,24}$/.test(document.contacts_form.femail.value)||(message=this.errorMsg.invalidEmail,valNode.innerHTML="*")),message},valDate:function(){var year,month,day,todayDate,checkinDate;return message=!1,document.contacts_form&&document.contacts_form.fcheckin&&""!==document.contacts_form.fcheckin.value&&(todayDate=new Date,(checkinDate=new Date(document.contacts_form.fcheckin.value))<todayDate&&(message=this.errorMsg.invalidDate)),message},valComment:function(){var message=!1,valNode=document.getElementById("cf-txtacomments"),fquestion=document.getElementById("cbquestion");return fquestion&&2!=fquestion.value&&(valNode.required=!0),!1},valQuestion:function(){var fquestion=document.getElementById("cbquestion"),reservationfields=document.getElementById("reservationFields");reservationfields.style.display="none",valNode=document.getElementById("cf-txtacomments"),valNode.required=!0,fquestion&&2==fquestion.value&&(reservationfields.style.display="block",valNode.required=!1)},valRoomType:function(){var foffer=document.getElementById("cboffer"),cbnradults=document.getElementById("cbnradults"),cbnrchildren=document.getElementById("cbnrchildren"),dataOffer=this.dataOffers;if(foffer&&0!=foffer.value){var maxAdults=dataOffer[foffer.value].maxAdults,adultsSelectedIndex=cbnradults.selectedIndex,maxChildren=dataOffer[foffer.value].maxChildren,childrenSelectedIndex=cbnrchildren.selectedIndex,option;cbnradults.options.length=0,(option=document.createElement("option")).text="",option.value="";var sel=cbnradults.options[cbnradults.selectedIndex],option;cbnradults.add(option);for(var i=1;i<=maxAdults;i++){var option;(option=document.createElement("option")).text=i,option.value=i,cbnradults.add(option)}cbnradults.selectedIndex=adultsSelectedIndex,cbnrchildren.options.length=0,(option=document.createElement("option")).text="",option.value="",option.selected="selected";var sel=cbnrchildren.options[cbnrchildren.selectedIndex];cbnrchildren.add(option);for(var i=0;i<=maxChildren;i++){var option;(option=document.createElement("option")).text=i,option.value=i,cbnrchildren.add(option)}cbnrchildren.selectedIndex=childrenSelectedIndex}}};document.getElementById("flocation").value=window.location,$(document).ready((function(){var dtToday=new Date,month=dtToday.getMonth()+1,day=dtToday.getDate(),year=dtToday.getFullYear();month<10&&(month="0"+month.toString()),day<10&&(day="0"+day.toString());var maxDate=year+"-"+month+"-"+day;$("#fcheckin").attr("min",maxDate),$.isFunction($.fn.datepicker)&&($("#fcheckin").datepicker({format:"yyyy-mm-dd",startDate:"today"}),$("#fcheckout").datepicker({format:"yyyy-mm-dd"}))}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.