var a; function switchaktiv(b,c){window.document.getElementById("navi1").className="inaktiv";window.document.getElementById("billigfluege").style.display="none";window.document.getElementById("navi2").className="inaktiv";window.document.getElementById("hotel").style.display="none";window.document.getElementById("navi3").className="inaktiv";window.document.getElementById("mietwagen").style.display="none";window.document.getElementById("tab1").className="inaktiv";window.document.getElementById("tabcontent1").style.display="none"; window.document.getElementById("tab2").className="inaktiv";window.document.getElementById("tabcontent2").style.display="none";window.document.getElementById("tab3").className="inaktiv";window.document.getElementById("tabcontent3").style.display="none";window.document.getElementById(b).className="aktiv";window.document.getElementById(c).style.display="block"} function switchaktiv1(b,c){window.document.getElementById("navi1").className="inaktiv";window.document.getElementById("billigfluege").style.display="none";window.document.getElementById("navi2").className="inaktiv";window.document.getElementById("hotel").style.display="none";window.document.getElementById("navi3").className="inaktiv";window.document.getElementById("mietwagen").style.display="none";window.document.getElementById(b).className="aktiv";window.document.getElementById(c).style.display= "block"}function disable(){if(document.billigfluege.onewayflug[1].checked){window.document.getElementById("flug2").disabled=true;window.document.getElementById("return").style.visibility="hidden"}}function enable(){window.document.getElementById("flug2").disabled=false;window.document.getElementById("return").style.visibility="visible"}var Monat=new Array("Jan","Feb","M\u00e4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"),Tag=new Array("So","Mo","Di","Mi","Do","Fr","Sa","??"),datum=new Date; datum.setTime(datum.getTime());var heutetag=datum.getDate();if(heutetag<10)heutetag="0"+heutetag;var wochentag=Tag[datum.getDay()],monatheute=datum.getMonth(),heutemonat=Monat[monatheute];monatheute+=1;if(monatheute<10)monatheute="0"+monatheute;var heutejahr=datum.getFullYear(),heute=wochentag+", "+heutetag+". "+heutemonat+" "+heutejahr,heutewert=heutejahr+""+monatheute+""+heutetag,heuteplusjahrwert=heutejahr+1+""+monatheute+""+heutetag;datum=new Date;datum.setTime(datum.getTime()+2592E5); var starttag=datum.getDate();if(starttag<10)starttag="0"+starttag;var startwochentag=Tag[datum.getDay()],Monatindreitagen=datum.getMonth(),startmonat=Monat[Monatindreitagen];Monatindreitagen+=1;if(Monatindreitagen<10)Monatindreitagen="0"+Monatindreitagen;var startjahr=datum.getFullYear(),startdatum=starttag+"-"+Monatindreitagen+"-"+startjahr,startdatum_da=startwochentag+", "+starttag+". "+startmonat+" "+startjahr;datum=new Date;datum.setTime(datum.getTime()+864E6);var returntag=datum.getDate(); if(returntag<10)returntag="0"+returntag;var returnwochentag=Tag[datum.getDay()],Monatinzehntagen=datum.getMonth(),returnmonat=Monat[Monatinzehntagen];Monatinzehntagen+=1;if(Monatinzehntagen<10)Monatinzehntagen="0"+Monatinzehntagen;var returnjahr=datum.getFullYear(),returndatum=returntag+"-"+Monatinzehntagen+"-"+returnjahr,returndatum_da=returnwochentag+", "+returntag+". "+returnmonat+" "+returnjahr; Calendar=function(b,c,d,e){this.timeout=this.getDateText=this.getDateToolTip=this.getDateStatus=this.currentDateEl=this.activeDiv=null;this.onSelected=d||null;this.onClose=e||null;this.hidden=this.dragging=false;this.minYear=1970;this.maxYear=2050;this.dateFormat=Calendar._TT.DEF_DATE_FORMAT;this.ttDateFormat=Calendar._TT.TT_DATE_FORMAT;this.weekNumbers=this.isPopup=true;this.firstDayOfWeek=typeof b=="number"?b:Calendar._FD;this.showsOtherMonths=false;this.dateStr=c;this.ar_days=null;this.showsTime= false;this.time24=true;this.yearStep=2;this.hiliteToday=true;this.activeYear=this.hilitedYear=this.activeMonth=this.hilitedMonth=this.yearsCombo=this.monthsCombo=this.firstdayname=this.tbody=this.element=this.table=this.multiple=null;this.dateClicked=false;if(typeof Calendar._SDN=="undefined"){if(typeof Calendar._SDN_len=="undefined")Calendar._SDN_len=3;b=[];for(c=8;c>0;)b[--c]=Calendar._DN[c].substr(0,Calendar._SDN_len);Calendar._SDN=b;if(typeof Calendar._SMN_len=="undefined")Calendar._SMN_len=3; b=[];for(c=12;c>0;)b[--c]=Calendar._MN[c].substr(0,Calendar._SMN_len);Calendar._SMN=b}};Calendar._C=null;Calendar.is_ie=/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent);Calendar.is_ie5=Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent);Calendar.is_opera=/opera/i.test(navigator.userAgent);Calendar.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent); Calendar.getAbsolutePos=function(b){var c=0,d=0,e=/^div$/i.test(b.tagName);if(e&&b.scrollLeft)c=b.scrollLeft;if(e&&b.scrollTop)d=b.scrollTop;c={x:b.offsetLeft-c,y:b.offsetTop-d};if(b.offsetParent){b=this.getAbsolutePos(b.offsetParent);c.x+=b.x;c.y+=b.y}return c};Calendar.isRelated=function(b,c){var d=c.relatedTarget;if(!d){var e=c.type;if(e=="mouseover")d=c.fromElement;else if(e=="mouseout")d=c.toElement}for(;d;){if(d==b)return true;d=d.parentNode}return false}; Calendar.removeClass=function(b,c){if(b&&b.className){for(var d=b.className.split(" "),e=[],g=d.length;g>0;)if(d[--g]!=c)e[e.length]=d[g];b.className=e.join(" ")}};Calendar.addClass=function(b,c){Calendar.removeClass(b,c);b.className+=" "+c};Calendar.getElement=function(b){for(b=Calendar.is_ie?window.event.srcElement:b.currentTarget;b.nodeType!=1||/^div$/i.test(b.tagName);)b=b.parentNode;return b}; Calendar.getTargetElement=function(b){for(b=Calendar.is_ie?window.event.srcElement:b.target;b.nodeType!=1;)b=b.parentNode;return b};Calendar.stopEvent=function(b){b||(b=window.event);if(Calendar.is_ie){b.cancelBubble=true;b.returnValue=false}else{b.preventDefault();b.stopPropagation()}return false};Calendar.addEvent=function(b,c,d){if(b.attachEvent)b.attachEvent("on"+c,d);else if(b.addEventListener)b.addEventListener(c,d,true);else b["on"+c]=d}; Calendar.removeEvent=function(b,c,d){if(b.detachEvent)b.detachEvent("on"+c,d);else if(b.removeEventListener)b.removeEventListener(c,d,true);else b["on"+c]=null};Calendar.createElement=function(b,c){var d=null;d=document.createElementNS?document.createElementNS("http://www.w3.org/1999/xhtml",b):document.createElement(b);typeof c!="undefined"&&c.appendChild(d);return d}; Calendar._add_evs=function(b){with(Calendar){addEvent(b,"mouseover",dayMouseOver);addEvent(b,"mousedown",dayMouseDown);addEvent(b,"mouseout",dayMouseOut);if(is_ie){addEvent(b,"dblclick",dayMouseDblClick);b.setAttribute("unselectable",true)}}};Calendar.findMonth=function(b){if(typeof b.month!="undefined")return b;else if(typeof b.parentNode.month!="undefined")return b.parentNode;return null}; Calendar.findYear=function(b){if(typeof b.year!="undefined")return b;else if(typeof b.parentNode.year!="undefined")return b.parentNode;return null}; Calendar.showMonthsCombo=function(){var b=Calendar._C;if(!b)return false;b=b;var c=b.activeDiv,d=b.monthsCombo;b.hilitedMonth&&Calendar.removeClass(b.hilitedMonth,"hilite");b.activeMonth&&Calendar.removeClass(b.activeMonth,"active");var e=b.monthsCombo.getElementsByTagName("div")[b.date.getMonth()];Calendar.addClass(e,"active");b.activeMonth=e;b=d.style;b.display="block";if(c.navtype<0)b.left=c.offsetLeft+"px";else{d=d.offsetWidth;if(typeof d=="undefined")d=50;b.left=c.offsetLeft+c.offsetWidth-d+ "px"}b.top=c.offsetTop+c.offsetHeight+"px"}; Calendar.showYearsCombo=function(b){var c=Calendar._C;if(!c)return false;c=c;var d=c.activeDiv,e=c.yearsCombo;c.hilitedYear&&Calendar.removeClass(c.hilitedYear,"hilite");c.activeYear&&Calendar.removeClass(c.activeYear,"active");c.activeYear=null;for(var g=c.date.getFullYear()+(b?1:-1),h=e.firstChild,f=false,i=12;i>0;--i){if(g>=c.minYear&&g<=c.maxYear){h.innerHTML=g;h.year=g;h.style.display="block";f=true}else h.style.display="none";h=h.nextSibling;g+=b?c.yearStep:-c.yearStep}if(f){b=e.style;b.display= "block";if(d.navtype<0)b.left=d.offsetLeft+"px";else{e=e.offsetWidth;if(typeof e=="undefined")e=50;b.left=d.offsetLeft+d.offsetWidth-e+"px"}b.top=d.offsetTop+d.offsetHeight+"px"}}; Calendar.tableMouseUp=function(b){var c=Calendar._C;if(!c)return false;c.timeout&&clearTimeout(c.timeout);var d=c.activeDiv;if(!d)return false;var e=Calendar.getTargetElement(b);b||(b=window.event);Calendar.removeClass(d,"active");if(e==d||e.parentNode==d)Calendar.cellClick(d,b);var g=Calendar.findMonth(e);d=null;if(g){d=new Date(c.date);if(g.month!=d.getMonth()){d.setMonth(g.month);c.setDate(d);c.dateClicked=false;c.callHandler()}}else if(e=Calendar.findYear(e)){d=new Date(c.date);if(e.year!=d.getFullYear()){d.setFullYear(e.year); c.setDate(d);c.dateClicked=false;c.callHandler()}}with(Calendar){removeEvent(document,"mouseup",tableMouseUp);removeEvent(document,"mouseover",tableMouseOver);removeEvent(document,"mousemove",tableMouseOver);c._hideCombos();_C=null;return stopEvent(b)}}; Calendar.tableMouseOver=function(b){var c=Calendar._C;if(c){var d=c.activeDiv,e=Calendar.getTargetElement(b);if(e==d||e.parentNode==d){Calendar.addClass(d,"hilite active");Calendar.addClass(d.parentNode,"rowhilite")}else{if(typeof d.navtype=="undefined"||d.navtype!=50&&(d.navtype==0||Math.abs(d.navtype)>2))Calendar.removeClass(d,"active");Calendar.removeClass(d,"hilite");Calendar.removeClass(d.parentNode,"rowhilite")}b||(b=window.event);if(d.navtype==50&&e!=d){var g=Calendar.getAbsolutePos(d),h=d.offsetWidth, f=b.clientX,i=true;if(f>g.x+h){f=f-g.x-h;i=false}else f=g.x-f;if(f<0)f=0;g=d._range;h=d._current;f=Math.floor(f/10)%g.length;for(var j=g.length;--j>=0;)if(g[j]==h)break;for(;f-- >0;)if(i){if(--j<0)j=g.length-1}else if(++j>=g.length)j=0;d.innerHTML=g[j];c.onUpdateTime()}if(d=Calendar.findMonth(e))if(d.month!=c.date.getMonth()){c.hilitedMonth&&Calendar.removeClass(c.hilitedMonth,"hilite");Calendar.addClass(d,"hilite");c.hilitedMonth=d}else c.hilitedMonth&&Calendar.removeClass(c.hilitedMonth,"hilite"); else{c.hilitedMonth&&Calendar.removeClass(c.hilitedMonth,"hilite");if(e=Calendar.findYear(e))if(e.year!=c.date.getFullYear()){c.hilitedYear&&Calendar.removeClass(c.hilitedYear,"hilite");Calendar.addClass(e,"hilite");c.hilitedYear=e}else c.hilitedYear&&Calendar.removeClass(c.hilitedYear,"hilite");else c.hilitedYear&&Calendar.removeClass(c.hilitedYear,"hilite")}return Calendar.stopEvent(b)}};Calendar.tableMouseDown=function(b){if(Calendar.getTargetElement(b)==Calendar.getElement(b))return Calendar.stopEvent(b)}; Calendar.calDragIt=function(b){var c=Calendar._C;if(!(c&&c.dragging))return false;var d,e;if(Calendar.is_ie){e=window.event.clientY+document.body.scrollTop;d=window.event.clientX+document.body.scrollLeft}else{d=b.pageX;e=b.pageY}c.hideShowCovered();var g=c.element.style;g.left=d-c.xOffs+"px";g.top=e-c.yOffs+"px";return Calendar.stopEvent(b)}; Calendar.calDragEnd=function(b){var c=Calendar._C;if(!c)return false;c.dragging=false;with(Calendar){removeEvent(document,"mousemove",calDragIt);removeEvent(document,"mouseup",calDragEnd);tableMouseUp(b)}c.hideShowCovered()}; Calendar.dayMouseDown=function(b){var c=Calendar.getElement(b);if(c.disabled)return false;var d=c.calendar;d.activeDiv=c;Calendar._C=d;if(c.navtype!=300)with(Calendar){if(c.navtype==50){c._current=c.innerHTML;addEvent(document,"mousemove",tableMouseOver)}else addEvent(document,Calendar.is_ie5?"mousemove":"mouseover",tableMouseOver);addClass(c,"hilite active");addEvent(document,"mouseup",tableMouseUp)}else d.isPopup&&d._dragStart(b);if(c.navtype==-1||c.navtype==1){d.timeout&&clearTimeout(d.timeout); d.timeout=setTimeout("Calendar.showMonthsCombo()",250)}else if(c.navtype==-2||c.navtype==2){d.timeout&&clearTimeout(d.timeout);d.timeout=setTimeout(c.navtype>0?"Calendar.showYearsCombo(true)":"Calendar.showYearsCombo(false)",250)}else d.timeout=null;return Calendar.stopEvent(b)};Calendar.dayMouseDblClick=function(b){Calendar.cellClick(Calendar.getElement(b),b||window.event);Calendar.is_ie&&document.selection.empty()}; Calendar.dayMouseOver=function(b){var c=Calendar.getElement(b);if(Calendar.isRelated(c,b)||Calendar._C||c.disabled)return false;if(c.ttip){if(c.ttip.substr(0,1)=="_")c.ttip=c.caldate.print(c.calendar.ttDateFormat)+c.ttip.substr(1);c.calendar.tooltips.innerHTML=c.ttip}if(c.navtype!=300){Calendar.addClass(c,"hilite");if(c.caldate){Calendar.addClass(c.parentNode,"rowhilite");var d=c.calendar;if(d&&d.getDateToolTip){var e=c.caldate;window.status=e;c.title=d.getDateToolTip(e,e.getFullYear(),e.getMonth(), e.getDate())}}}return Calendar.stopEvent(b)};Calendar.dayMouseOut=function(b){with(Calendar){var c=getElement(b);if(isRelated(c,b)||_C||c.disabled)return false;removeClass(c,"hilite");c.caldate&&removeClass(c.parentNode,"rowhilite");if(c.calendar)c.calendar.tooltips.innerHTML=_TT.SEL_DATE}}; Calendar.cellClick=function(b,c){var d=b.calendar,e=false,g=false,h=null;if(typeof b.navtype=="undefined"){if(d.currentDateEl){Calendar.removeClass(d.currentDateEl,"selected");Calendar.addClass(b,"selected");e=d.currentDateEl==b;if(!e)d.currentDateEl=b}d.date.setDateOnly(b.caldate);h=d.date;var f=!(d.dateClicked=!b.otherMonth);if(!f&&!d.currentDateEl&&d.multiple)d._toggleMultipleDate(new Date(h));else g=!b.disabled;f&&d._init(d.firstDayOfWeek,h)}else{if(b.navtype==200){Calendar.removeClass(b,"hilite"); d.callCloseHandler();return}h=new Date(d.date);b.navtype==0&&h.setDateOnly(new Date);d.dateClicked=false;f=h.getFullYear();var i=h.getMonth(),j=function(k){var l=h.getDate(),o=h.getMonthDays(k);l>o&&h.setDate(o);h.setMonth(k)};switch(b.navtype){case 400:Calendar.removeClass(b,"hilite");e=Calendar._TT.ABOUT;if(typeof e!="undefined")e+=d.showsTime?Calendar._TT.ABOUT_TIME:"";else e='Help and about box text is not translated into this language.\nIf you know this language and you feel generous please update\nthe corresponding file in "lang" subdir to match calendar-en.js\nand send it back to <mihai_bazon@yahoo.com> to get it into the distribution ;-)\n\nThank you!\nhttp://dynarch.com/mishoo/calendar.epl\n'; alert(e);return;case -2:f>d.minYear&&h.setFullYear(f-1);break;case -1:if(i>0)j(i-1);else if(f-- >d.minYear){h.setFullYear(f);j(11)}break;case 1:if(i<11)j(i+1);else if(f<d.maxYear){h.setFullYear(f+1);j(0)}break;case 2:f<d.maxYear&&h.setFullYear(f+1);break;case 100:d.setFirstDayOfWeek(b.fdow);return;case 50:e=b._range;g=b.innerHTML;for(f=e.length;--f>=0;)if(e[f]==g)break;if(c&&c.shiftKey){if(--f<0)f=e.length-1}else if(++f>=e.length)f=0;b.innerHTML=e[f];d.onUpdateTime();return;case 0:if(typeof d.getDateStatus== "function"&&d.getDateStatus(h,h.getFullYear(),h.getMonth(),h.getDate()))return false;break}if(h.equalsTo(d.date)){if(b.navtype==0)g=e=true}else{d.setDate(h);g=true}}g&&c&&d.callHandler();if(e){Calendar.removeClass(b,"hilite");c&&d.callCloseHandler()}}; Calendar.prototype.create=function(b){var c=null;if(b){c=b;this.isPopup=false}else{c=document.getElementsByTagName("body")[0];this.isPopup=true}this.date=this.dateStr?new Date(this.dateStr):new Date;this.table=b=Calendar.createElement("table");b.cellSpacing=0;b.cellPadding=0;b.calendar=this;Calendar.addEvent(b,"mousedown",Calendar.tableMouseDown);var d=Calendar.createElement("div");this.element=d;d.className="calendar";if(this.isPopup){d.style.position="absolute";d.style.display="none"}d.appendChild(b); var e=Calendar.createElement("thead",b),g=null,h=null,f=this;d=function(k,l,o){g=Calendar.createElement("td",h);g.colSpan=l;g.className="button";if(o!=0&&Math.abs(o)<=2)g.className+=" nav";Calendar._add_evs(g);g.calendar=f;g.navtype=o;g.innerHTML="<div unselectable='on'>"+k+"</div>";return g};h=Calendar.createElement("tr",e);var i=6;this.isPopup&&--i;this.weekNumbers&&++i;this.info=d("",1,400);this.info.ttip=Calendar._TT.INFO;this.info.className="navinfo";this.title=d("",i,300);this.title.className= "title";if(this.isPopup){this.title.ttip=Calendar._TT.DRAG_TO_MOVE;this.title.style.cursor="move";this.schliessen=d("",1,200);this.schliessen.ttip=Calendar._TT.CLOSE;this.schliessen.className="navclose"}h=Calendar.createElement("tr",e);h.className="headrow";this._nav_py=d("&#x00ab; "+jahrbutton,1,-2);this._nav_py.ttip=Calendar._TT.PREV_YEAR;this._nav_py.className="navpjahr";this._nav_pm=d("&#x00ab; M",1,-1);this._nav_pm.ttip=Calendar._TT.PREV_MONTH;this._nav_pm.className="navpmon";this._nav_now=d(Calendar._TT.TODAY, this.weekNumbers?4:3,0);this._nav_now.ttip=Calendar._TT.GO_TODAY;this._nav_now.className="navheute";this._nav_nm=d("M &#x00bb;",1,1);this._nav_nm.ttip=Calendar._TT.NEXT_MONTH;this._nav_nm.className="navnmon";this._nav_ny=d(jahrbutton+" &#x00bb;",1,2);this._nav_ny.ttip=Calendar._TT.NEXT_YEAR;this._nav_ny.className="navnjahr";h=Calendar.createElement("tr",e);h.className="daynames";if(this.weekNumbers){g=Calendar.createElement("td",h);g.className="name wn";g.innerHTML=Calendar._TT.WK}for(e=7;e>0;--e){g= Calendar.createElement("td",h);if(!e){g.navtype=100;g.calendar=this;Calendar._add_evs(g)}}this.firstdayname=this.weekNumbers?h.firstChild.nextSibling:h.firstChild;this._displayWeekdays();this.tbody=i=Calendar.createElement("tbody",b);for(e=6;e>0;--e){h=Calendar.createElement("tr",i);if(this.weekNumbers)g=Calendar.createElement("td",h);for(var j=7;j>0;--j){g=Calendar.createElement("td",h);g.calendar=this;Calendar._add_evs(g)}}if(this.showsTime){h=Calendar.createElement("tr",i);h.className="time";g= Calendar.createElement("td",h);g.className="time";g.colSpan=2;g.innerHTML=Calendar._TT.TIME||"&nbsp;";g=Calendar.createElement("td",h);g.className="time";g.colSpan=this.weekNumbers?4:3;(function(){function k(p,q,t,v){var s=Calendar.createElement("span",g);s.className=p;s.innerHTML=q;s.calendar=f;s.ttip=Calendar._TT.TIME_PART;s.navtype=50;s._range=[];if(typeof t!="number")s._range=t;else for(p=t;p<=v;++p)s._range[s._range.length]=p<10&&v>=10?"0"+p:""+p;Calendar._add_evs(s);return s}var l=f.date.getHours(), o=f.date.getMinutes(),n=!f.time24,m=l>12;if(n&&m)l-=12;var u=k("hour",l,n?1:0,n?12:23);l=Calendar.createElement("span",g);l.innerHTML=":";l.className="colon";var r=k("minute",o,0,59),w=null;g=Calendar.createElement("td",h);g.className="time";g.colSpan=2;if(n)w=k("ampm",m?"pm":"am",["am","pm"]);else g.innerHTML="&nbsp;";f.onSetTime=function(){var p,q=this.date.getHours(),t=this.date.getMinutes();if(n){if(p=q>=12)q-=12;if(q==0)q=12;w.innerHTML=p?"pm":"am"}u.innerHTML=q<10?"0"+q:q;r.innerHTML=t<10?"0"+ t:t};f.onUpdateTime=function(){var p=this.date,q=parseInt(u.innerHTML,10);if(n)if(/pm/i.test(w.innerHTML)&&q<12)q+=12;else if(/am/i.test(w.innerHTML)&&q==12)q=0;var t=p.getDate(),v=p.getMonth(),s=p.getFullYear();p.setHours(q);p.setMinutes(parseInt(r.innerHTML,10));p.setFullYear(s);p.setMonth(v);p.setDate(t);this.dateClicked=false;this.callHandler()}})()}else this.onSetTime=this.onUpdateTime=function(){};b=Calendar.createElement("tfoot",b);h=Calendar.createElement("tr",b);h.className="footrow";g=d(Calendar._TT.SEL_DATE, this.weekNumbers?8:7,300);g.className="ttip";if(this.isPopup){g.ttip=Calendar._TT.DRAG_TO_MOVE;g.style.cursor="move"}this.tooltips=g;this.monthsCombo=d=Calendar.createElement("div",this.element);d.className="combo";for(e=0;e<Calendar._MN.length;++e){b=Calendar.createElement("div");b.className=Calendar.is_ie?"label-IEfix":"label";b.month=e;b.innerHTML=Calendar._SMN[e];d.appendChild(b)}this.yearsCombo=d=Calendar.createElement("div",this.element);d.className="combo";for(e=12;e>0;--e){b=Calendar.createElement("div"); b.className=Calendar.is_ie?"label-IEfix":"label";d.appendChild(b)}this._init(this.firstDayOfWeek,this.date);c.appendChild(this.element)}; Calendar._keyEvent=function(b){var c=window._dynarch_popupCalendar;if(!c||c.multiple)return false;Calendar.is_ie&&(b=window.event);var d=Calendar.is_ie||b.type=="keypress",e=b.keyCode;if(b.ctrlKey)switch(e){case 37:d&&Calendar.cellClick(c._nav_pm);break;case 38:d&&Calendar.cellClick(c._nav_py);break;case 39:d&&Calendar.cellClick(c._nav_nm);break;case 40:d&&Calendar.cellClick(c._nav_ny);break;default:return false}else switch(e){case 32:Calendar.cellClick(c._nav_now);break;case 27:d&&c.callCloseHandler(); break;case 37:case 38:case 39:case 40:if(d){var g,h,f,i,j;d=e==37||e==38;j=e==37||e==39?1:7;var k=function(){i=c.currentDateEl;var n=i.pos;g=n&15;h=n>>4;f=c.ar_days[h][g]};k();for(var l=function(){var n=new Date(c.date);n.setDate(n.getDate()-j);c.setDate(n)},o=function(){var n=new Date(c.date);n.setDate(n.getDate()+j);c.setDate(n)};;){switch(e){case 37:if(--g>=0)f=c.ar_days[h][g];else{g=6;e=38;continue}break;case 38:if(--h>=0)f=c.ar_days[h][g];else{l();k()}break;case 39:if(++g<7)f=c.ar_days[h][g]; else{g=0;e=40;continue}break;case 40:if(++h<c.ar_days.length)f=c.ar_days[h][g];else{o();k()}break}break}if(f)if(f.disabled)d?l():o();else Calendar.cellClick(f)}break;case 13:d&&Calendar.cellClick(c.currentDateEl,b);break;default:return false}return Calendar.stopEvent(b)};a=Calendar.prototype; a._init=function(b,c){var d=new Date,e=d.getFullYear(),g=d.getMonth();d=d.getDate();this.table.style.visibility="hidden";var h=c.getFullYear();if(h<this.minYear){h=this.minYear;c.setFullYear(h)}else if(h>this.maxYear){h=this.maxYear;c.setFullYear(h)}this.firstDayOfWeek=b;this.date=new Date(c);var f=c.getMonth(),i=c.getDate();c.getMonthDays();c.setDate(1);var j=(c.getDay()-this.firstDayOfWeek)%7;if(j<0)j+=7;c.setDate(-j);c.setDate(c.getDate()+1);j=this.tbody.firstChild;for(var k=this.ar_days=[],l= Calendar._TT.WEEKEND,o=this.multiple?(this.datesCells={}):null,n=0;n<6;++n,j=j.nextSibling){var m=j.firstChild;if(this.weekNumbers){m.className="day wn";m.innerHTML=c.getWeekNumber();m=m.nextSibling}j.className="daysrow";for(var u=false,r,w=k[n]=[],p=0;p<7;++p,m=m.nextSibling,c.setDate(r+1)){r=c.getDate();var q=c.getDay();m.className="day";m.pos=n<<4|p;w[p]=m;var t=c.getMonth()==f;if(t){m.otherMonth=false;u=true}else if(this.showsOtherMonths){m.className+=" othermonth";m.otherMonth=true}else{m.className= "emptycell";m.innerHTML="&nbsp;";m.disabled=true;continue}m.disabled=false;m.innerHTML=this.getDateText?this.getDateText(c,r):r;if(o)o[c.print("%Y%m%d")]=m;if(this.getDateStatus){var v=this.getDateStatus(c,h,f,r);if(v===true){m.className+=" disabled";m.disabled=true}else{if(/disabled/i.test(v))m.disabled=true;m.className+=" "+v}}if(!m.disabled){m.caldate=new Date(c);m.ttip="_";if(!this.multiple&&t&&r==i&&this.hiliteToday){m.className+=" selected";this.currentDateEl=m}if(c.getFullYear()==e&&c.getMonth()== g&&r==d){m.className+=" today";m.ttip+=Calendar._TT.PART_TODAY}if(l.indexOf(q.toString())!=-1)m.className+=m.otherMonth?" oweekend":" weekend"}}if(!(u||this.showsOtherMonths))j.className="emptyrow"}this.title.innerHTML=Calendar._MN[f]+", "+h;this.onSetTime();this.table.style.visibility="visible";this._initMultipleDates()};a._initMultipleDates=function(){if(this.multiple)for(var b in this.multiple){var c=this.datesCells[b];if(this.multiple[b])if(c)c.className+=" selected"}}; a._toggleMultipleDate=function(b){if(this.multiple){var c=b.print("%Y%m%d"),d=this.datesCells[c];if(d)if(this.multiple[c]){Calendar.removeClass(d,"selected");delete this.multiple[c]}else{Calendar.addClass(d,"selected");this.multiple[c]=b}}};a.setDateToolTipHandler=function(b){this.getDateToolTip=b};a.setDate=function(b){b.equalsTo(this.date)||this._init(this.firstDayOfWeek,b)};a.refresh=function(){this._init(this.firstDayOfWeek,this.date)};a.setFirstDayOfWeek=function(b){this._init(b,this.date);this._displayWeekdays()}; a.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(b){this.getDateStatus=b};a.setRange=function(b,c){this.minYear=b;this.maxYear=c};a.callHandler=function(){this.onSelected&&this.onSelected(this,this.date.print(this.dateFormat))};a.callCloseHandler=function(){this.onClose&&this.onClose(this);this.hideShowCovered()};a.destroy=function(){this.element.parentNode.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null}; a.reparent=function(b){var c=this.element;c.parentNode.removeChild(c);b.appendChild(c)};Calendar._checkCalendar=function(b){var c=window._dynarch_popupCalendar;if(!c)return false;for(var d=Calendar.is_ie?Calendar.getElement(b):Calendar.getTargetElement(b);d!=null&&d!=c.element;d=d.parentNode);if(d==null){window._dynarch_popupCalendar.callCloseHandler();return Calendar.stopEvent(b)}};a=Calendar.prototype; a.show=function(){for(var b=this.table.getElementsByTagName("tr"),c=b.length;c>0;){var d=b[--c];Calendar.removeClass(d,"rowhilite");d=d.getElementsByTagName("td");for(var e=d.length;e>0;){var g=d[--e];Calendar.removeClass(g,"hilite");Calendar.removeClass(g,"active")}}this.element.style.display="block";this.hidden=false;if(this.isPopup){window._dynarch_popupCalendar=this;Calendar.addEvent(document,"keydown",Calendar._keyEvent);Calendar.addEvent(document,"keypress",Calendar._keyEvent);Calendar.addEvent(document, "mousedown",Calendar._checkCalendar)}this.hideShowCovered()};a.hide=function(){if(this.isPopup){Calendar.removeEvent(document,"keydown",Calendar._keyEvent);Calendar.removeEvent(document,"keypress",Calendar._keyEvent);Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar)}this.element.style.display="none";this.hidden=true;this.hideShowCovered()};a.showAt=function(b,c){var d=this.element.style;d.left=b+"px";d.top=c+"px";this.show()}; a.showAtElement=function(b,c){function d(h){if(h.x<0)h.x=0;if(h.y<0)h.y=0;var f=document.createElement("div"),i=f.style;i.position="absolute";i.right=i.bottom=i.width=i.height="0px";document.body.appendChild(f);i=Calendar.getAbsolutePos(f);document.body.removeChild(f);if(Calendar.is_ie){i.y+=document.body.scrollTop;i.x+=document.body.scrollLeft}else{i.y+=window.scrollY;i.x+=window.scrollX}f=h.x+h.width-i.x;if(f>0)h.x-=f;f=h.y+h.height-i.y;if(f>0)h.y-=f}var e=this,g=Calendar.getAbsolutePos(b);if(!c|| typeof c!="string"){this.showAt(g.x,g.y+b.offsetHeight);return true}this.element.style.display="block";Calendar.continuation_for_the_fucking_khtml_browser=function(){var h=e.element.offsetWidth,f=e.element.offsetHeight;e.element.style.display="none";var i=c.substr(0,1),j="l";if(c.length>1)j=c.substr(1,1);switch(i){case "T":g.y-=f;break;case "B":g.y+=b.offsetHeight;break;case "C":g.y+=(b.offsetHeight-f)/2;break;case "t":g.y+=b.offsetHeight-f;break;case "b":break}switch(j){case "L":g.x-=h;break;case "R":g.x+= b.offsetWidth;break;case "C":g.x+=(b.offsetWidth-h)/2;break;case "l":g.x+=b.offsetWidth-h;break;case "r":break}g.width=h;g.height=f+40;e.monthsCombo.style.display="none";d(g);e.showAt(g.x,g.y)};Calendar.is_khtml?setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()",10):Calendar.continuation_for_the_fucking_khtml_browser()};a.setDateFormat=function(b){this.dateFormat=b};a.setTtDateFormat=function(b){this.ttDateFormat=b}; a.parseDate=function(b,c){if(!c)c=this.dateFormat;this.setDate(Date.parseDate(b,c))}; a.hideShowCovered=function(){function b(u){var r=u.style.visibility;r||(r=document.defaultView&&typeof document.defaultView.getComputedStyle=="function"?Calendar.is_khtml?"":document.defaultView.getComputedStyle(u,"").getPropertyValue("visibility"):u.currentStyle?u.currentStyle.visibility:"");return r}if(Calendar.is_ie||Calendar.is_opera){var c=new Array("applet","iframe","select"),d=this.element,e=Calendar.getAbsolutePos(d),g=e.x,h=d.offsetWidth+g,f=e.y;d=d.offsetHeight+f;for(var i=c.length;i>0;)for(var j= document.getElementsByTagName(c[--i]),k=null,l=j.length;l>0;){k=j[--l];e=Calendar.getAbsolutePos(k);var o=e.x,n=k.offsetWidth+o;e=e.y;var m=k.offsetHeight+e;if(this.hidden||o>h||n<g||e>d||m<f){if(!k.__msh_save_visibility)k.__msh_save_visibility=b(k);k.style.visibility=k.__msh_save_visibility}else{if(!k.__msh_save_visibility)k.__msh_save_visibility=b(k);k.style.visibility="hidden"}}}}; a._displayWeekdays=function(){for(var b=this.firstDayOfWeek,c=this.firstdayname,d=Calendar._TT.WEEKEND,e=0;e<7;++e){c.className="day name";var g=(e+b)%7;if(e){c.ttip=Calendar._TT.DAY_FIRST.replace("%s",Calendar._DN[g]);c.navtype=100;c.calendar=this;c.fdow=g}d.indexOf(g.toString())!=-1&&Calendar.addClass(c,"weekend");c.innerHTML=Calendar._SDN[(e+b)%7];c=c.nextSibling}};a._hideCombos=function(){this.monthsCombo.style.display="none";this.yearsCombo.style.display="none"}; a._dragStart=function(b){if(!this.dragging){this.dragging=true;var c;if(Calendar.is_ie){c=window.event.clientY+document.body.scrollTop;b=window.event.clientX+document.body.scrollLeft}else{c=b.clientY+window.scrollY;b=b.clientX+window.scrollX}var d=this.element.style;this.xOffs=b-parseInt(d.left);this.yOffs=c-parseInt(d.top);with(Calendar){addEvent(document,"mousemove",calDragIt);addEvent(document,"mouseup",calDragEnd)}}};Date._MD=new Array(31,28,31,30,31,30,31,31,30,31,30,31);Date.SECOND=1E3; Date.MINUTE=60*Date.SECOND;Date.HOUR=60*Date.MINUTE;Date.DAY=24*Date.HOUR;Date.WEEK=7*Date.DAY; Date.parseDate=function(b,c){var d=new Date,e=0,g=-1,h=0,f=b.split(/\W+/),i=c.match(/%./g),j=0,k=0,l=0,o=0;for(j=0;j<f.length;++j)if(f[j])switch(i[j]){case "%d":case "%e":h=parseInt(f[j],10);break;case "%m":g=parseInt(f[j],10)-1;break;case "%Y":case "%y":e=parseInt(f[j],10);e<100&&(e+=e>29?1900:2E3);break;case "%b":case "%B":for(k=0;k<12;++k)if(Calendar._MN[k].substr(0,f[j].length).toLowerCase()==f[j].toLowerCase()){g=k;break}break;case "%H":case "%I":case "%k":case "%l":l=parseInt(f[j],10);break; case "%P":case "%p":if(/pm/i.test(f[j])&&l<12)l+=12;else if(/am/i.test(f[j])&&l>=12)l-=12;break;case "%M":o=parseInt(f[j],10);break}if(isNaN(e))e=d.getFullYear();if(isNaN(g))g=d.getMonth();if(isNaN(h))h=d.getDate();if(isNaN(l))l=d.getHours();if(isNaN(o))o=d.getMinutes();if(e!=0&&g!=-1&&h!=0)return new Date(e,g,h,l,o,0);e=0;g=-1;for(j=h=0;j<f.length;++j)if(f[j].search(/[a-zA-Z]+/)!=-1){i=-1;for(k=0;k<12;++k)if(Calendar._MN[k].substr(0,f[j].length).toLowerCase()==f[j].toLowerCase()){i=k;break}if(i!= -1){if(g!=-1)h=g+1;g=i}}else if(parseInt(f[j],10)<=12&&g==-1)g=f[j]-1;else if(parseInt(f[j],10)>31&&e==0){e=parseInt(f[j],10);e<100&&(e+=e>29?1900:2E3)}else if(h==0)h=f[j];if(e==0)e=d.getFullYear();if(g!=-1&&h!=0)return new Date(e,g,h,l,o,0);return d};a=Date.prototype;a.getMonthDays=function(b){var c=this.getFullYear();if(typeof b=="undefined")b=this.getMonth();return 0==c%4&&(0!=c%100||0==c%400)&&b==1?29:Date._MD[b]}; a.getDayOfYear=function(){var b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0),c=new Date(this.getFullYear(),0,0,0,0,0);return Math.floor((b-c)/Date.DAY)};a.getWeekNumber=function(){var b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0),c=b.getDay();b.setDate(b.getDate()-(c+6)%7+3);c=b.valueOf();b.setMonth(0);b.setDate(4);return Math.round((c-b.valueOf())/6048E5)+1}; a.equalsTo=function(b){return this.getFullYear()==b.getFullYear()&&this.getMonth()==b.getMonth()&&this.getDate()==b.getDate()&&this.getHours()==b.getHours()&&this.getMinutes()==b.getMinutes()};a.setDateOnly=function(b){b=new Date(b);this.setDate(1);this.setFullYear(b.getFullYear());this.setMonth(b.getMonth());this.setDate(b.getDate())}; a.print=function(b){var c=this.getMonth(),d=this.getDate(),e=this.getFullYear(),g=this.getWeekNumber(),h=this.getDay(),f={},i=this.getHours(),j=i>=12,k=j?i-12:i,l=this.getDayOfYear();if(k==0)k=12;var o=this.getMinutes(),n=this.getSeconds();f["%a"]=Calendar._SDN[h];f["%A"]=Calendar._DN[h];f["%b"]=Calendar._SMN[c];f["%B"]=Calendar._MN[c];f["%C"]=1+Math.floor(e/100);f["%d"]=d<10?"0"+d:d;f["%e"]=d;f["%H"]=i<10?"0"+i:i;f["%I"]=k<10?"0"+k:k;f["%j"]=l<100?l<10?"00"+l:"0"+l:l;f["%k"]=i;f["%l"]=k;f["%m"]= c<9?"0"+(1+c):1+c;f["%M"]=o<10?"0"+o:o;f["%n"]="\n";f["%p"]=j?"PM":"AM";f["%P"]=j?"pm":"am";f["%s"]=Math.floor(this.getTime()/1E3);f["%S"]=n<10?"0"+n:n;f["%t"]="\t";f["%U"]=f["%W"]=f["%V"]=g<10?"0"+g:g;f["%u"]=h+1;f["%w"]=h;f["%y"]=(""+e).substr(2,2);f["%Y"]=e;f["%%"]="%";c=/%./g;if(!Calendar.is_ie5&&!Calendar.is_khtml)return b.replace(c,function(m){return f[m]||m});d=b.match(c);for(e=0;e<d.length;e++)if(g=f[d[e]]){c=new RegExp(d[e],"g");b=b.replace(c,g)}return b};a.__msh_oldSetFullYear=Date.prototype.setFullYear; a.setFullYear=function(b){var c=new Date(this);c.__msh_oldSetFullYear(b);c.getMonth()!=this.getMonth()&&this.setDate(28);this.__msh_oldSetFullYear(b)};window._dynarch_popupCalendar=null;Calendar._DN=new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag");Calendar._SDN=new Array("So","Mo","Di","Mi","Do","Fr","Sa","So");Calendar._MN=new Array("Januar","Februar","M\u00e4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"); Calendar._SMN=new Array("Jan","Feb","M\u00e4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");Calendar._TT={};Calendar._TT.INFO="\u00dcber dieses Kalendermodul"; Calendar._TT.ABOUT="DHTML Date/Time Selector\n(c) dynarch.com 2002-2005 / Author: Mihai Bazon\nFor latest version visit: http://www.dynarch.com/projects/calendar/\nDistributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details.\n\nDatum ausw\u00e4hlen:\n- Benutzen Sie die \u00ab, \u00bb Buttons um das Jahr zu w\u00e4hlen\n- Benutzen Sie die "+String.fromCharCode(8249)+", "+String.fromCharCode(8250)+" Buttons um den Monat zu w\u00e4hlen\n- F\u00fcr eine Schnellauswahl halten Sie die Maustaste \u00fcber diesen Buttons fest."; Calendar._TT.ABOUT_TIME="\n\nZeit ausw\u00e4hlen:\n- Klicken Sie auf die Teile der Uhrzeit, um diese zu erh\u00f6hen\n- oder klicken Sie mit festgehaltener Shift-Taste um diese zu verringern\n- oder klicken und festhalten f\u00fcr Schnellauswahl.";Calendar._TT.TOGGLE="Ersten Tag der Woche w\u00e4hlen";Calendar._TT.PREV_YEAR="Voriges Jahr";Calendar._TT.PREV_MONTH="Voriger Monat";Calendar._TT.GO_TODAY="Heute ausw\u00e4hlen";Calendar._TT.NEXT_MONTH="N\u00e4chster Monat";Calendar._TT.NEXT_YEAR="N\u00e4chstes Jahr"; Calendar._TT.SEL_DATE="Datum ausw\u00e4hlen";Calendar._TT.DRAG_TO_MOVE="Zum Bewegen festhalten";Calendar._TT.PART_TODAY=" (Heute)";Calendar._TT.DAY_FIRST="Woche beginnt mit %s ";Calendar._TT.WEEKEND="0,6";Calendar._TT.CLOSE="Schlie\u00dfen";Calendar._TT.TODAY="Heute";Calendar._TT.TIME_PART="(Shift-)Klick oder Festhalten und Ziehen um den Wert zu \u00e4ndern";Calendar._TT.DEF_DATE_FORMAT="%d.%m.%Y";Calendar._TT.TT_DATE_FORMAT="%a, %b %e";Calendar._TT.WK="Wo";Calendar._TT.TIME="Zeit:"; var jahrbutton="J"; Calendar.setup=function(b){function c(f,i){if(typeof b[f]=="undefined")b[f]=i}function d(f){var i=f.params,j=f.dateClicked||i.electric;if(j&&i.inputField){i.inputField.value=f.date.print(i.ifFormat);typeof i.inputField.onchange=="function"&&i.inputField.onchange()}if(j&&i.displayArea)i.displayArea.innerHTML=f.date.print(i.daFormat);j&&typeof i.onUpdate=="function"&&i.onUpdate(f);j&&i.flat&&typeof i.flatCallback=="function"&&i.flatCallback(f);j&&i.singleClick&&f.dateClicked&&f.callCloseHandler()}c("inputField", null);c("displayArea",null);c("button",null);c("eventName","click");c("ifFormat","%d-%m-%Y");c("daFormat","%a, %d. %b %Y");c("singleClick",true);c("disableFunc",null);c("dateStatusFunc",disallowDate);c("dateTooltipFunc",null);c("dateText",null);c("firstDay",1);c("align","Bl");c("range",[heutejahr,heutejahr+1]);c("weekNumbers",true);c("flat",null);c("flatCallback",null);c("onSelect",null);c("onClose",null);c("onUpdate",datecontrol);c("date",null);c("showsTime",false);c("timeFormat","24");c("electric", false);c("step",1);c("position",null);c("cache",false);c("showOthers",false);c("multiple",null);var e=["inputField","displayArea","button"];for(var g in e)if(typeof b[e[g]]=="string")b[e[g]]=document.getElementById(b[e[g]]);if(!(b.flat||b.multiple||b.inputField||b.displayArea||b.button)){alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");return false}if(b.flat!=null){if(typeof b.flat=="string")b.flat=document.getElementById(b.flat);if(!b.flat){alert("Calendar.setup:\n Flat specified but can't find parent."); return false}var h=new Calendar(b.firstDay,b.date,b.onSelect||d);h.setDateToolTipHandler(b.dateTooltipFunc);h.showsOtherMonths=b.showOthers;h.showsTime=b.showsTime;h.time24=b.timeFormat=="24";h.params=b;h.weekNumbers=b.weekNumbers;h.setRange(b.range[0],b.range[1]);h.setDateStatusHandler(b.dateStatusFunc);h.getDateText=b.dateText;b.ifFormat&&h.setDateFormat(b.ifFormat);b.inputField&&typeof b.inputField.value=="string"&&h.parseDate(b.inputField.value);h.create(b.flat);h.show();return false}(b.button|| b.displayArea||b.inputField)["on"+b.eventName]=function(){var f=b.inputField||b.displayArea,i=b.inputField?b.ifFormat:b.daFormat,j=false,k=window.calendar;if(f)b.date=Date.parseDate(f.value||f.innerHTML,i);if(k&&b.cache){b.date&&k.setDate(b.date);k.hide()}else{window.calendar=k=new Calendar(b.firstDay,b.date,b.onSelect||d,b.onClose||function(n){n.hide()});k.setDateToolTipHandler(b.dateTooltipFunc);k.showsTime=b.showsTime;k.time24=b.timeFormat=="24";k.weekNumbers=b.weekNumbers;j=true}if(b.multiple){k.multiple= {};for(f=b.multiple.length;--f>=0;){var l=b.multiple[f],o=l.print("%Y%m%d");k.multiple[o]=l}}k.showsOtherMonths=b.showOthers;k.yearStep=b.step;k.setRange(b.range[0],b.range[1]);k.params=b;k.setDateStatusHandler(b.dateStatusFunc);k.getDateText=b.dateText;k.setDateFormat(i);j&&k.create();k.refresh();b.position?k.showAt(b.position[0],b.position[1]):k.showAtElement(b.button||b.displayArea||b.inputField,b.align);return false};return h}; function disallowDate(b){b=b.print("%Y%m%d");if(b<heutewert)return true;if(b>=heuteplusjahrwert)return true;return false} function datecontrol(b){var c=document.getElementById("flug1"),d=c.value,e=document.getElementById("flug1da"),g=e.innerHTML,h=document.getElementById("flug2"),f=h.value,i=document.getElementById("flug2da"),j=i.innerHTML,k=d.substr(6)+d.substr(3,2)+d.substr(0,2),l=f.substr(6)+f.substr(3,2)+f.substr(0,2);if(c==b.params.inputField)if(k>=l){h.value=d;i.innerHTML=g}if(h==b.params.inputField)if(k>=l){c.value=f;e.innerHTML=j}} function datecontrolhotel(b){var c=document.getElementById("hotel1"),d=c.value,e=document.getElementById("hotel1da"),g=e.innerHTML,h=document.getElementById("hotel2"),f=h.value,i=document.getElementById("hotel2da"),j=i.innerHTML,k=d.substr(6)+d.substr(3,2)+d.substr(0,2),l=f.substr(6)+f.substr(3,2)+f.substr(0,2);if(c==b.params.inputField)if(k>=l){h.value=d;i.innerHTML=g}if(h==b.params.inputField)if(k>=l){c.value=f;e.innerHTML=j}} function datecontrolmietwagen(b){var c=document.getElementById("mietwagen1"),d=c.value,e=document.getElementById("mietwagen1da"),g=e.innerHTML,h=document.getElementById("mietwagen2"),f=h.value,i=document.getElementById("mietwagen2da"),j=i.innerHTML,k=d.substr(6)+d.substr(3,2)+d.substr(0,2),l=f.substr(6)+f.substr(3,2)+f.substr(0,2);if(c==b.params.inputField)if(k>=l){h.value=d;i.innerHTML=g}if(h==b.params.inputField)if(k>=l){c.value=f;e.innerHTML=j}};