function checkDuration(B){var A=parseInt(B.value);if(A>50){B.focus();B.select();alert("Bitte Urlaubsdauer < 50 eingeben");return false}return true}function checkDateRange(D){var E=parseInt(D.sd_D.options[D.sd_D.selectedIndex].value);var B=D.sd_M.options[D.sd_M.selectedIndex].value;var A=parseInt(D.sd_Y.options[D.sd_Y.selectedIndex].value);var C=parseInt(D.ed_D.options[D.ed_D.selectedIndex].value);var G=D.ed_M.options[D.ed_M.selectedIndex].value;var F=parseInt(D.ed_Y.options[D.ed_Y.selectedIndex].value);if(!compareDate(E,B,A,C,G,F,1)){D.ed_D.focus();alert("Das angegebene Enddatum liegt vor dem Anreisedatum.");return false}return true}function checkValueRange(C,B,A){var D=parseFloat(convertLocaleSpecificNumberToFloat(C.value));if(D>parseFloat(A)){alert("Größte erlaubte Eingabe: "+A);C.focus();return false}else{if(D<parseFloat(B)){alert("Kleinste erlaubte Eingabe: "+B);C.focus();return false}else{return true}}}function setOnChangeDur(A){if(A.d.value<1){A.d.focus();A.d.select();alert("Die Dauer muss größer als 0 sein.");return false}return true}function checkNumber(entry){var val=entry.value+"";var maxDecimalPlaces=parseInt(eval(entry.form[entry.name+"_decimalPlaces"].value));var newVal="";var decimalPoint=false;var decimalPlaces=0;var thousandFoundIndex=-1;var dotFoundIndex=-1;var invalidNumber=false;if(val.length==1&&val.substring(0,1)=="-"){invalidNumber=true}for(var i=0;i<val.length;i++){letter=val.substring(i,i+1);if(((letter<"0"||"9"<letter)&&(letter!=",")&&(letter!="-")&&(letter!="."))||((letter==",")&&(decimalPoint==true))){entry.focus();entry.select();alert("Bitte nur Zahlen eingeben!");return false}if((decimalPoint==true)&&(letter!="-")){decimalPlaces++}if(decimalPlaces>maxDecimalPlaces&&letter!="0"){entry.focus();entry.select();alert("Maximal erlaubte Dezimalstellen: "+maxDecimalPlaces);return false}if((letter=="-")&&i!=0){entry.focus();entry.select();alert("Ungültige Zahl");return false}if(letter==","){decimalPoint=true}if(letter=="."){if(dotFoundIndex>=0){invalidNumber=true}else{thousandFoundIndex=i}}if(letter==","){dotFoundIndex=i}if(dotFoundIndex==i&&i==(val.length-1)){invalidNumber=true}if(thousandFoundIndex>=0&&dotFoundIndex==i&&((dotFoundIndex-thousandFoundIndex)!=4)){invalidNumber=true}if(thousandFoundIndex>=0&&dotFoundIndex<0&&(i==val.length-1)&&(i-thousandFoundIndex!=3)){invalidNumber=true}newVal=newVal+letter}entry.value=newVal;if(invalidNumber){alert("Ungültige Zahl");entry.focus();entry.select();return false}return true}function leapTo(A){this.location.href=A}function checkText(A){var B=A.value+"";if(B.length>0){return true}A.focus();A.select();alert("Dieses Feld darf nicht leer sein.");return false}var visibleMenuBody=null;function evlHideVisibleMenuBody(B){var A=B.toElement;while((A!=null)&&(A.className!="mhead")&&(A.className!="mbody")){A=A.parentNode}if(A!=null){B.cancelBubble=true;return false}if(visibleMenuBody!=null){visibleMenuBody.style.display="none";fnUnHighlightMenuHead(visibleMenuBody.parentNode)}}function showMenuBody(D){if(!document.all){return false}if(disableMenu){return false}if(visibleMenuBody!=null){visibleMenuBody.style.display="none";fnUnHighlightMenuHead(visibleMenuBody.parentNode)}var F=D.srcElement;while(F.className!="mhead"){F=F.parentNode}F.attachEvent("onmouseout",evlHideVisibleMenuBody);var G=F.firstChild.nextSibling;while(G.className!="mbody"){G=G.nextSibling}if(G.getAttribute("done")==null){G.setAttribute("done","true");G.attachEvent("onmouseover",evlCancelEvent);G.attachEvent("onmouseout",evlHideVisibleMenuBody);var A=G.childNodes;var C=0;for(C=0;C<A.length;C++){var E=A[C];if(E.tagName=="A"){E.attachEvent("onmouseover",evlHighlightMenuEntry);E.attachEvent("onmouseout",evlUnHighlightMenuEntry);setMenuEntryStyles(F,E)}}}visibleMenuBody=G;G.style.display="block";var B=F.getBoundingClientRect();G.style.left=(B.left-2)+document.body.scrollLeft+"px";G.style.top=(B.bottom-2)+document.body.scrollTop+"px";fnHighlightMenuHead(F);return true}function setMenuEntryStyles(F,B){var H=findAttribute(F,"ebs");var C=findAttribute(F,"ebc");var D=findAttribute(F,"ebw");var I=findAttribute(F,"ep");var E=findAttribute(F,"ebgcol");var G=findAttribute(F,"ecol");var A=findAttribute(F,"etd");B.style.textDecoration=A;B.style.backgroundColor=E;B.style.color=G;B.style.whiteSpace="nowrap";B.style.width="125px";B.style.borderStyle="none";B.style.borderBottomStyle=H;B.style.borderBottomColor=C;B.style.borderBottomWidth=D;B.style.padding=I}function setHighlightedMenuEntryStyles(F,B){var H=findAttribute(F,"hebs");var C=findAttribute(F,"hebc");var D=findAttribute(F,"hebw");var I=findAttribute(F,"hep");var E=findAttribute(F,"hebgcol");var G=findAttribute(F,"hecol");var A=findAttribute(F,"hetd");B.style.textDecoration=A;B.style.backgroundColor=E;B.style.color=G;B.style.whiteSpace="nowrap";B.style.width="125px";B.style.borderStyle="none";B.style.borderBottomStyle=H;B.style.borderBottomColor=C;B.style.borderBottomWidth=D;B.style.padding=I}function findAttribute(C,B){var A=C.getAttribute(B);if(A==null){A=document.getElementById(C.getAttribute("tmpl")).getAttribute(B)}return A}function evlCancelEvent(A){A.cancelBubble=true}function fnHighlightMenuHead(B){var C=B.getAttribute("hhbgcol");if(C==null){C=document.getElementById(B.getAttribute("tmpl")).getAttribute("hhbgcol")}var A=B.getAttribute("hhcol");if(A==null){A=document.getElementById(B.getAttribute("tmpl")).getAttribute("hhcol")}var D=B.firstChild;B.style.backgroundColor=C;B.style.color=A;if(D.style){D.style.color=A;D.style.backgroundColor=C}}function evlUnHighlightMenuHeader(A){if(!document.all){return false}if(disableMenu){return false}if(A.srcElement.className!="mhead"){return false}var B=A.srcElement.firstChild.nextSibling;while(B.className!="mbody"){B=B.nextSibling}if(B.style.display=="none"){fnUnHighlightMenuHead(A.srcElement)}return true}function fnUnHighlightMenuHead(B){var C=B.getAttribute("hbgcol");if(C==null){C=document.getElementById(B.getAttribute("tmpl")).getAttribute("hbgcol")}var A=B.getAttribute("hcol");if(A==null){A=document.getElementById(B.getAttribute("tmpl")).getAttribute("hcol")}var D=B.firstChild;B.style.backgroundColor=C;B.style.color=A;if(D.style){D.style.color=A;D.style.backgroundColor=C}}function evlHighlightMenuEntry(B){var C=B.srcElement;var A=C.parentNode.parentNode;setHighlightedMenuEntryStyles(A,C);B.cancelBubble=true}function evlUnHighlightMenuEntry(C){var D=C.srcElement;var A=D.parentNode.parentNode;setMenuEntryStyles(A,D);C.cancelBubble=true;var B=C.toElement;while((B!=null)&&(B.className!="mhead")&&(B.className!="mbody")){B=B.parentNode}if(B==null){evlHideVisibleMenuBody(C)}}function doCheckFormscout(A){if(!checkDuration(A.d)){return false}if(!checkNumber(A.d)){return false}if(!checkValueRange(A.d,"-999999.0","999999.0")){return false}if(!checkNumber(A.r0)){return false}if(!checkValueRange(A.r0,"-999999.0","999999.0")){return false}if(!checkNumber(A.a0)){return false}if(!checkValueRange(A.a0,"-999999.0","999999.0")){return false}if(!checkStartDate(A)){return false}if(!setOnChangeDur(A)){return false}if(!roomCheck(A)){return false}return true}function compareDate(A,B,E,F,G,C,D){if(parseInt(C)<parseInt(E)){return 0}if(parseInt(C)>parseInt(E)){return 1}if(parseInt(G)<parseInt(B)){return 0}if(parseInt(G)>parseInt(B)){return 1}if(D){if(parseInt(F)<parseInt(A)){return 0}}else{if(parseInt(F)<=parseInt(A)){return 0}}return 1}var disableMenu=false;function convertLocaleSpecificNumberToFloat(C){var A="";for(var B=0;B<C.length;B++){letter=C.substring(B,B+1);if(letter!="."){if(letter==","){A=A+"."}else{A=A+letter}}}return A}function doCheckFormcurrency(A){return true}function roomCheck(A){if(parseInt(A.r0.value)==0){alert("Geben Sie bitte die Anzahl der Zimmer ein!");A.r0.focus();return false}return true}function doCheckFormsearchCMP(A){return true}function checkStartDate(G){var C=parseInt(G.sd_D.options[G.sd_D.selectedIndex].value);var F=G.sd_M.options[G.sd_M.selectedIndex].value;var E=parseInt(G.sd_Y.options[G.sd_Y.selectedIndex].value);today=new Date();var D=today.getDate();var A=today.getMonth();var B=today.getYear();if(!compareDate(D,A,B,C,F,E,1)){G.sd_D.focus();alert("Das angegebene Anreisedatum liegt in der Vergangenheit.");return false}return true}var ads="http://ads.in.adcenter.net";function aa_banner(B,C,E,A){now=new Date();var D=now.getTime();document.write("<NOLAYER>");document.write('<iframe name="aa_banner" width="'+B+'" vspace="0" hspace="0" marginheight="0" marginwidth="0" src="'+ads+"/html.ng/TransactionID="+D+E+"&"+A+'?" height="'+C+'" frameborder="0" scrolling="no">');document.write('<a href="'+ads+"/click.ng/TransactionID="+D+E+"&"+A+'?" target="_blank"><img src="'+ads+"/image.ng/TransactionID="+D+E+"&"+A+'?" width="'+B+'" height="'+C+'" border="0" alt=""></a>');document.write("</iframe>");document.write("</NOLAYER>");document.write('<ilayer visibility="show" width="'+B+'" height="'+C+'" id="id'+E+'"></ilayer>')}function aa_footer(B,C,E,A){now=new Date();var D=now.getTime();document.write('<layer name="aa_banner" src="'+ads+"/html.ng/TransactionID="+D+E+"&"+A+'" visibility="hide" clip="0,0,'+B+","+C+'" onload="moveToAbsolute(id'+E+".pageX, id"+E+".pageY);visibility='show';\"></layer>")}function doOnLoad(){if(navigator.userAgent.indexOf("MSIE 4")!=-1){if(!disableMenu){disableMenu=true}}if(document.all){if(!disableMenu){document.attachEvent("onclick",evlHideVisibleMenuBody)}}if(navigator.userAgent.indexOf("MSIE 4")!=-1){if(!disableMenu){disableMenu=true}}if(document.all){if(!disableMenu){document.attachEvent("onclick",evlHideVisibleMenuBody)}}return true}function doOnUnLoad(){return true};
