var Prototype={Version:"1.4.0",ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)",emptyFunction:function(){},K:function(A){return A
}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)
}}};var Abstract=new Object();Object.extend=function(A,B){for(property in B){A[property]=B[property]
}return A};Object.inspect=function(A){try{if(A==undefined){return"undefined"}if(A==null){return"null"
}return A.inspect?A.inspect():A.toString()}catch(B){if(B instanceof RangeError){return"..."
}throw B}};Function.prototype.bind=function(){var A=this,C=$A(arguments),B=C.shift();
return function(){return A.apply(B,C.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(B){var A=this;
return function(C){return A.call(B,C||window.event)}};Object.extend(Number.prototype,{toColorPart:function(){var A=this.toString(16);
if(this<16){return"0"+A}return A},succ:function(){return this+1},times:function(A){$R(0,this,true).each(A);
return this}});var Try={these:function(){var C;for(var B=0;B<arguments.length;B++){var A=arguments[B];
try{C=A();break}catch(D){}}return C}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(B,A){this.callback=B;
this.frequency=A;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)
},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;
this.callback()}finally{this.currentlyExecuting=false}}}};function $(){var C=new Array();
for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string"){A=document.getElementById(A)
}if(arguments.length==1){return A}C.push(A)}return C}Object.extend(String.prototype,{stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")
},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")
},extractScripts:function(){var B=new RegExp(Prototype.ScriptFragment,"img");var A=new RegExp(Prototype.ScriptFragment,"im");
return(this.match(B)||[]).map(function(C){return(C.match(A)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(eval)
},escapeHTML:function(){var B=document.createElement("div");var A=document.createTextNode(this);
B.appendChild(A);return B.innerHTML},unescapeHTML:function(){var A=document.createElement("div");
A.innerHTML=this.stripTags();return A.childNodes[0]?A.childNodes[0].nodeValue:""},toQueryParams:function(){var A=this.match(/^\??(.*)$/)[1].split("&");
return A.inject({},function(D,B){var C=B.split("=");D[C[0]]=C[1];return D})},toArray:function(){return this.split("")
},camelize:function(){var D=this.split("-");if(D.length==1){return D[0]}var B=this.indexOf("-")==0?D[0].charAt(0).toUpperCase()+D[0].substring(1):D[0];
for(var C=1,A=D.length;C<A;C++){var E=D[C];B+=E.charAt(0).toUpperCase()+E.substring(1)
}return B},inspect:function(){return"'"+this.replace("\\","\\\\").replace("'","\\'")+"'"
}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();
var $continue=new Object();var Enumerable={each:function(B){var A=0;try{this._each(function(D){try{B(D,A++)
}catch(E){if(E!=$continue){throw E}}})}catch(C){if(C!=$break){throw C}}},all:function(B){var A=true;
this.each(function(D,C){A=A&&!!(B||Prototype.K)(D,C);if(!A){throw $break}});return A
},any:function(B){var A=true;this.each(function(D,C){if(A=!!(B||Prototype.K)(D,C)){throw $break
}});return A},collect:function(B){var A=[];this.each(function(D,C){A.push(B(D,C))
});return A},detect:function(B){var A;this.each(function(D,C){if(B(D,C)){A=D;throw $break
}});return A},findAll:function(B){var A=[];this.each(function(D,C){if(B(D,C)){A.push(D)
}});return A},grep:function(C,B){var A=[];this.each(function(F,E){var D=F.toString();
if(D.match(C)){A.push((B||Prototype.K)(F,E))}});return A},include:function(A){var B=false;
this.each(function(C){if(C==A){B=true;throw $break}});return B},inject:function(A,B){this.each(function(D,C){A=B(A,D,C)
});return A},invoke:function(B){var A=$A(arguments).slice(1);return this.collect(function(C){return C[B].apply(C,A)
})},max:function(B){var A;this.each(function(D,C){D=(B||Prototype.K)(D,C);if(D>=(A||D)){A=D
}});return A},min:function(B){var A;this.each(function(D,C){D=(B||Prototype.K)(D,C);
if(D<=(A||D)){A=D}});return A},partition:function(C){var B=[],A=[];this.each(function(E,D){((C||Prototype.K)(E,D)?B:A).push(E)
});return[B,A]},pluck:function(B){var A=[];this.each(function(D,C){A.push(D[B])});
return A},reject:function(B){var A=[];this.each(function(D,C){if(!B(D,C)){A.push(D)
}});return A},sortBy:function(A){return this.collect(function(C,B){return{value:C,criteria:A(C,B)}
}).sort(function(E,D){var C=E.criteria,B=D.criteria;return C<B?-1:C>B?1:0}).pluck("value")
},toArray:function(){return this.collect(Prototype.K)},zip:function(){var B=Prototype.K,A=$A(arguments);
if(typeof A.last()=="function"){B=A.pop()}var C=[this].concat(A).map($A);return this.map(function(E,D){B(E=C.pluck(D));
return E})},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"
}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});
var $A=Array.from=function(C){if(!C){return[]}if(C.toArray){return C.toArray()}else{var B=[];
for(var A=0;A<C.length;A++){B.push(C[A])}return B}};Object.extend(Array.prototype,Enumerable);
Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(B){for(var A=0;
A<this.length;A++){B(this[A])}},clear:function(){this.length=0;return this},first:function(){return this[0]
},last:function(){return this[this.length-1]},compact:function(){return this.select(function(A){return A!=undefined||A!=null
})},flatten:function(){return this.inject([],function(B,A){return B.concat(A.constructor==Array?A.flatten():[A])
})},without:function(){var A=$A(arguments);return this.select(function(B){return !A.include(B)
})},indexOf:function(A){for(var B=0;B<this.length;B++){if(this[B]==A){return B}}return -1
},reverse:function(A){return(A!==false?this:this.toArray())._reverse()},shift:function(){var A=this[0];
for(var B=0;B<this.length-1;B++){this[B]=this[B+1]}this.length--;return A},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"
}});var Hash={_each:function(A){for(key in this){var B=this[key];if(typeof B=="function"){continue
}var C=[key,B];C.key=key;C.value=B;A(C)}},keys:function(){return this.pluck("key")
},values:function(){return this.pluck("value")},merge:function(A){return $H(A).inject($H(this),function(B,C){B[C.key]=C.value;
return B})},toQueryString:function(){return this.map(function(A){return A.map(encodeURIComponent).join("=")
}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(A){return A.map(Object.inspect).join(": ")
}).join(", ")+"}>"}};function $H(A){var B=Object.extend({},A||{});Object.extend(B,Enumerable);
Object.extend(B,Hash);return B}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);
Object.extend(ObjectRange.prototype,{initialize:function(C,A,B){this.start=C;this.end=A;
this.exclusive=B},_each:function(A){var B=this.start;do{A(B);B=B.succ()}while(this.include(B))
},include:function(A){if(A<this.start){return false}if(this.exclusive){return A<this.end
}return A<=this.end}});var $R=function(C,A,B){return new ObjectRange(C,A,B)};var Ajax={getTransport:function(){return Try.these(function(){return new ActiveXObject("Msxml2.XMLHTTP")
},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest()
})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(A){this.responders._each(A)
},register:function(A){if(!this.include(A)){this.responders.push(A)}},unregister:function(A){this.responders=this.responders.without(A)
},dispatch:function(D,B,C,A){this.each(function(E){if(E[D]&&typeof E[D]=="function"){try{E[D].apply(E,[B,C,A])
}catch(F){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++
},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(A){this.options={method:"post",asynchronous:true,parameters:""};
Object.extend(this.options,A||{})},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300)
},responseIsFailure:function(){return !this.responseIsSuccess()}};Ajax.Request=Class.create();
Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(B,A){this.transport=Ajax.getTransport();
this.setOptions(A);this.request(B)},request:function(B){var C=this.options.parameters||"";
if(C.length>0){C+="&_="}try{this.url=B;if(this.options.method=="get"&&C.length>0){this.url+=(this.url.match(/\?/)?"&":"?")+C
}Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.options.method,this.url,this.options.asynchronous);
if(this.options.asynchronous){this.transport.onreadystatechange=this.onStateChange.bind(this);
setTimeout((function(){this.respondToReadyState(1)}).bind(this),10)}this.setRequestHeaders();
var A=this.options.postBody?this.options.postBody:C;this.transport.send(this.options.method=="post"?A:null)
}catch(D){this.dispatchException(D)}},setRequestHeaders:function(){var B=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version];
if(this.options.method=="post"){B.push("Content-type","application/x-www-form-urlencoded");
if(this.transport.overrideMimeType){B.push("Connection","close")}}if(this.options.requestHeaders){B.push.apply(B,this.options.requestHeaders)
}for(var A=0;A<B.length;A+=2){this.transport.setRequestHeader(B[A],B[A+1])}},onStateChange:function(){var A=this.transport.readyState;
if(A!=1){this.respondToReadyState(this.transport.readyState)}},header:function(A){try{return this.transport.getResponseHeader(A)
}catch(B){}},evalJSON:function(){try{return eval(this.header("X-JSON"))}catch(e){}},evalResponse:function(){try{return eval(this.transport.responseText)
}catch(e){this.dispatchException(e)}},respondToReadyState:function(A){var C=Ajax.Request.Events[A];
var E=this.transport,B=this.evalJSON();if(C=="Complete"){try{(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(E,B)
}catch(D){this.dispatchException(D)}if((this.header("Content-type")||"").match(/^text\/javascript/i)){this.evalResponse()
}}try{(this.options["on"+C]||Prototype.emptyFunction)(E,B);Ajax.Responders.dispatch("on"+C,this,E,B)
}catch(D){this.dispatchException(D)}if(C=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction
}},dispatchException:function(A){(this.options.onException||Prototype.emptyFunction)(this,A);
Ajax.Responders.dispatch("onException",this,A)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(A,C,B){this.containers={success:A.success?$(A.success):$(A),failure:A.failure?$(A.failure):(A.success?null:$(A))};
this.transport=Ajax.getTransport();this.setOptions(B);var D=this.options.onComplete||Prototype.emptyFunction;
this.options.onComplete=(function(F,E){this.updateContent();D(F,E)}).bind(this);this.request(C)
},updateContent:function(){var B=this.responseIsSuccess()?this.containers.success:this.containers.failure;
var A=this.transport.responseText;if(!this.options.evalScripts){A=A.stripScripts()
}if(B){if(this.options.insertion){new this.options.insertion(B,A)}else{Element.update(B,A)
}}if(this.responseIsSuccess()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10)
}}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(A,C,B){this.setOptions(B);
this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);
this.decay=(this.options.decay||1);this.updater={};this.container=A;this.url=C;this.start()
},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()
},stop:function(){this.updater.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)
},updateComplete:function(A){if(this.options.decay){this.decay=(A.responseText==this.lastText?this.decay*this.options.decay:1);
this.lastText=A.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)
},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)
}});document.getElementsByClassName=function(C,A){var B=($(A)||document.body).getElementsByTagName("*");
return $A(B).inject([],function(D,E){if(E.className.match(new RegExp("(^|\\s)"+C+"(\\s|$)"))){D.push(E)
}return D})};if(!window.Element){var Element=new Object()}Object.extend(Element,{visible:function(A){return $(A).style.display!="none"
},toggle:function(){for(var B=0;B<arguments.length;B++){var A=$(arguments[B]);Element[Element.visible(A)?"hide":"show"](A)
}},hide:function(){for(var B=0;B<arguments.length;B++){var A=$(arguments[B]);A.style.display="none"
}},show:function(){for(var B=0;B<arguments.length;B++){var A=$(arguments[B]);A.style.display=""
}},remove:function(A){A=$(A);A.parentNode.removeChild(A)},update:function(B,A){$(B).innerHTML=A.stripScripts();
setTimeout(function(){A.evalScripts()},10)},getHeight:function(A){A=$(A);return A.offsetHeight
},classNames:function(A){return new Element.ClassNames(A)},hasClassName:function(A,B){if(!(A=$(A))){return 
}return Element.classNames(A).include(B)},addClassName:function(A,B){if(!(A=$(A))){return 
}return Element.classNames(A).add(B)},removeClassName:function(A,B){if(!(A=$(A))){return 
}return Element.classNames(A).remove(B)},cleanWhitespace:function(B){B=$(B);for(var A=0;
A<B.childNodes.length;A++){var C=B.childNodes[A];if(C.nodeType==3&&!/\S/.test(C.nodeValue)){Element.remove(C)
}}},empty:function(A){return $(A).innerHTML.match(/^\s*$/)},scrollTo:function(B){B=$(B);
var A=B.x?B.x:B.offsetLeft,C=B.y?B.y:B.offsetTop;window.scrollTo(A,C)},getStyle:function(B,C){B=$(B);
var D=B.style[C.camelize()];if(!D){if(document.defaultView&&document.defaultView.getComputedStyle){var A=document.defaultView.getComputedStyle(B,null);
D=A?A.getPropertyValue(C):null}else{if(B.currentStyle){D=B.currentStyle[C.camelize()]
}}}if(window.opera&&["left","top","right","bottom"].include(C)){if(Element.getStyle(B,"position")=="static"){D="auto"
}}return D=="auto"?null:D},setStyle:function(A,B){A=$(A);for(name in B){A.style[name.camelize()]=B[name]
}},getDimensions:function(B){B=$(B);if(Element.getStyle(B,"display")!="none"){return{width:B.offsetWidth,height:B.offsetHeight}
}var A=B.style;var E=A.visibility;var C=A.position;A.visibility="hidden";A.position="absolute";
A.display="";var F=B.clientWidth;var D=B.clientHeight;A.display="none";A.position=C;
A.visibility=E;return{width:F,height:D}},makePositioned:function(A){A=$(A);var B=Element.getStyle(A,"position");
if(B=="static"||!B){A._madePositioned=true;A.style.position="relative";if(window.opera){A.style.top=0;
A.style.left=0}}},undoPositioned:function(A){A=$(A);if(A._madePositioned){A._madePositioned=undefined;
A.style.position=A.style.top=A.style.left=A.style.bottom=A.style.right=""}},makeClipping:function(A){A=$(A);
if(A._overflow){return }A._overflow=A.style.overflow;if((Element.getStyle(A,"overflow")||"visible")!="hidden"){A.style.overflow="hidden"
}},undoClipping:function(A){A=$(A);if(A._overflow){return }A.style.overflow=A._overflow;
A._overflow=undefined}});var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(A){this.adjacency=A
};Abstract.Insertion.prototype={initialize:function(A,B){this.element=$(A);this.content=B.stripScripts();
if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content)
}catch(C){if(this.element.tagName.toLowerCase()=="tbody"){this.insertContent(this.contentFromAnonymousTable())
}else{throw C}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange()
}this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){B.evalScripts()
},10)},contentFromAnonymousTable:function(){var A=document.createElement("div");A.innerHTML="<table><tbody>"+this.content+"</tbody></table>";
return $A(A.childNodes[0].childNodes[0].childNodes)}};var Insertion=new Object();
Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element)
},insertContent:function(A){A.each((function(B){this.element.parentNode.insertBefore(B,this.element)
}).bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);
this.range.collapse(true)},insertContent:function(A){A.reverse(false).each((function(B){this.element.insertBefore(B,this.element.firstChild)
}).bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);
this.range.collapse(this.element)},insertContent:function(A){A.each((function(B){this.element.appendChild(B)
}).bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element)
},insertContent:function(A){A.each((function(B){this.element.parentNode.insertBefore(B,this.element.nextSibling)
}).bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(A){this.element=$(A)
},_each:function(A){this.element.className.split(/\s+/).select(function(B){return B.length>0
})._each(A)},set:function(A){this.element.className=A},add:function(A){if(this.include(A)){return 
}this.set(this.toArray().concat(A).join(" "))},remove:function(A){if(!this.include(A)){return 
}this.set(this.select(function(B){return B!=A}).join(" "))},toString:function(){return this.toArray().join(" ")
}};Object.extend(Element.ClassNames.prototype,Enumerable);var Field={clear:function(){for(var A=0;
A<arguments.length;A++){$(arguments[A]).value=""}},focus:function(A){$(A).focus()
},present:function(){for(var A=0;A<arguments.length;A++){if($(arguments[A]).value==""){return false
}}return true},select:function(A){$(A).select()},activate:function(A){A=$(A);A.focus();
if(A.select){A.select()}}};var Form={serialize:function(D){var E=Form.getElements($(D));
var C=new Array();for(var B=0;B<E.length;B++){var A=Form.Element.serialize(E[B]);
if(A){C.push(A)}}return C.join("&")},getElements:function(B){B=$(B);var C=new Array();
for(tagName in Form.Element.Serializers){var D=B.getElementsByTagName(tagName);for(var A=0;
A<D.length;A++){C.push(D[A])}}return C},getInputs:function(F,C,D){F=$(F);var A=F.getElementsByTagName("input");
if(!C&&!D){return A}var G=new Array();for(var E=0;E<A.length;E++){var B=A[E];if((C&&B.type!=C)||(D&&B.name!=D)){continue
}G.push(B)}return G},disable:function(C){var D=Form.getElements(C);for(var B=0;B<D.length;
B++){var A=D[B];A.blur();A.disabled="true"}},enable:function(C){var D=Form.getElements(C);
for(var B=0;B<D.length;B++){var A=D[B];A.disabled=""}},findFirstElement:function(A){return Form.getElements(A).find(function(B){return B.type!="hidden"&&!B.disabled&&["input","select","textarea"].include(B.tagName.toLowerCase())
})},focusFirstElement:function(A){Field.activate(Form.findFirstElement(A))},reset:function(A){$(A).reset()
}};Form.Element={serialize:function(B){B=$(B);var D=B.tagName.toLowerCase();var C=Form.Element.Serializers[D](B);
if(C){var A=encodeURIComponent(C[0]);if(A.length==0){return }if(C[1].constructor!=Array){C[1]=[C[1]]
}return C[1].map(function(E){return A+"="+encodeURIComponent(E)}).join("&")}},getValue:function(A){A=$(A);
var C=A.tagName.toLowerCase();var B=Form.Element.Serializers[C](A);if(B){return B[1]
}}};Form.Element.Serializers={input:function(A){switch(A.type.toLowerCase()){case"submit":case"hidden":case"password":case"text":return Form.Element.Serializers.textarea(A);
case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(A)}return false
},inputSelector:function(A){if(A.checked){return[A.name,A.value]}},textarea:function(A){return[A.name,A.value]
},select:function(A){return Form.Element.Serializers[A.type=="select-one"?"selectOne":"selectMany"](A)
},selectOne:function(C){var D="",B,A=C.selectedIndex;if(A>=0){B=C.options[A];D=B.value;
if(!D&&!("value" in B)){D=B.text}}return[C.name,D]},selectMany:function(C){var D=new Array();
for(var B=0;B<C.length;B++){var A=C.options[B];if(A.selected){var E=A.value;if(!E&&!("value" in A)){E=A.text
}D.push(E)}}return[C.name,D]}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};
Abstract.TimedObserver.prototype={initialize:function(A,B,C){this.frequency=B;this.element=$(A);
this.callback=C;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)
},onTimerEvent:function(){var A=this.getValue();if(this.lastValue!=A){this.callback(this.element,A);
this.lastValue=A}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element)
}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element)
}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(A,B){this.element=$(A);
this.callback=B;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()
}else{this.registerCallback(this.element)}},onElementEvent:function(){var A=this.getValue();
if(this.lastValue!=A){this.callback(this.element,A);this.lastValue=A}},registerFormCallbacks:function(){var B=Form.getElements(this.element);
for(var A=0;A<B.length;A++){this.registerCallback(B[A])}},registerCallback:function(A){if(A.type){switch(A.type.toLowerCase()){case"checkbox":case"radio":Event.observe(A,"click",this.onElementEvent.bind(this));
break;case"password":case"text":case"textarea":case"select-one":case"select-multiple":Event.observe(A,"change",this.onElementEvent.bind(this));
break}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element)
}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element)
}});if(!window.Event){var Event=new Object()}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(A){return A.target||A.srcElement
},isLeftClick:function(A){return(((A.which)&&(A.which==1))||((A.button)&&(A.button==1)))
},pointerX:function(A){return A.pageX||(A.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))
},pointerY:function(A){return A.pageY||(A.clientY+(document.documentElement.scrollTop||document.body.scrollTop))
},stop:function(A){if(A.preventDefault){A.preventDefault();A.stopPropagation()}else{A.returnValue=false;
A.cancelBubble=true}},findElement:function(C,B){var A=Event.element(C);while(A.parentNode&&(!A.tagName||(A.tagName.toUpperCase()!=B.toUpperCase()))){A=A.parentNode
}return A},observers:false,_observeAndCache:function(D,C,B,A){if(!this.observers){this.observers=[]
}if(D.addEventListener){this.observers.push([D,C,B,A]);D.addEventListener(C,B,A)}else{if(D.attachEvent){this.observers.push([D,C,B,A]);
D.attachEvent("on"+C,B)}}},unloadCache:function(){if(!Event.observers){return }for(var A=0;
A<Event.observers.length;A++){Event.stopObserving.apply(this,Event.observers[A]);
Event.observers[A][0]=null}Event.observers=false},observe:function(D,C,B,A){var D=$(D);
A=A||false;if(C=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||D.attachEvent)){C="keydown"
}this._observeAndCache(D,C,B,A)},stopObserving:function(D,C,B,A){var D=$(D);A=A||false;
if(C=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||D.detachEvent)){C="keydown"
}if(D.removeEventListener){D.removeEventListener(C,B,A)}else{if(D.detachEvent){D.detachEvent("on"+C,B)
}}}});try{Event.observe(window,"unload",Event.unloadCache,false)}catch(e){}var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0
},realOffset:function(B){var A=0,C=0;do{A+=B.scrollTop||0;C+=B.scrollLeft||0;B=B.parentNode
}while(B);return[C,A]},cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;
C+=B.offsetLeft||0;B=B.offsetParent}while(B);return[C,A]},positionedOffset:function(B){var A=0,C=0;
do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent;if(B){p=Element.getStyle(B,"position");
if(p=="relative"||p=="absolute"){break}}}while(B);return[C,A]},offsetParent:function(A){if(A.offsetParent){return A.offsetParent
}if(A==document.body){return A}while((A=A.parentNode)&&A!=document.body){if(Element.getStyle(A,"position")!="static"){return A
}}return document.body},within:function(B,A,C){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(B,A,C)
}this.xcomp=A;this.ycomp=C;this.offset=this.cumulativeOffset(B);return(C>=this.offset[1]&&C<this.offset[1]+B.offsetHeight&&A>=this.offset[0]&&A<this.offset[0]+B.offsetWidth)
},withinIncludingScrolloffsets:function(B,A,D){var C=this.realOffset(B);this.xcomp=A+C[0]-this.deltaX;
this.ycomp=D+C[1]-this.deltaY;this.offset=this.cumulativeOffset(B);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+B.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+B.offsetWidth)
},overlap:function(B,A){if(!B){return 0}if(B=="vertical"){return((this.offset[1]+A.offsetHeight)-this.ycomp)/A.offsetHeight
}if(B=="horizontal"){return((this.offset[0]+A.offsetWidth)-this.xcomp)/A.offsetWidth
}},clone:function(B,C){B=$(B);C=$(C);C.style.position="absolute";var A=this.cumulativeOffset(B);
C.style.top=A[1]+"px";C.style.left=A[0]+"px";C.style.width=B.offsetWidth+"px";C.style.height=B.offsetHeight+"px"
},page:function(D){var A=0,C=0;var B=D;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body){if(Element.getStyle(B,"position")=="absolute"){break
}}}while(B=B.offsetParent);B=D;do{A-=B.scrollTop||0;C-=B.scrollLeft||0}while(B=B.parentNode);
return[C,A]},clone:function(C,E){var A=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
C=$(C);var D=Position.page(C);E=$(E);var F=[0,0];var B=null;if(Element.getStyle(E,"position")=="absolute"){B=Position.offsetParent(E);
F=Position.page(B)}if(B==document.body){F[0]-=document.body.offsetLeft;F[1]-=document.body.offsetTop
}if(A.setLeft){E.style.left=(D[0]-F[0]+A.offsetLeft)+"px"}if(A.setTop){E.style.top=(D[1]-F[1]+A.offsetTop)+"px"
}if(A.setWidth){E.style.width=C.offsetWidth+"px"}if(A.setHeight){E.style.height=C.offsetHeight+"px"
}},absolutize:function(B){B=$(B);if(B.style.position=="absolute"){return }Position.prepare();
var D=Position.positionedOffset(B);var F=D[1];var E=D[0];var C=B.clientWidth;var A=B.clientHeight;
B._originalLeft=E-parseFloat(B.style.left||0);B._originalTop=F-parseFloat(B.style.top||0);
B._originalWidth=B.style.width;B._originalHeight=B.style.height;B.style.position="absolute";
B.style.top=F+"px";B.style.left=E+"px";B.style.width=C+"px";B.style.height=A+"px"
},relativize:function(A){A=$(A);if(A.style.position=="relative"){return }Position.prepare();
A.style.position="relative";var C=parseFloat(A.style.top||0)-(A._originalTop||0);
var B=parseFloat(A.style.left||0)-(A._originalLeft||0);A.style.top=C+"px";A.style.left=B+"px";
A.style.height=A._originalHeight;A.style.width=A._originalWidth}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(B){var A=0,C=0;
do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body){if(Element.getStyle(B,"position")=="absolute"){break
}}B=B.offsetParent}while(B);return[C,A]}}Date.$VERSION=1.02;Date.LZ=function(A){return(A<0||A>9?"":"0")+A
};Date.monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
Date.monthAbbreviations=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Date.dayNames=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
Date.dayAbbreviations=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");Date.preferAmericanFormat=true;
if(!Date.prototype.getFullYear){Date.prototype.getFullYear=function(){var A=this.getYear();
return(A<1900?A+1900:A)}}Date.parseString=function(b,T){if(typeof (T)=="undefined"||T==null||T==""){var J=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d","MMM-d","d-MMM");
var B=new Array("M/d/y","M-d-y","M.d.y","M/d","M-d");var I=new Array("d/M/y","d-M-y","d.M.y","d/M","d-M");
var C=new Array(J,Date.preferAmericanFormat?B:I,Date.preferAmericanFormat?I:B);for(var R=0;
R<C.length;R++){var P=C[R];for(var Q=0;Q<P.length;Q++){var U=Date.parseString(b,P[Q]);
if(U!=null){return U}}}return null}this.isInteger=function(d){for(var c=0;c<d.length;
c++){if("1234567890".indexOf(d.charAt(c))==-1){return false}}return true};this.getInt=function(j,g,h,f){for(var c=f;
c>=h;c--){var d=j.substring(g,g+c);if(d.length<h){return null}if(this.isInteger(d)){return d
}}return null};b=b+"";T=T+"";var Z=0;var M=0;var W="";var E="";var Y="";var G,F;var H=new Date().getFullYear();
var X=1;var V=1;var A=0;var S=0;var O=0;var L="";while(M<T.length){W=T.charAt(M);
E="";while((T.charAt(M)==W)&&(M<T.length)){E+=T.charAt(M++)}if(E=="yyyy"||E=="yy"||E=="y"){if(E=="yyyy"){G=4;
F=4}if(E=="yy"){G=2;F=2}if(E=="y"){G=2;F=4}H=this.getInt(b,Z,G,F);if(H==null){return null
}Z+=H.length;if(H.length==2){if(H>70){H=1900+(H-0)}else{H=2000+(H-0)}}}else{if(E=="MMM"||E=="NNN"){X=0;
var K=(E=="MMM"?(Date.monthNames.concat(Date.monthAbbreviations)):Date.monthAbbreviations);
for(var R=0;R<K.length;R++){var D=K[R];if(b.substring(Z,Z+D.length).toLowerCase()==D.toLowerCase()){X=(R%12)+1;
Z+=D.length;break}}if((X<1)||(X>12)){return null}}else{if(E=="EE"||E=="E"){var K=(E=="EE"?Date.dayNames:Date.dayAbbreviations);
for(var R=0;R<K.length;R++){var N=K[R];if(b.substring(Z,Z+N.length).toLowerCase()==N.toLowerCase()){Z+=N.length;
break}}}else{if(E=="MM"||E=="M"){X=this.getInt(b,Z,E.length,2);if(X==null||(X<1)||(X>12)){return null
}Z+=X.length}else{if(E=="dd"||E=="d"){V=this.getInt(b,Z,E.length,2);if(V==null||(V<1)||(V>31)){return null
}Z+=V.length}else{if(E=="hh"||E=="h"){A=this.getInt(b,Z,E.length,2);if(A==null||(A<1)||(A>12)){return null
}Z+=A.length}else{if(E=="HH"||E=="H"){A=this.getInt(b,Z,E.length,2);if(A==null||(A<0)||(A>23)){return null
}Z+=A.length}else{if(E=="KK"||E=="K"){A=this.getInt(b,Z,E.length,2);if(A==null||(A<0)||(A>11)){return null
}Z+=A.length;A++}else{if(E=="kk"||E=="k"){A=this.getInt(b,Z,E.length,2);if(A==null||(A<1)||(A>24)){return null
}Z+=A.length;A--}else{if(E=="mm"||E=="m"){S=this.getInt(b,Z,E.length,2);if(S==null||(S<0)||(S>59)){return null
}Z+=S.length}else{if(E=="ss"||E=="s"){O=this.getInt(b,Z,E.length,2);if(O==null||(O<0)||(O>59)){return null
}Z+=O.length}else{if(E=="a"){if(b.substring(Z,Z+2).toLowerCase()=="am"){L="AM"}else{if(b.substring(Z,Z+2).toLowerCase()=="pm"){L="PM"
}else{return null}}Z+=2}else{if(b.substring(Z,Z+E.length)!=E){return null}else{Z+=E.length
}}}}}}}}}}}}}}if(Z!=b.length){return null}if(X==2){if(((H%4==0)&&(H%100!=0))||(H%400==0)){if(V>29){return null
}}else{if(V>28){return null}}}if((X==4)||(X==6)||(X==9)||(X==11)){if(V>30){return null
}}if(A<12&&L=="PM"){A=A-0+12}else{if(A>11&&L=="AM"){A-=12}}return new Date(H,X-1,V,A,S,O)
};Date.isValid=function(B,A){return(Date.parseString(B,A)!=null)};Date.prototype.isBefore=function(A){if(A==null){return false
}return(this.getTime()<A.getTime())};Date.prototype.isAfter=function(A){if(A==null){return false
}return(this.getTime()>A.getTime())};Date.prototype.equals=function(A){if(A==null){return false
}return(this.getTime()==A.getTime())};Date.prototype.equalsIgnoreTime=function(C){if(C==null){return false
}var B=new Date(this.getTime()).clearTime();var A=new Date(C.getTime()).clearTime();
return(B.getTime()==A.getTime())};Date.prototype.format=function(b){b=b+"";var J="";
var T=0;var g="";var D="";var I=this.getYear()+"";var F=this.getMonth()+1;var f=this.getDate();
var N=this.getDay();var L=this.getHours();var V=this.getMinutes();var P=this.getSeconds();
var R,S,B,Q,j,C,Z,Y,W,O,n,L,l,G,A,X;var U=new Object();if(I.length<4){I=""+(+I+1900)
}U.y=""+I;U.yyyy=I;U.yy=I.substring(2,4);U.M=F;U.MM=Date.LZ(F);U.MMM=Date.monthNames[F-1];
U.NNN=Date.monthAbbreviations[F-1];U.d=f;U.dd=Date.LZ(f);U.E=Date.dayAbbreviations[N];
U.EE=Date.dayNames[N];U.H=L;U.HH=Date.LZ(L);if(L==0){U.h=12}else{if(L>12){U.h=L-12
}else{U.h=L}}U.hh=Date.LZ(U.h);U.K=U.h-1;U.k=U.H+1;U.KK=Date.LZ(U.K);U.kk=Date.LZ(U.k);
if(L>11){U.a="PM"}else{U.a="AM"}U.m=V;U.mm=Date.LZ(V);U.s=P;U.ss=Date.LZ(P);while(T<b.length){g=b.charAt(T);
D="";while((b.charAt(T)==g)&&(T<b.length)){D+=b.charAt(T++)}if(typeof (U[D])!="undefined"){J=J+U[D]
}else{J=J+D}}return J};Date.prototype.getDayName=function(){return Date.dayNames[this.getDay()]
};Date.prototype.getDayAbbreviation=function(){return Date.dayAbbreviations[this.getDay()]
};Date.prototype.getMonthName=function(){return Date.monthNames[this.getMonth()]};
Date.prototype.getMonthAbbreviation=function(){return Date.monthAbbreviations[this.getMonth()]
};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);
this.setMilliseconds(0);return this};Date.prototype.add=function(A,C){if(typeof (A)=="undefined"||A==null||typeof (C)=="undefined"||C==null){return this
}C=+C;if(A=="y"){this.setFullYear(this.getFullYear()+C)}else{if(A=="M"){this.setMonth(this.getMonth()+C)
}else{if(A=="d"){this.setDate(this.getDate()+C)}else{if(A=="w"){var B=(C>0)?1:-1;
while(C!=0){this.add("d",B);while(this.getDay()==0||this.getDay()==6){this.add("d",B)
}C-=B}}else{if(A=="h"){this.setHours(this.getHours()+C)}else{if(A=="m"){this.setMinutes(this.getMinutes()+C)
}else{if(A=="s"){this.setSeconds(this.getSeconds()+C)}}}}}}}return this};var Novajax={Version:"1.0",Build:"14",require:function(A){document.write('<script type="text/javascript" src="'+A+'"><\/script>')
},voidString:"javascript:void(0)",load:function(){var A=false;if((typeof Prototype=="undefined")||(typeof Element=="undefined")||(typeof Element.Methods=="undefined")||parseFloat(Prototype.Version.split(".")[0]+"."+Prototype.Version.split(".")[1])<1.5){throw ("novajax requires the Prototype JavaScript framework >= 1.5.0")
}$A(document.getElementsByTagName("script")).findAll(function(B){return(B.src&&B.src.match(/novajax\.js(\?.*)?$/))
}).each(function(C){var D=C.src.replace(/novajax\.js(\?.*)?$/,"");var B=C.src.match(/\?.*load=([a-z,A-Z]*)/);
(B?B[1]:"Logger,Cookies,SortableTables,Tabsheets").split(",").each(function(E){Novajax.require(D+E+".js");
A=true})});if(!A){throw ("extensions for novajax.js could not loaded.")}}};Novajax.Validator={minLength:function(A){return{validate:function(B){return B!=null&&B.length>=A
},getText:function(){return"Mindestlänge: "+A}}},isInteger:function(){return{validate:function(A){return isNaN(parseInt(A))==false
},getText:function(){return"Muss eine Zahl sein."}}},isValidDate:function(A){return{format:A,validate:function(B){return B.isValidDate(this.format)
},getText:function(){return"Format: "+this.format}}}};Object.extendInherit=function(A,C){A.superclass={};
for(var B in C){if(A[B]){A.superclass[B]=A[B]}A[B]=C[B]}return A};var $D=function(A){return(A?A.ownerDocument:null)||document
};Date.dayAbbreviations=new Array("So","Mo","Di","Mi","Do","Fr","Sa");Date.dayNames=new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
Date.prototype.getWeek=function(D){D=Number(D)==NaN?0:D;var C=new Date(this.getFullYear(),0,1);
var A=C.getDay()-D;A=(A>=0?A:A+7);var B=Math.floor((this.getTime()-C.getTime()-(this.getTimezoneOffset()-C.getTimezoneOffset())*60000)/86400000)+1;
var E;if(A<4){E=Math.floor((B+A-1)/7)+1;if(E>52){nYear=new Date(this.getFullYear()+1,0,1);
nday=nYear.getDay()-D;nday=nday>=0?nday:nday+7;E=nday<4?1:53}}else{E=Math.floor((B+A-1)/7)
}return E};Date.prototype.formatSpoken=function(E,B){B=B||E;var A=(new Date()).clearTime();
var D=(new Date(this)).clearTime();var C=D.diff("d",A);if(C==0){return"Heute"}if(C==-1){return"Gestern"
}if(C>-7&&A.getWeek(1)==D.getWeek(1)){return D.getDayName()}if(A.getYear()==D.getYear()){return this.format(E)
}else{return this.format(B)}};Date.prototype.diff=function(A,B){if(typeof (A)=="undefined"||A==null||B==null){return 0
}if(A=="y"){return this.getFullYear()-B.getFullYear()}else{if(A=="M"){return this.getMonth()-B.getMonth()
}else{if(A=="d"){return(this-B)/1000/60/60/24}else{if(A=="h"){return(this-B)/1000/60/60;
return this.getHours()-B.getHours()}else{if(A=="m"){return(this-B)/1000/60;return this.getMinutes()-B.getMinutes()
}else{if(A=="s"){return(this-B)/1000}}}}}}return 0};String.prototype.parseDate=function(A){return Date.parseString(this,A)
};String.prototype.isValidDate=function(A){return this.parseDate(A)!=null};Object.prototype.addEventListener=function(B,A){if(!this.__observers__){this.__observers__=[]
}if(!this.__observers__[B]){this.__observers__[B]=[]}this.__observers__[B].push(A)
};Object.prototype.fireEvent=function(A,B){if(!this.__observers__){return }if(!this.__observers__[A]){this.__observers__[A]=[]
}this.__observers__[A].each(function(C){C(B)})};ElementUserObjects=Class.create();
ElementUserObjects.prototype={id:"",initialize:function(){this.id="a"+new Date().getMilliseconds()
},set:function(B,A){B[this.id]=A},get:function(A){return A[this.id]},destroy:function(A){var C=this.get(A);
if(C&&typeof (C.destroy)=="function"){C.destroy()}try{delete A[this.id]}catch(B){A[this.id]==null
}}};Form.Element.Unserializers={input:function(A,B){A.value=B},textarea:function(A,B){A.value=B
},select:function(A,B){return Form.Element.Unserializers[A.type=="select-one"?"selectOne":"selectMany"](A,B)
},selectOne:function(C,D){for(var B=0;B<C.length;B++){var A=C.options[B];if(A.value==D){A.selected=true;
return }}},selectMany:function(D,E){for(var C=0;C<D.length;C++){var B=D.options[C];
for(var A=0;A<E.length;A++){if(B.value==E[C]){B.selected=true;return }}}}};Object.extend(Form.Element,{setValue:function(A,B){A=$(A);
var C=A.tagName.toLowerCase();if(!Form.Element.Unserializers[C]){alert('"'+C+'" ist nicht in Form.Element.Unserializers implementiert.')
}else{Form.Element.Unserializers[C](A,B)}}});DOMExtensions={eachChildNode:function(C,B){for(var A=C.firstChild;
A;A=A.nextSibling){B(A)}},eachElementNode:function(C,B){for(var A=C.firstChild;A;
A=A.nextSibling){if(A.nodeType==1){B(A)}}},getFirstElementNode:function(B){for(var A=B.firstChild;
A;A=A.nextSibling){if(A.nodeType==1){return A}}}};var Base64={_64s:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",encode:function(A){var C;
var E;var B=0;var D="";while(A.length>=B+3){C=(A.charCodeAt(B++)&255)<<16|(A.charCodeAt(B++)&255)<<8|A.charCodeAt(B++)&255;
D+=Base64._64s.charAt((C&16515072)>>18)+Base64._64s.charAt((C&258048)>>12)+Base64._64s.charAt((C&4032)>>6)+Base64._64s.charAt((C&63))
}if(A.length-B>0&&A.length-B<3){E=Boolean(A.length-B-1);C=((A.charCodeAt(B++)&255)<<16)|(E?(A.charCodeAt(B)&255)<<8:0);
D+=Base64._64s.charAt((C&16515072)>>18)+Base64._64s.charAt((C&258048)>>12)+(E?Base64._64s.charAt((C&4032)>>6):"=")+"="
}return(D)},decode:function(A){var D;var B="";for(var C=0;C<A.length;C+=4){D=(Base64._64s.indexOf(A.charAt(C))&255)<<18|(Base64._64s.indexOf(A.charAt(C+1))&255)<<12|(Base64._64s.indexOf(A.charAt(C+2))&255)<<6|Base64._64s.indexOf(A.charAt(C+3))&255;
B+=String.fromCharCode((D&16711680)>>16,(D&65280)>>8,D&255)}if(A.charCodeAt(C-2)==61){return(B.substring(0,B.length-2))
}else{if(A.charCodeAt(C-1)==61){return(B.substring(0,B.length-1))}else{return(B)}}}};
Element.ResizeObserver=Class.create();Element.ResizeObserver.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Element.getDimensions(this.element)
},onTimerEvent:function(){var A=this.getValue();if(this.lastValue.width!=A.width||this.lastValue.height!=A.height){this.callback(this.element,A);
this.lastValue=A}}});if(!Window){var Window={}}Window=Object.extend(Window,{getDimensions:function(){if(typeof (window.innerWidth)=="number"){return{width:window.innerWidth,height:window.innerHeight}
}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}
}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){return{width:document.body.clientWidth,height:document.body.clientHeight}
}}}throw"size of window could not determined"}});Window.ResizeObserver=Class.create();
Window.ResizeObserver.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Window.getDimensions()
},onTimerEvent:function(){var A=this.getValue();if(this.lastValue.width!=A.width||this.lastValue.height!=A.height){this.callback(this.element,A);
this.lastValue=A}}});Novax.prototype=Novax;function Novax(){}Novax.extractWindowSize=function(A){if(A.innerHeight!=undefined&&A.innerWidth!=undefined){return[A.innerWidth,A.innerHeight]
}else{return[A.document.body.offsetWidth,A.document.body.offsetHeight]}};Novax.printMapview=function(B){var D=575;
var A=610;var E=1;var C="width: "+(D*E)+"px; height: "+(A*E)+"px";C="";B.open();if(_NOVAX_IS_SVG){B.write('<iframe id="mapViewIframe" src="'+(_NOVAX_IS_SVG?"mapview.svg":"mapview.html")+'" style=" '+C+'"></iframe>')
}else{B.write('<iframe id="mapViewIframe" src="'+("mapview.html")+'" style=" '+C+'"></iframe>')
}B.close()};Novax.resetMapViewSize=function(C,B){var D=575;var A=610;var C=Novax.extractWindowSize(window);
var E=(C.getWidth()/2)/D;B.style.width=D*E;B.style.height=A*E};Novax.resizeMapView=function(){var A=Novax.extractWindowSize(window);
Novax.resetMapViewSize(A,document.getElementById("mapViewIframe"))};Novax.alertProperties=function(B){var C=new Array();
for(var A in B){C.push(A+": "+typeof (B[A])+" - "+B[A])}alert(C.join("\n"))};Novax.setTimeout=function(D,A,C,B){B=B||[];
return window.setTimeout(function(){A.apply(D,B)},C)};Novax.isEmptyString=function(A){return A==null||A.length==0
};Novax.MAX_DATETIME=2177362800000;Novax.MIN_DATETIME=0;Novax.PARAMETERS={};var q=location.search;
if(q.length>1){q=q.substring(1,q.length);var kvps=q.split("&");for(var i=0;i<kvps.length;
i++){var kv=kvps[i].split("=");Novax.PARAMETERS["__"+kv[0]+"__"]=kv[1]}}q=null;Novax.getParameter=function(A){return Novax.PARAMETERS["__"+A+"__"]
};var _NOVAX_IS_SVG=false&&window.ActiveXObject&&(new ActiveXObject("Adobe.SVGCtl")!=null);
var _NOVAX_IS_IE=navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&document.all;
function NovaxHtmlTools(){}NovaxHtmlTools.toogleVisible=function(B,C){var A=B.style.display=="none";
B.style.display=(A?"block":"none");if(!C||Novax.isEmptyString(C.title)){return }if(A){C.title=C.title.replace("ein","aus")
}else{C.title=C.title.replace("aus","ein")}};NovaxHtmlTools.getNextHeaderValue=function(A){if(A==null){return 
}for(var B=A.firstChild;B;B=B.nextSibling){if(B.nodeName.match(/^H[1-6]/i)){return B.firstChild?B.firstChild.nodeValue:"---"+B.nodeName+" ohne wert!---"
}}return"Kein Header!"};NovaxHtmlTools.getNextElementWithClassName=function(A,C){if(A==null){return 
}for(var B=A.firstChild;B;B=B.nextSibling){if(B.className&&B.className.match(C)){return B
}}throw new Error('kein knoten mit der Klasse "'+C+'" gefunden.')};function NovaxStyleTools(){}NovaxStyleTools.getCurrentStyle=function(B,A){if(B.ownerDocument.defaultView){return B.ownerDocument.defaultView.getComputedStyle(B,null).getPropertyValue(A)
}else{return B.currentStyle[NovaxStyleTools._transform(A)]}return null};NovaxStyleTools.getCurrentIntValue=function(B,A){return parseInt(NovaxStyleTools.getCurrentStyle(B,A).replace("px",""))
};NovaxStyleTools.setStyle=function(C,B,A){try{C.style[NovaxStyleTools._transform(B)]=A
}catch(D){top.LOGGER.debug("error "+B+"="+A)}};NovaxStyleTools.addToValue=function(C,A,D){var B=NovaxStyleTools.getCurrentIntValue(C,A);
NovaxStyleTools.setStyle(C,A,(B+D)+"px")};NovaxStyleTools._transform=function(A){return A.replace(/-\D/gi,function(B){return B.charAt(B.length-1).toUpperCase()
})};NovaxStyleTools.setCursor=function(A,B){A.style.cursor=B};var EVENTS_PROPERTY="____EVENTS____";
function NovaxEventListener(D,A,C,B){this.object=D;this.eventName=A;this.callbackFunction=C;
this.id=NovaxEventListener.NEXT_ID++;this.isDomEvent=B||false;NovaxEventListener.getMap().put(this.id,this);
if(this.isDomEvent){if(!D[EVENTS_PROPERTY]){D[EVENTS_PROPERTY]=new HashMap()}D[EVENTS_PROPERTY].put(this.id,this)
}}NovaxEventListener.NEXT_ID=1;NovaxEventListener.getMap=function(){if(!NovaxEventListener.MAP){NovaxEventListener.MAP=new HashMap()
}return NovaxEventListener.MAP};NovaxEventListener.prototype.unregister=function(){if(!this.id){return 
}NovaxEventListener.getMap().remove(this.id);if(this.isDomEvent&&this.object[EVENTS_PROPERTY]){this.object[EVENTS_PROPERTY].remove(this.id)
}this.object=null;this.callbackFunction=null};NovaxEventListener.prototype.detach=function(){if(this.isDomEvent){NovaxEventHelpers.removeJSListener(this)
}else{NovaxEventHelpers.removeListener(this)}};function NovaxEventHelpers(){}NovaxEventHelpers.createEventAdapter=function(C,B,A){return function(D){if(!D){D=window.event
}if(D&&!D.target){D.target=D.srcElement}B.call(C,D,A)}};NovaxEventHelpers.createCallbackAdapter=function(B,A){return function(){return A.apply(B,arguments)
}};NovaxEventHelpers.bindDom=function(D,B,E,C){var A=NovaxEventHelpers.createEventAdapter(E,C,D);
return NovaxEventHelpers.addJSListener(D,B,A)};NovaxEventHelpers.bind=function(D,B,E,C){var A=NovaxEventHelpers.createCallbackAdapter(E,C);
return NovaxEventHelpers.addObserver(D,B,A)};NovaxEventHelpers.addJSListener=function(D,B,C){if(!D){return null
}if(D.addEventListener){D.addEventListener(B,C,false);return new NovaxEventListener(D,B,C,true)
}else{if(D.attachEvent){var A=NovaxEventHelpers.createCallbackAdapter(D,C,true);D.attachEvent("on"+B,A);
return new NovaxEventListener(D,B,A)}else{D["on"+B]=C;return new NovaxEventListener(D,B,C,true)
}}};NovaxEventHelpers.removeJSListener=function(A){var B=A.object;if(B.removeEventListener){B.removeEventListener(A.eventName,A.callbackFunction,false)
}else{if(B.detachEvent){B.detachEvent("on"+A.eventName,A.callbackFunction)}else{B["on"+a.eventName]=null
}}A.unregister()};NovaxEventHelpers._getObsProp=function(A){return"____"+A+"__"};
NovaxEventHelpers.addObserver=function(D,B,C){var A=NovaxEventHelpers._getObsProp(B);
if(D[A]){D[A].push(C)}else{D[A]=[C]}return new NovaxEventListener(D,A,C,false)};NovaxEventHelpers.removeObserver=function(A){var B=A.object[A.eventName];
B.remove(A.callbackFunction);A.unregister()};NovaxEventHelpers.clearObservers=function(C,B){var A=NovaxEventHelpers._getObsProp(B);
C[A]=null};NovaxEventHelpers.notify=function(D,B){var A=NovaxEventHelpers._getObsProp(B);
var F=D[A];if(!F||F.length==0){return }var C=[];for(var E=2;E<arguments.length;E++){C.push(arguments[E])
}F.map(function(G){if(G){try{G.apply(D,C)}catch(H){top.LOGGER.debug(H.message)}}})
};function Point(A,B){this.x=A;this.y=B}Point.prototype.toString=function(){return"[object Point] x="+this.x+" y="+this.y
};function NovaxDragger(B,C,E,D,A){this.moveConstraints=[];this.src=B;this.dragPoint=new Point(0,0);
this.dragging=false;this.clickStartPos=new Point(0,0);this.doNotMove=A||false;this.cursor="move";
this.moveTo(E?E:B.offsetLeft,D?D:B.offsetTop);this.mouseDownHandler=NovaxEventHelpers.createEventAdapter(this,this.onMouseDown);
this.mouseMoveHandler=NovaxEventHelpers.createEventAdapter(this,this.onMouseMove);
this.mouseUpHandler=NovaxEventHelpers.createEventAdapter(this,this.onMouseUp);NovaxEventHelpers.bindDom(window,"mouseout",this,this.onWindowMouseOut);
this.eventSrc=this.src.setCapture?[this.src]:C;NovaxEventHelpers.addJSListener(this.src,"mousedown",this.mouseDownHandler)
}NovaxDragger.prototype.addMoveConstraint=function(A){this.moveConstraints.push(A)
};NovaxDragger.prototype.moveTo=function(D,C){D=Math.round(D);C=Math.round(C);for(var A=0;
A<this.moveConstraints.length;A++){var B=this.moveConstraints[A];D=B.getLeft(this.left,D);
C=B.getTop(this.top,C)}if(this.left!=D||this.top!=C){var E=new Point(D-this.left,C-this.top);
this.left=D;this.top=C;if(!this.doNotMove){this.src.style.left=this.left+"px";this.src.style.top=this.top+"px"
}NovaxEventHelpers.notify(this,"move",E)}};NovaxDragger.prototype.onMouseDown=function(A){NovaxEventHelpers.notify(this,"mousedown",A);
if(A.cancelDrag){return }var B=A.button==0||A.button==1;if(!B){return false}this.dragPoint.x=A.clientX;
this.dragPoint.y=A.clientY;this.dragging=true;this.mouseMoveListener=[];this.mouseUpListener=[];
this.eventSrc.map(NovaxEventHelpers.createCallbackAdapter(this,function(C){this.mouseMoveListener.push(NovaxEventHelpers.addJSListener(C,"mousemove",this.mouseMoveHandler));
this.mouseUpListener.push(NovaxEventHelpers.addJSListener(C,"mouseup",this.mouseUpHandler))
}));if(this.src.setCapture){this.src.setCapture()}this.clickStartPos.x=A.clientX;
this.clickStartPos.y=A.clientY;NovaxEventHelpers.notify(this,"dragstart");this.originalCursor=this.src.style.cursor;
NovaxStyleTools.setCursor(this.src,this.cursor)};NovaxDragger.prototype.onMouseMove=function(A){var C=this.left+(A.clientX-this.dragPoint.x);
var B=this.top+(A.clientY-this.dragPoint.y);this.moveTo(C,B);this.dragPoint.x=A.clientX;
this.dragPoint.y=A.clientY;NovaxEventHelpers.notify(this,"drag")};NovaxDragger.prototype.onMouseUp=function(A){NovaxEventHelpers.notify(this,"mouseup",A);
this.mouseMoveListener.map(function(B){NovaxEventHelpers.removeJSListener(B)});this.mouseUpListener.map(function(B){NovaxEventHelpers.removeJSListener(B)
});this.dragging=false;NovaxStyleTools.setCursor(this.src,this.originalCursor);if(document.releaseCapture){document.releaseCapture()
}NovaxEventHelpers.notify(this,"dragend")};NovaxDragger.prototype.onWindowMouseOut=function(A){if(!A.relatedTarget&&this.dragging){this.onMouseUp(A)
}};function MoveConstraints(){}MoveConstraints.createHorizontalConstraint=function(){var A=new MoveConstraints();
A.getLeft=function(C,B){return C};return A};MoveConstraints.createVerticalConstraint=function(){var A=new MoveConstraints();
A.getTop=function(B,C){return B};return A};MoveConstraints.createHorizontalMinStyleValueConstraint=function(B,A,C){var D=new MoveConstraints();
D.element=B,D.propertyName=A,D.minValue=C,D.getLeft=function(G,E){var F=E-G;if(this.minValue<NovaxStyleTools.getCurrentIntValue(this.element,this.propertyName)-F){return E
}else{return G}};return D};MoveConstraints.createMinWidthConstraint=function(B,C,A){var D=new MoveConstraints();
D.element=B,D.minWidth=C,D.getLeft=function(H,F){var G=F-H;var E=Element.getDimensions(this.element).width;
if(this.minWidth<E-G){return F}else{return F+(A?1:-1)*(E-this.minWidth)}};return D
};MoveConstraints.prototype.getLeft=function(B,A){return A};MoveConstraints.prototype.getTop=function(A,B){return B
};NovaxLogger.R=[];NovaxLogger.LOGGER=[];function NovaxLogger(){}NovaxLogger.register=function(className,params){NovaxLogger.R.push(function(){eval("var log = new "+className+"()");
log.init(params);return log})};NovaxLogger.init=function(){while(NovaxLogger.R.length>0){var B=NovaxLogger.R.shift();
var A=B.call();NovaxLogger.LOGGER.push(A)}};NovaxLogger.debug=function(){for(var A=0;
A<NovaxLogger.LOGGER.length;A++){NovaxLogger.LOGGER[A].debug.apply(NovaxLogger.LOGGER[A],arguments)
}};function NovaxApp(){this.mods=[]}NovaxApp.prototype.registerModule=function(className,params){this.mods.push(function(){eval("var mod = new "+className+"()");
mod.init(params);return mod})};NovaxApp.prototype.initModules=function(){while(this.mods.length>0){var B=this.mods.shift();
var A=B.call();NovaxEventHelpers.notify(this,"moduleInitialized",A)}};var Application=new NovaxApp();
function Novax_Logger(){}function Novax_LiLogger(){}Novax_LiLogger.prototype.init=function(A){this.node=document.getElementById(A)
};Novax_LiLogger.prototype.append=function(B){var D=this.node.ownerDocument;var A=this.node.appendChild(D.createElement("li"));
var C=A.appendChild(D.createElement("pre"));C.appendChild(D.createTextNode(B));return A
};Novax_LiLogger.prototype.debug=function(A){this.append(A).style.color="gray"};Novax_LiLogger.prototype.error=function(A){this.append(A).style.color="red"
};NovaxLogger.register("Novax_LiLogger",["ulLogger"]);Array.prototype.inArray=function(B){for(var A=0;
A<this.length;A++){if(this[A]===B){return true}}return false};Array.prototype.merge=function(B){for(var A=0;
A<B.length;A++){if(!this.inArray(B[A])){this.push(B[A])}}return this};Array.prototype.cloneArray=function(){return this.concat()
};Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A
}}return -1};Array.prototype.remove=function(B){var A=this.indexOf(B);if(A>-1){this.splice(A,1)
}};Array.prototype.map=function(B){for(var A=0;A<this.length;A++){B(this[A])}};AbstractPool.prototype.constructor=AbstractPool;
function AbstractPool(){if(arguments.length==0){return }this.init()}AbstractPool.prototype.init=function(){this.availableObjects=new Array()
};AbstractPool.prototype.requestObject=function(){if(this.availableObjects.length==0){return this.createObject()
}return this.availableObjects.pop()};AbstractPool.prototype.releaseObject=function(A){this.availableObjects.push(A)
};AbstractPool.prototype.dispose=function(){};function Observers(){this.obs=new Array()
}Observers.prototype.attach=function(A){if(this.obs.inArray(A)){return }this.obs.push(A)
};Observers.prototype.detach=function(A){this.obs.remove(A)};Observers.prototype.notify=function(D,C){for(var B=0;
B<this.obs.length;B++){var A=this.obs[B];if(A[D]!=null){A[D](C)}}};function Observers2(A){var B=new Array();
A.map(function(C){B[C]=new Array()});this.obs=B}Observers2.prototype.attach=function(A,B){if(!A[B]){return 
}if(!this.obs[B]){throw new Error("Typ "+B+" wurde nicht definiert.")}if(this.obs[B].inArray(A)){return 
}this.obs[B].push(A)};Observers2.prototype.detach=function(A){this.obs[type].remove(A)
};Observers2.prototype.notify=function(C,B){for(var A=0;A<this.obs[C].length;A++){this.obs[C][A][C](B)
}};function HashMap(){if(arguments.length>0){return }this.init()}HashMap.prototype.init=function(){this.names=new Array();
this.values=new Array()};HashMap.prototype.put=function(A,B){if(this.containsKey(A)){return 
}this.values[A]=B;this.names.push(A)};HashMap.prototype.overwrite=function(A,C){var B=this.containsKey(A);
this.values[A]=C;if(B==false){this.names.push(A)}};HashMap.prototype.get=function(A){return this.values[A]
};HashMap.prototype.remove=function(A){this.values[A]=null;this.names.remove(A)};
HashMap.prototype.containsKey=function(A){return this.values[A]!=null};HashMap.prototype.clear=function(){this.init()
};HashMap.prototype.size=function(){return this.names.length};HashMap.prototype.getItemAt=function(A){return this.values[this.names[A]]
};HashMap.prototype.getKeyAt=function(A){return this.names[A]};HashMap.prototype.getKeys=function(){return this.names
};HashMap.prototype.iterator=function(){return new Iterator(this)};HashMap.prototype.toString=function(){return"HashMap\n{"+this.names.join("}{")+"}\n{"+this.values.join("}{")+"}"
};function Iterator(A){this.collection=A;this.cnt=0;this.max=this.collection.size()
}Iterator.prototype.hasNext=function(){return this.cnt<this.max};Iterator.prototype.next=function(){var A=this.collection.getItemAt(this.cnt);
this.cnt++;return A};WaitFor.prototype.constructor=WaitFor;function WaitFor(A){this.waitfor=0;
this.observers=new Observers();this.caller=A}WaitFor.prototype.toString=function(){return"Object [WaitFor]"
};WaitFor.prototype.start=function(){this.waitfor++;if(this.waitfor>1){return }this.observers.notify("started",this.caller)
};WaitFor.prototype.finish=function(){this.waitfor--;if(this.waitfor>0){return }this.observers.notify("finished",this.caller)
};WaitFor.prototype.attach=function(A){this.observers.attach(A)};WaitFor.prototype.started=function(A){this.start()
};WaitFor.prototype.finished=function(A){this.finish()};function Novax_MapViewLoader(){this.toLoad=new Array()
}Novax_MapViewLoader.prototype.documentLoaded=function(B,C,A){this.toLoad.push({name:B,type:C,document:A});
this.initAll()};Novax_MapViewLoader.prototype.initAll=function(){if(!(top.INIT_CALLED&&top.APPCONFIG_LOADED)){Novax.setTimeout(this,this.initAll,30);
return }var C=this.toLoad.concat();this.toLoad=new Array();for(var B=0;B<C.length;
B++){var A=C[B];LOGGER.debug("init mapview "+A.name);top.APP_CONFIG.registerMapView(A.name,A.type,A.document)
}LOGGER.debug("mapviews initialisiert.")};NPoint=Class.create();NPoint.prototype={initialize:function(A,B){this.x=A;
this.y=B},getDistance:function(A){return new NVector(A.x-this.x,A.y-this.y)},toNVector:function(){return new NVector(this.x,this.y)
},toString:function(){return"[object Point] x="+this.x+" y="+this.y}};NVector=Class.create();
NVector.prototype={initialize:function(A,B){this.x=A;this.y=B},toString:function(){return"[object Vector] x="+this.x+" y="+this.y
},mult:function(A,B){if(isNaN(A)&&typeof (A)=="object"){return this.mult(A.x,A.y)
}this.x=this.x*A;this.y=this.y*B;return this},invert:function(){this.x=1/this.x;this.y=1/this.y;
return this}};Rect.mirrorAt=function(A,B){if(A>B){A=B-(A-B)}else{if(B>A){A=B+(B-A)
}}return A};Rect.mirrorCoordArray=function(E,C){for(var A=0;A<E.length;A++){var B=E[A].split(",");
var D=parseFloat(B[1]);B[1]=Rect.mirrorAt(D,C);E[A]=B.join(",")}return E};function Rect(A,D,C,B){this.minX=A;
this.minY=D;this.maxX=C;this.maxY=B}Rect.prototype.clone=function(){return new Rect(this.minX,this.minY,this.maxX,this.maxY)
};Rect.prototype.initFromGMLNode=function(A){var B=A.getElementsByTagName("gml:coordinates");
B=B.item(0).firstChild.nodeValue;this.initFromCoordinates(B)};Rect.prototype.initFromCoordinates=function(C,B){var D=C.split(" ");
if(B){D=Rect.mirrorCoordArray(D,top.Y_MIRROR)}var A=D[0].split(",");this.minX=parseFloat(A[0]);
this.minY=parseFloat(A[1]);var A=D[1].split(",");this.maxX=parseFloat(A[0]);this.maxY=parseFloat(A[1])
};Rect.prototype.initFromMap=function(A,B){if(arguments.length==1){B=true}this.minX=A.curxOrig;
this.maxX=A.curxOrig+A.curWidth;if(B){var C=Rect.mirrorAt(A.curyOrig,top.Y_MIRROR);
this.minY=C-A.curHeight;this.maxY=C}else{this.minY=A.curyOrig;this.maxY=A.curyOrig+A.curHeight
}};Rect.prototype.initFromRect=function(A){this.minX=parseFloat(A.getAttributeNS(null,"x"));
this.minY=parseFloat(A.getAttributeNS(null,"y"));this.maxX=this.minX+parseFloat(A.getAttributeNS(null,"width"));
this.maxY=this.minY+parseFloat(A.getAttributeNS(null,"height"))};Rect.prototype.initFromDiv=function(A){this.minX=parseFloat(0);
this.minY=parseFloat(0);this.maxX=this.minX+parseFloat(A.style.width);this.maxY=this.minY+parseFloat(A.style.height)
};Rect.prototype.getCoordinates=function(A,B){A=A||" ";B=B||2;return this.minX.toFixed(B)+","+this.minY.toFixed(B)+A+this.maxX.toFixed(B)+","+this.maxY.toFixed(B)
};Rect.prototype.getBoxNode=function(A,C){var B=A.createElement("gml:Box");B.setAttribute("srsName",C);
NovaxXmlTools.setChildValue(B,"gml:coordinates",this.getCoordinates());return B};
Rect.prototype.setDimensionsToNode=function(A){A.setAttributeNS(null,"x",this.minx);
A.setAttributeNS(null,"y",this.miny);A.setAttributeNS(null,"width",this.getWidth());
A.setAttributeNS(null,"height",this.getHeight())};Rect.prototype.setViewBoxToNode=function(A){var B=[this.minX,this.minY,this.getWidth(),this.getHeight()].join(" ");
A.setAttributeNS(null,"viewBox",B)};Rect.prototype.toString=function(){return["Rect: "+this.getCoordinates(),"Scale: "+this.getScale()].join("\n")
};Rect.prototype.getMinX=function(){return this.minX};Rect.prototype.getMinY=function(){return this.minY
};Rect.prototype.getMaxX=function(){return this.maxX};Rect.prototype.getMaxY=function(){return this.maxY
};Rect.prototype.getMin=function(){return new NPoint(this.minX,this.minY)};Rect.prototype.getMax=function(){return new NPoint(this.maxX,this.maxY)
};Rect.prototype.getWidth=function(){return this.maxX-this.minX};Rect.prototype.getHeight=function(){return this.maxY-this.minY
};Rect.prototype.getScale=function(){return this.getWidth()/this.getHeight()};Rect.prototype.move=function(A,B){this.translate(new NVector(A,B))
};Rect.prototype.translate=function(A){this.minX+=A.x;this.maxX+=A.x;this.minY+=A.y;
this.maxY+=A.y;return this};Rect.prototype.scaleHeight=function(B){var A=this.getWidth()/B;
this.maxY=this.minY+A};Rect.prototype.getRatioFrom=function(C){var A=this.getHeight()/2;
this.scaleHeight(C.getScale());var B=this.getHeight()/2;this.move(0,A-B)};Rect.prototype.scale=function(A){this.expandWidthTo(this.getWidth()*A);
this.expandHeightTo(this.getHeight()*A)};Rect.prototype.scaleXY=function(A){this.minX=this.minX*A.x;
this.maxX=this.maxX*A.x;this.minY=this.minY*A.y;this.maxY=this.maxY*A.y};Rect.prototype.expandWidthTo=function(A){var C=this.getWidth();
var B=(A-C)/2;this.minX=this.minX-B;this.maxX=this.maxX+B;return true};Rect.prototype.expandHeightTo=function(A){var C=this.getHeight();
var B=(A-C)/2;this.minY=this.minY-B;this.maxY=this.maxY+B;return true};Rect.prototype.equals=function(A){return this.minX==A.minX&&this.minY==A.minY&&this.maxX==A.maxX&&this.maxY==A.maxY
};Rect.prototype.mirrorAt=function(A,B){if(A){this.minX=Rect.mirrorAt(this.minX,A);
this.maxX=Rect.mirrorAt(this.maxX,A)}if(B){this.minY=Rect.mirrorAt(this.minY,B);this.maxY=Rect.mirrorAt(this.maxY,B)
}};Rect.prototype.intersects=function(A){return this.getMinX()<A.getMaxX()&&this.getMaxX()>A.getMinX()&&this.getMinY()<A.getMaxY()&&this.getMaxY()>A.getMinY()
};Rect.prototype.getCenter=function(){return new NPoint(this.getMinX()+(this.getWidth()/2),this.getMinY()+(this.getHeight()/2))
};NovaxXmlTools=function(){};NovaxXmlTools.getFirstChildValue=function(B,C){var A=NovaxXmlTools.getFirstChild(B,C);
if(A!=null&&A.firstChild!=null){return A.firstChild.nodeValue}return null};NovaxXmlTools.getFirstChild=function(B,C){if(B==null||!B.hasChildNodes){return null
}for(var A=B.firstChild;A;A=A.nextSibling){if(A.nodeName==C){return A}}return null
};NovaxXmlTools.setChildValue=function(B,A,C){B.appendChild(NovaxXmlTools.createTextNode(B,A,C))
};NovaxXmlTools.createTextNode=function(C,B,D){var E=C.ownerDocument;var F=E.createElement(B);
var A=E.createTextNode(D);F.appendChild(A);return F};Novax_HtmlWaitStateHandler=function(B,A){this.window=B;
this.element=A};Novax_HtmlWaitStateHandler.prototype.started=function(){this.window.status="Lade...";
this.element.style.cursor="wait"};Novax_HtmlWaitStateHandler.prototype.finished=function(){this.element.style.cursor="auto";
this.window.status="geladen"};AppConfig.FEATURE_CLICK_OBSERVERS=new Observers();AppConfig.params={};
AppConfig.getParam=function(A){return AppConfig.params[A]};AppConfig.setParam=function(A,B){AppConfig.params[A]=B
};function AppConfig(A){this.url=A;this.initialized=false;this.datasources=[];this.initWaitFor=new WaitFor(this)
}AppConfig.prototype.initialize=function(){this.initWaitFor.start();var A=new HTTPClient(top.WAIT_STATE_MANAGER!=null,MESSAGE_INIT_APPCONFIG);
A.attachObserver(new HTTPClientCallBackObserver(this,"httpClientLoaded"));A.getURL(this.url)
};AppConfig.prototype.toString=function(){return"Object [AppConfig]"};AppConfig.prototype.get_FEATURE_CLICK_OBSERVERS=function(){return AppConfig.FEATURE_CLICK_OBSERVERS
};AppConfig.prototype.httpClientLoaded=function(A){this.initFrom(A);this.initWaitFor.finished()
};AppConfig.prototype.initFrom=function(A){this.initParams(A);this.initFeatureTypeMetaInfo(A);
this.initDataSources(A);this.initUserConfig(A);this._mapViewsNode=A.selectSingleNode("mapViews");
this._mapViews=new HashMap()};AppConfig.prototype.initParams=function(B){var A=B.getElementsByTagName("params").item(0);
for(var C=A.firstChild;C;C=C.nextSibling){if(C.nodeName=="param"){AppConfig.setParam([C.getAttribute("name")],C.getAttribute("value"))
}}A.parentNode.removeChild(A)};AppConfig.prototype.initFeatureTypeMetaInfo=function(C){var B=C.getElementsByTagName("FeatureTypeMetaInfos").item(0);
for(var D=B.firstChild;D;D=D.nextSibling){if(D.nodeName=="FeatureTypeMetaInfo"){var A=new FeatureTypeMetaInfo(D);
FeatureTypeMetaInfo.add(A)}}B.parentNode.removeChild(B)};AppConfig.prototype.initDataSources=function(C){var H=C.getElementsByTagName("datasources").item(0);
for(var E=H.firstChild;E;E=E.nextSibling){if(E.nodeName=="datasource"){var G=E;var D=G.getAttribute("type");
var B=G.getAttribute("name");var A=G.getAttribute("url");var F=null;switch(D){case"WFS":F=new WebFeatureServer(B,A,G);
break;case"WMS":F=new WebMapServer(B,A,G);break;default:}if(F!=null){DataSource.add(F);
this.datasources[F.getName()]=F}}}H.parentNode.removeChild(H)};AppConfig.prototype.initUserConfig=function(A){var B=getFirstChild(A,"userConfig");
if(B==null){return }this.userConfig=new UserConfig(B,this.initWaitFor)};AppConfig.prototype.initMapViews=function(B){this._mapViewConfigs=new HashMap();
var D=B.selectNodes("mapViews/mapView");for(var C=0;C<D.length;C++){var E=D.item(C);
var A=new MapView(E,this,true);this._mapViewConfigs.put(A.getName(),A)}if(this._mapViewConfigs.size()==0){alert("keine mapViews konfiguriert.");
return }};AppConfig.prototype.registerMapView=function(B,A,D){var C=this._mapViewsNode.selectSingleNode("mapView[@name='"+B+"']");
if(C==null){alert(this+"\nKnoten mapView[@name='"+B+"'] nicht gefunden.");return 
}A.init(C,this,true,D);this._mapViews.put(B,A)};AppConfig.prototype.getMapView=function(A){if(A==null){A=this._mapViews.getKeys()[0]
}return this._mapViews.get(A)};AppConfig.prototype.getRefMapView=function(){return this._refMapView
};AppConfig.prototype.setAuthData=function(A){A.setPropertyValue("AMT",this.getUserConfig().getAmt())
};AppConfig.prototype.getAuthData=function(A){return"X"};AppConfig.prototype.getUserSetting=function(A){return Cookies.get(A)
};AppConfig.prototype.setUserSetting=function(A,B){setCookie(A,B,getCookieExpire())
};AppConfig.prototype.saveUserSettings=function(C){for(var B=0;B<C.elements.length;
B++){var A=C.elements[B];if(!A.disabled){switch(A.type){case"text":this.setUserSetting(A.name,A.value);
break;case"checkbox":this.setUserSetting(A.name,A.checked?A.value:"0");break}}}alert("Einstellungen gespeichert.")
};AppConfig.prototype.restoreUserSettings=function(C){for(var B=0;B<C.elements.length;
B++){var A=C.elements[B];if(!A.disabled){switch(A.type){case"text":A.value=this.getUserSetting(A.name);
break;case"checkbox":A.checked=this.getUserSetting(A.name)==A.value;break}}}};AppConfig.prototype.getUserConfig=function(){return this.userConfig
};AppConfig.prototype.attachInitWaitFor=function(A){this.initWaitFor.attach(A)};AppConfig.prototype.allInitialized=function(){return ;
this.userConfig.isInitialized()&&DataSource.allInitialized()};AppConfig.prototype.getParam=function(A){return AppConfig.getParam(A)
};AppConfig.prototype.getDataSource=function(A){return this.datasources[A]};function Sarissa(){}Sarissa.PARSED_OK="Document contains no parsing errors";
Sarissa.IS_ENABLED_TRANSFORM_NODE=false;Sarissa.IS_ENABLED_XMLHTTP=false;Sarissa.IS_ENABLED_SELECT_NODES=false;
var _sarissa_iNsCounter=0;var _SARISSA_IEPREFIX4XSLPARAM="";var _SARISSA_HAS_DOM_IMPLEMENTATION=document.implementation&&true;
var _SARISSA_HAS_DOM_CREATE_DOCUMENT=_SARISSA_HAS_DOM_IMPLEMENTATION&&document.implementation.createDocument;
var _SARISSA_HAS_DOM_FEATURE=_SARISSA_HAS_DOM_IMPLEMENTATION&&document.implementation.hasFeature;
var _SARISSA_IS_MOZ=_SARISSA_HAS_DOM_CREATE_DOCUMENT&&_SARISSA_HAS_DOM_FEATURE;var _SARISSA_IS_SAFARI=(navigator.userAgent&&navigator.vendor&&(navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1||navigator.vendor.indexOf("Apple")!=-1));
var _SARISSA_IS_IE=document.all&&window.ActiveXObject&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1;
if(!window.Node||!window.Node.ELEMENT_NODE){var Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}
}if(_SARISSA_IS_IE){_SARISSA_IEPREFIX4XSLPARAM="xsl:";var _SARISSA_DOM_PROGID="";
var _SARISSA_XMLHTTP_PROGID="";pickRecentProgID=function(G,A){var F=false;for(var D=0;
D<G.length&&!F;D++){try{var B=new ActiveXObject(G[D]);o2Store=G[D];F=true;for(var C=0;
C<A.length;C++){if(D<=A[C][1]){Sarissa["IS_ENABLED_"+A[C][0]]=true}}}catch(E){}}if(!F){throw"Could not retreive a valid progID of Class: "+G[G.length-1]+". (original exception: "+e+")"
}G=null;return o2Store};_SARISSA_DOM_PROGID=pickRecentProgID(["Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"],[["SELECT_NODES",2],["TRANSFORM_NODE",2]]);
_SARISSA_XMLHTTP_PROGID=pickRecentProgID(["Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],[["XMLHTTP",4]]);
_SARISSA_THREADEDDOM_PROGID=pickRecentProgID(["Msxml2.FreeThreadedDOMDocument.5.0","MSXML2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument.3.0"]);
_SARISSA_XSLTEMPLATE_PROGID=pickRecentProgID(["Msxml2.XSLTemplate.5.0","Msxml2.XSLTemplate.4.0","MSXML2.XSLTemplate.3.0"],[["XSLTPROC",2]]);
pickRecentProgID=null;Sarissa.getDomDocument=function(C,B){var A=new ActiveXObject(_SARISSA_DOM_PROGID);
if(B){if(C){A.loadXML("<a"+_sarissa_iNsCounter+":"+B+" xmlns:a"+_sarissa_iNsCounter+'="'+C+'" />');
++_sarissa_iNsCounter}else{A.loadXML("<"+B+"/>")}}return A};Sarissa.getParseErrorText=function(A){var C=Sarissa.PARSED_OK;
if(A.parseError!=0){C="XML Parsing Error: "+A.parseError.reason+"\nLocation: "+A.parseError.url+"\nLine Number "+A.parseError.line+", Column "+A.parseError.linepos+":\n"+A.parseError.srcText+"\n";
for(var B=0;B<A.parseError.linepos;B++){C+="-"}C+="^\n"}return C};Sarissa.setXpathNamespaces=function(A,B){A.setProperty("SelectionLanguage","XPath");
A.setProperty("SelectionNamespaces",B)};XSLTProcessor=function(){this.template=new ActiveXObject(_SARISSA_XSLTEMPLATE_PROGID);
this.processor=null};XSLTProcessor.prototype.importStylesheet=function(B){var A=new ActiveXObject(_SARISSA_THREADEDDOM_PROGID);
A.loadXML(B.xml);this.template.stylesheet=A;this.processor=this.template.createProcessor();
this.paramsSet=new Array()};XSLTProcessor.prototype.transformToDocument=function(B){this.processor.input=B;
var A=new ActiveXObject(_SARISSA_DOM_PROGID);this.processor.output=A;this.processor.transform();
return A};XSLTProcessor.prototype.setParameter=function(C,A,B){if(C){this.processor.addParameter(A,B,C)
}else{this.processor.addParameter(A,B)}if(!this.paramsSet[""+C]){this.paramsSet[""+C]=new Array()
}this.paramsSet[""+C][A]=B};XSLTProcessor.prototype.getParameter=function(B,A){B=B||"";
if(B in this.paramsSet&&A in this.paramsSet[B]){return this.paramsSet[B][A]}else{return null
}}}else{if(_SARISSA_HAS_DOM_CREATE_DOCUMENT){Sarissa.__handleLoad__=function(A){if(!A.documentElement||A.documentElement.tagName=="parsererror"){A.parseError=-1
}Sarissa.__setReadyState__(A,4)};_sarissa_XMLDocument_onload=function(){Sarissa.__handleLoad__(this)
};Sarissa.__setReadyState__=function(A,B){A.readyState=B;if(A.onreadystatechange!=null&&typeof A.onreadystatechange=="function"){A.onreadystatechange()
}};Sarissa.getDomDocument=function(C,B){var A=document.implementation.createDocument(C?C:"",B?B:"",null);
A.addEventListener("load",_sarissa_XMLDocument_onload,false);return A};if(window.XMLDocument){XMLDocument.prototype.onreadystatechange=null;
XMLDocument.prototype.parseError=0;var _SARISSA_SYNC_NON_IMPLEMENTED=false;XMLDocument.prototype._sarissa_load=XMLDocument.prototype.load;
XMLDocument.prototype.load=function(D){var A=document.implementation.createDocument("","",null);
Sarissa.copyChildNodes(this,A);this.parseError=0;Sarissa.__setReadyState__(this,1);
try{if(this.async==false&&_SARISSA_SYNC_NON_IMPLEMENTED){var B=new XMLHttpRequest();
B.open("GET",D,false);B.send(null);Sarissa.__setReadyState__(this,2);Sarissa.copyChildNodes(B.responseXML,this);
Sarissa.__setReadyState__(this,3)}else{this._sarissa_load(D)}}catch(C){this.parseError=-1
}finally{if(this.async==false){Sarissa.__handleLoad__(this)}}return A}}else{if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("LS","3.0")){Document.prototype.async=true;
Document.prototype.onreadystatechange=null;Document.prototype.parseError=0;Document.prototype.load=function(E){var D=document.implementation.createLSParser(this.async?document.implementation.MODE_ASYNCHRONOUS:document.implementation.MODE_SYNCHRONOUS,null);
if(this.async){var B=this;D.addEventListener("load",function(F){B.readyState=4;Sarissa.copyChildNodes(F.newDocument,B.documentElement,false);
B.onreadystatechange.call()},false)}try{var A=D.parseURI(E)}catch(C){this.parseError=-1
}if(!this.async){Sarissa.copyChildNodes(A,this.documentElement,false)}return A};Sarissa.getDomDocument=function(B,A){return document.implementation.createDocument(B?B:"",A?A:"",null)
}}}}}if(!window.DOMParser){DOMParser=function(){};if(_SARISSA_IS_SAFARI){DOMParser.prototype.parseFromString=function(B,C){if(C.toLowerCase()!="application/xml"){throw'Cannot handle content type: "'+C+'"'
}var A=new XMLHttpRequest();A.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(str),false);
A.send(null);return A.responseXML}}else{if(Sarissa.getDomDocument&&Sarissa.getDomDocument()&&"loadXML" in Sarissa.getDomDocument()){DOMParser.prototype.parseFromString=function(A,C){var B=Sarissa.getDomDocument();
B.loadXML(A);return B}}}}if(window.XMLHttpRequest){Sarissa.IS_ENABLED_XMLHTTP=true
}else{if(_SARISSA_IS_IE){XMLHttpRequest=function(){return new ActiveXObject(_SARISSA_XMLHTTP_PROGID)
};Sarissa.IS_ENABLED_XMLHTTP=true}}if(!window.document.importNode&&_SARISSA_IS_IE){try{window.document.importNode=function(C,B){var A=document.createElement("div");
if(B){A.innerHTML=Sarissa.serialize(C)}else{A.innerHTML=Sarissa.serialize(C.cloneNode(false))
}return A.firstChild}}catch(e){}}if(!Sarissa.getParseErrorText){Sarissa.getParseErrorText=function(A){var B=Sarissa.PARSED_OK;
if(A&&A.parseError&&A.parseError!=0){if(A.documentElement.tagName=="parsererror"){B=A.documentElement.firstChild.data;
B+="\n"+A.documentElement.firstChild.nextSibling.firstChild.data}else{B=Sarissa.getText(A.documentElement)
}}return B}}Sarissa.getText=function(G,B){var E="";var C=G.childNodes;for(var D=0;
D<C.length;D++){var F=C[D];var A=F.nodeType;if(A==Node.TEXT_NODE||A==Node.CDATA_SECTION_NODE){E+=F.data
}else{if(B==true&&(A==Node.ELEMENT_NODE||A==Node.DOCUMENT_NODE||A==Node.DOCUMENT_FRAGMENT_NODE)){E+=Sarissa.getText(F,true)
}}}return E};if(window.XMLSerializer){Sarissa.serialize=function(A){var B=null;if(A){B=A.innerHTML?A.innerHTML:(new XMLSerializer()).serializeToString(A)
}return B}}else{if(Sarissa.getDomDocument&&(Sarissa.getDomDocument("","foo",null)).xml){Sarissa.serialize=function(A){var B=null;
if(A){B=A.innerHTML?A.innerHTML:A.xml}return B};XMLSerializer=function(){};XMLSerializer.prototype.serializeToString=function(A){return A.xml
}}}Sarissa.stripTags=function(A){return A.replace(/<[^>]+>/g,"")};Sarissa.clearChildNodes=function(A){while(A.firstChild){A.removeChild(A.firstChild)
}};Sarissa.copyChildNodes=function(D,E,F){if((!D)||(!E)){throw"Both source and destination nodes must be provided"
}if(!F){Sarissa.clearChildNodes(E)}var B=E.nodeType==Node.DOCUMENT_NODE?E:E.ownerDocument;
var A=D.childNodes;if(B.importNode&&(!_SARISSA_IS_IE)){for(var C=0;C<A.length;C++){E.appendChild(B.importNode(A[C],true))
}}else{for(var C=0;C<A.length;C++){E.appendChild(A[C].cloneNode(true))}}};Sarissa.moveChildNodes=function(D,E,F){if((!D)||(!E)){throw"Both source and destination nodes must be provided"
}if(!F){Sarissa.clearChildNodes(E)}var A=D.childNodes;if(D.ownerDocument==E.ownerDocument){while(D.firstChild){E.appendChild(D.firstChild)
}}else{var B=E.nodeType==Node.DOCUMENT_NODE?E:E.ownerDocument;if(B.importNode&&(!_SARISSA_IS_IE)){for(var C=0;
C<A.length;C++){E.appendChild(B.importNode(A[C],true))}}else{for(var C=0;C<A.length;
C++){E.appendChild(A[C].cloneNode(true))}}Sarissa.clearChildNodes(D)}};Sarissa.xmlize=function(E,H,D){D=D?D:"";
var F=D+"<"+H+">";var B=false;if(!(E instanceof Object)||E instanceof Number||E instanceof String||E instanceof Boolean||E instanceof Date){F+=Sarissa.escape(""+E);
B=true}else{F+="\n";var G="";var A=E instanceof Array;for(var C in E){F+=Sarissa.xmlize(E[C],(A?'array-item key="'+C+'"':C),D+"   ")
}F+=D}return F+=(H.indexOf(" ")!=-1?"</array-item>\n":"</"+H+">\n")};Sarissa.escape=function(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")
};Sarissa.unescape=function(A){return A.replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")
};Sarissa.updateContentFromURI=function(C,F,A){try{F.style.cursor="wait";var B=new XMLHttpRequest();
B.open("GET",C);function E(){if(B.readyState==4){F.style.cursor="auto";Sarissa.updateContentFromNode(B.responseXML,F,A)
}}B.onreadystatechange=E;B.send(null);F.style.cursor="auto"}catch(D){F.style.cursor="auto";
throw D}};Sarissa.updateContentFromNode=function(E,F,A){try{F.style.cursor="wait";
Sarissa.clearChildNodes(F);var B=E.nodeType==Node.DOCUMENT_NODE?E:E.ownerDocument;
if(B.parseError&&B.parseError!=0){var D=document.createElement("pre");D.appendChild(document.createTextNode(Sarissa.getParseErrorText(B)));
F.appendChild(D)}else{if(A){E=A.transformToDocument(E)}if(F.tagName.toLowerCase=="textarea"||F.tagName.toLowerCase=="input"){F.value=Sarissa.serialize(E)
}else{if(E.nodeType==Node.DOCUMENT_NODE||E.ownerDocument.documentElement==E){F.innerHTML=Sarissa.serialize(E)
}else{F.appendChild(F.ownerDocument.importNode(E,true))}}}}catch(C){throw C}finally{F.style.cursor="auto"
}};if(_SARISSA_HAS_DOM_FEATURE&&document.implementation.hasFeature("XPath","3.0")){function SarissaNodeList(A){this.length=A
}SarissaNodeList.prototype=new Array(0);SarissaNodeList.prototype.constructor=Array;
SarissaNodeList.prototype.item=function(A){return(A<0||A>=this.length)?null:this[A]
};SarissaNodeList.prototype.expr="";XMLDocument.prototype.setProperty=function(A,B){};
Sarissa.setXpathNamespaces=function(G,C){G._sarissa_useCustomResolver=true;var A=C.indexOf(" ")>-1?C.split(" "):new Array(C);
G._sarissa_xpathNamespaces=new Array(A.length);for(var D=0;D<A.length;D++){var F=A[D];
var H=F.indexOf(":");var I=F.indexOf("=");if(H==5&&I>H+2){var E=F.substring(H+1,I);
var B=F.substring(I+2,F.length-1);G._sarissa_xpathNamespaces[E]=B}else{throw"Bad format on namespace declaration(s) given"
}}};XMLDocument.prototype._sarissa_useCustomResolver=false;XMLDocument.prototype._sarissa_xpathNamespaces=new Array();
XMLDocument.prototype.selectNodes=function(C,B){var A=this;var G=this._sarissa_useCustomResolver?function(I){var H=A._sarissa_xpathNamespaces[I];
if(H){return H}else{throw"No namespace URI found for prefix: '"+I+"'"}}:this.createNSResolver(this.documentElement);
var F=this.evaluate(C,(B?B:this),G,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var D=new SarissaNodeList(F.snapshotLength);
D.expr=C;for(var E=0;E<D.length;E++){D[E]=F.snapshotItem(E)}return D};Element.prototype.selectNodes=function(A){var B=this.ownerDocument;
if(B.selectNodes){return B.selectNodes(A,this)}else{throw"Method selectNodes is only supported by XML Elements"
}};XMLDocument.prototype.selectSingleNode=function(C,B){var A=B?B:null;C="("+C+")[1]";
var D=this.selectNodes(C,A);if(D.length>0){return D.item(0)}else{return null}};Element.prototype.selectSingleNode=function(A){var B=this.ownerDocument;
if(B.selectSingleNode){return B.selectSingleNode(A,this)}else{throw"Method selectNodes is only supported by XML Elements"
}};Sarissa.IS_ENABLED_SELECT_NODES=true}if(!Sarissa.IS_ENABLED_TRANSFORM_NODE&&window.XSLTProcessor){Element.prototype.transformNodeToObject=function(C,B){var A=document.implementation.createDocument("","",null);
Sarissa.copyChildNodes(this,A);A.transformNodeToObject(C,B)};Document.prototype.transformNodeToObject=function(E,B){var A=null;
try{A=new XSLTProcessor();if(A.reset){A.importStylesheet(E);var C=A.transformToFragment(this,B);
Sarissa.copyChildNodes(C,B)}else{A.transformDocument(this,E,B,null)}}catch(D){if(E&&B){throw"Failed to transform document. (original exception: "+D+")"
}else{if(!E){throw"No Stylesheet Document was provided. (original exception: "+D+")"
}else{if(!B){throw"No Result Document was provided. (original exception: "+D+")"}else{if(A==null){throw"Could not instantiate an XSLTProcessor object. (original exception: "+D+")"
}else{throw D}}}}}};Element.prototype.transformNode=function(B){var A=document.implementation.createDocument("","",null);
Sarissa.copyChildNodes(this,A);return A.transformNode(B)};Document.prototype.transformNode=function(E){var A=document.implementation.createDocument("","",null);
this.transformNodeToObject(E,A);var D=null;try{var B=new XMLSerializer();D=B.serializeToString(A)
}catch(C){throw"Failed to serialize result document. (original exception: "+C+")"
}return D};Sarissa.IS_ENABLED_TRANSFORM_NODE=true}Sarissa.setXslParameter=function(J,G,H){try{var C=J.getElementsByTagName(_SARISSA_IEPREFIX4XSLPARAM+"param");
var B=C.length;var I=false;var A;if(H){for(var E=0;E<B&&!I;E++){if(C[E].getAttribute("name")==G){A=C[E];
while(A.firstChild){A.removeChild(A.firstChild)}if(!H||H==null){}else{if(typeof H=="string"){A.setAttribute("select",H);
I=true}else{if(H.nodeName){A.removeAttribute("select");A.appendChild(H.cloneNode(true));
I=true}else{if(H.item(0)&&H.item(0).nodeType){for(var D=0;D<H.length;D++){if(H.item(D).nodeType){A.appendChild(H.item(D).cloneNode(true))
}}I=true}else{throw"Failed to set xsl:param "+G+" (original exception: "+F+")"}}}}}}}return I
}catch(F){throw F;return false}};HTTPPool.prototype=new AbstractPool();HTTPPool.prototype.constructor=HTTPPool;
HTTPPool.superclass=AbstractPool.prototype;function HTTPPool(){this.init()}HTTPPool.prototype.createObject=function(){return new XMLHttpRequest();
if(!xmlhttp){throw new Error("Es konnte kein XMLHttpRequest-Instanz erzeugt werden.")
}return xmlhttp};HTTPPool.prototype.dispose=function(){for(var A=0;A<this.availableObjects.length;
A++){this.availableObjects[A].abort()}};HTTPPool.prototype.toString=function(){return"Object [HTTPPool]"
};var HTTP_POOL=new HTTPPool();var DISPOSABLE_OBSERVERS=new Observers();DISPOSABLE_OBSERVERS.attach(HTTP_POOL);
var exitInProgress=false;function exit(){exitInProgress=true;DISPOSABLE_OBSERVERS.notify("dispose")
}function getURLObj(A,C){var B=HTTP_POOL.requestObject();B.open("GET",A,true);B.onreadystatechange=function(D){if(exitInProgress){B=null
}if(B==null){return }if(B.readyState!=4){return }var F=B.status==200;if(!F){alert(A+"\n"+getXMLHTTPStatusErrorMessage(B.status))
}var E={responseHeaders:B.getAllResponseHeaders(),httpStatus:B.status,httpStatusText:B.statusText,success:F,content:B.responseText,xmlContent:B.responseXML,contentType:B.getResponseHeader("Content-Type")};
C.getURLComplete(E);HTTP_POOL.releaseObject(B);B=null;E.xmlContent=null};B.send(null)
}function postURLObj(A,C,F,E,D){var B=HTTP_POOL.requestObject();B.open("POST",A,true);
D.starttime=(new Date()).getTime();if(E){B.setRequestHeader("Content-Encoding",E)
}if(F){B.setRequestHeader("Content-Type",F)}B.onreadystatechange=function(G){if(exitInProgress){B=null
}if(B==null){return }if(B.readyState!=4){return }var K=B.status==200;if(!K){alert(A+"\n"+getXMLHTTPStatusErrorMessage(B.status))
}var J={responseHeaders:B.getAllResponseHeaders(),httpStatus:B.status,httpStatusText:B.statusText,success:K,content:B.responseText,xmlContent:B.responseXML,contentType:B.getResponseHeader("Content-Type")};
var I=A;var H=D.starttime;var L=(new Date()).getTime();I+=" P"+((L-H)/1000).toFixed(2);
H=L;D.getURLComplete(J);var L=(new Date()).getTime();I+=" V"+((L-H)/1000).toFixed(2);
H=L;top.LOGGER.debug(I);HTTP_POOL.releaseObject(B);B=null;J.xmlContent=null};B.send(C)
}function getXMLHTTPStatusErrorMessage(A){switch(A){case 12007:return"Status 12007: Server not responding.";
case 12029:return"Status 12029: Die Serververbindung konnte nicht hergestellt werden.";
default:return"Status "+A}}function HTTPClient(B,A){this.observers=new Observers();
this._lastURL=null;this._lastMethod="";this._purpose=A;this._debug=false;this._useWS=B
}HTTPClient.prototype.toString=function(){return"Object [HTTPClient]"};HTTPClient.prototype.getWaitMessage=function(){return this._purpose
};HTTPClient.prototype.getURL=function(A){this._lastURL=A;this._lastMethod="GET";
if(this._useWS){top.WAIT_STATE_MANAGER.start(this)}getURLObj(A,this)};HTTPClient.prototype.postURL=function(A,B,D,C){this._lastURL=A;
this._lastMethod="POST";if(this._debug){alert("POST url="+A+"\n"+B)}if(this._useWS){top.WAIT_STATE_MANAGER.start(this)
}postURLObj(A,B,D,C,this)};HTTPClient.prototype.operationComplete=function(A){this.setState(A);
if(this._useWS){top.WAIT_STATE_MANAGER.finish(this)}};HTTPClient.prototype.getURLComplete=function(A){this.setState(A);
if(this._useWS){top.WAIT_STATE_MANAGER.finish(this)}};HTTPClient.prototype.postURLComplete=function(A){this.setState(A);
if(this._useWS){top.WAIT_STATE_MANAGER.finish(this)}};HTTPClient.prototype.getLastURL=function(){return this._lastURL
};HTTPClient.prototype.attachObserver=function(A){this.observers.attach(A)};HTTPClient.prototype.detachObserver=function(A){this.observers.detach(A)
};HTTPClient.prototype.setState=function(A){this._state=A;this.observers.notify("httpClientStateSet",this)
};HTTPClient.prototype.getState=function(){return this._state};function HTTPClientAlertObserver(){}HTTPClientAlertObserver.prototype.httpClientStateSet=function(A){var B=A.getState();
if(!B.success){alert("HTTPClientAlertObserver:\nno success\nHTTPStatuscode="+B.httpStatus)
}if(B.content.length==0){alert("HTTPClientAlertObserver:\nError: content.length == 0");
return }alert("HTTPClientAlertObserver success:\n"+B.content)};function HTTPClientCallBackObserver(B,A){if(B[A]==null){throw new Error('HTTPClientCallBackObserver\nObjekt "'+B+'" hat keine Function "'+A+'".')
}this.cbo=B;this.cbofn=A}HTTPClientCallBackObserver.prototype.toString=function(){return"Object [HTTPClientCallBackObserver]"
};HTTPClientCallBackObserver.prototype.httpClientStateSet=function(A){var C=A.getState();
A.detachObserver(this);if(!C.success){alert([this,"url: "+A.getLastURL(),"no success","HTTPStatuscode="+C.httpStatus,"HTTPStatusText="+C.httpStatusText].join("\n"));
return }if(C.content.length==0){alert(this+"\nurl: "+A.getLastURL()+"\nError: content.length == 0");
return }if(C.xmlContent==null||C.xmlContent.documentElement==null){this.cbo[this.cbofn](C.content)
}else{var B=C.xmlContent.documentElement;B.ownerDocument.validateOnParse=false;B.ownerDocument.setProperty("SelectionNamespaces","xmlns:a='http://www.novasib.de' xmlns:gml='http://www.opengis.net/gml'");
B.ownerDocument.setProperty("SelectionLanguage","XPath");this.cbo[this.cbofn](B,C.content)
}};var MESSAGE_INIT_APPCONFIG="Init AppConfig";var MESSAGE_INIT_WMS="Init WMS";var MESSAGE_USER_CONFIG_INIT="Init UserConfig";
var TEXT_ACTION_ZOOM='<div class="zoom" title="Zoom"><span class="notvis">Zoom</span></div>';
var TEXT_ACTION_MOVE='<div class="move" title="Verschieben"/><span class="notvis">Verschieben</span></div>';
var TEXT_ACTION_MODIFY='<div class="modi" title="Bearbeiten"/><span class="notvis">Bearbeiten</span></div>';
var TEXT_ACTION_VERLAENGERN='<div class="verl" title="Verl&auml;ngern"/><span class="notvis">Verl&auml;ngern</span></div>';
var TEXT_ACTION_IN_ARCHIV='<div class="arch" title="Archivieren"/><span class="notvis">Archivieren</span></div>';
var TEXT_ACTION_DOWNLOAD_PDF='<div class="down" title="Als PDF downloaden"/><span class="notvis">PDF</span></div>';
var TEXT_ACTION_REMOVE='<div class="remo" title="Entfernen"/><span class="notvis">Entf.</span></div>';
var TEXT_ACTION_STATIONIEREN='<div class="stat" title="Stationieren"/><span class="notvis">Stationieren</span></div>';
var TEXT_ACTION_ZAHLUNG='<div class="zahl" title="Annahmeanordnung f&uml;r eine einmalige Zahlung"/><span class="notvis">&euro;</span></div>';
var TEXT_ACTION_SELECT='<div class="sele" title="Auswahl"/><span class="notvis">Auswahl</span></div>';
var TEXT_ACTION_MODIFY_PASSWORD='<div class="modP" title="Passwort &auml;ndern"/><span class="notvis">Passwort &auml;ndern</span></div>';
var TEXT_ACTION_DETAIL='<div class="deta" title="Details anzeigen"/><span class="notvis">Details anzeigen</span></div>';
var IMAGE_DIR="images/";if(window.location.pathname.indexOf("dialogs/")!=-1){IMAGE_DIR="../"+IMAGE_DIR
}var TEXT_BUTTON_CLOSE='<img src="'+IMAGE_DIR+'buttons/backward_nav.gif"  title="Schlie&szlig;en"/>';
var TEXT_BUTTON_REFRESH='<img src="'+IMAGE_DIR+'buttons/refresh.gif"       title="Aktualisieren"/>';
var TEXT_BUTTON_UNDO='<img src="'+IMAGE_DIR+'buttons/undo_edit.gif"     title="R&uuml;ckg&auml;ngig"/>';
var TEXT_BUTTON_NEW='<img src="'+IMAGE_DIR+'buttons/newfile_wiz.gif"   title="Neu"/>';
var TEXT_BUTTON_SAVE='<img src="'+IMAGE_DIR+'buttons/save_edit.gif"     title="Speichern"/>';
var TEXT_BUTTON_SELECT_ALL='<img src="'+IMAGE_DIR+'buttons/select_all.gif"    title="Alles auswählen"/>';
var TEXT_BUTTON_DESELECT_ALL='<img src="'+IMAGE_DIR+'buttons/deselect_all.gif"  title="Nichts auswählen"/>';
var TEXT_BUTTON_FORMULAR='<img src="'+IMAGE_DIR+'buttons/file_obj.gif"      title="Formular anzeigen"/>';
var TEXT_BUTTON_SELECT='<img src="'+IMAGE_DIR+'action_select.gif"         title="Auswahl &uuml;bernehmen"/>';
var TEXT_STATUS_ENABLED='<img src="'+IMAGE_DIR+'status_enabled.gif"        title="Aktiviert"/>';
var TEXT_STATUS_DISABLED='<img src="'+IMAGE_DIR+'status_disabled.gif"   title="Deaktiviert"/>';
var NS_XLINK="http://www.w3.org/1999/xlink";function trimHeader(A){strlen=A.length;
endindex=A.indexOf("?>");if(endindex!=-1){A=(A.substring(endindex+2,strlen))}return A
}function dropNS(B,A){return B.replace(new RegExp(A+":","g"),"")}function addXMLHeader(A){return'<?xml version="1.0" encoding="UTF-8"?>'+A
}function getFirstChildValue(C,D,B){var A=getFirstChild(C,D,B);if(A!=null&&A.firstChild!=null){return A.firstChild.nodeValue
}return null}function getFirstChild(C,D,B){if(C==null||!C.hasChildNodes){if(B){alert("Knoten hat keine Kinder \n"+printNode(C))
}return null}for(var A=0;A<C.childNodes.length;A++){if(C.childNodes.item(A).nodeName==D){return C.childNodes.item(A)
}}if(B){alert(' Knoten hat kein Kind mit Tag "'+D+'"\n'+printNode(C))}return null
}function getFirstChildValueNS(F,D,C,E){if(!F.hasChildNodes){if(E){alert("Knoten hat keine Kinder \n"+printNode(F))
}return null}var A=F.getElementsByTagNameNS(D,C);if(A.length==0){for(var B=0;B<F.childNodes.length;
B++){var G=F.childNodes.item(B);if(G.localName==C){return G.firstChild.nodeValue}}if(E){alert("Knoten hat "+A.length+' Kinder mit Tag "'+D+":"+C+'"\n'+printNode(F))
}return null}return A.item(0).firstChild.nodeValue}function setChildValue(B,A,C){NovaxXmlTools.setChildValue(B,A,C)
}function createTextNode(B,A,C){NovaxXmlTools.createTextNode(B,A,C)}function cloneNode(A,F,B){if(F.nodeName=="#text"){var C=A.createTextNode(F.nodeValue)
}else{var C=A.createElement(F.nodeName)}var G=F.attributes;for(var D=0;G!=null&&D<G.length;
D++){C.setAttribute(G.item(D).nodeName,G.item(D).nodeValue)}if(B){for(var E=F.firstChild;
E;E=E.nextSibling){C.appendChild(cloneNode(A,E,B))}}return C}function removeAllChildNodes(A){try{while(A!=null&&A.hasChildNodes()){A.removeChild(A.firstChild)
}}catch(B){alert(A)}}function mirrorCoordArray(E,C){for(var A=0;A<E.length;A++){var B=E[A].split(",");
var D=parseFloat(B[1]);B[1]=Rect.mirrorAt(D,C);E[A]=B.join(",")}return E}function getBoundingBoxRect(A){var B=new Rect();
B.initFromMap(A,true);return B}function httpAlerter(A){if(!A.success){alert("no success on get.");
return }var B=A.content;alert("contenttype: "+A.contentType+"\nlength: "+B.length)
}function appendTitleDesc(A,D,C){var B=A.ownerDocument;var E=B.createElement("title");
E.appendChild(B.createTextNode(D));A.appendChild(E);E=B.createElement("desc");E.appendChild(B.createTextNode(C));
A.appendChild(E)}function getGetCapabilitiesRequestXML(){var A=svgdoc.createElement("GetCapabilities");
return addXMLHeader(printNode(A))}function getCookieExpire(){var C=30;var B=C*24*60*60*1000;
var A=new Date();fixDate(A);A.setTime(A.getTime()+B);return A}function alertProperties(B){var C=new Array();
for(var A in B){C.push(A+": "+typeof (B[A]))}alert(C.join("\n"))}function alertPropertyValues(B){var C=new Array();
for(var A in B){C.push(A+"="+B[A])}alert(C.join("\n"))}function getXsdDateTimeValue(A){return formatDate(new Date(A),"yyyy-MM-ddTHH:mm:ss")
}function getMillisecondsFromXsdDateTime(A){if(A!=null&&A.length==10){A+="T00:00:00"
}return getDateFromFormat(A,"yyyy-MM-ddTHH:mm:ss")}function isArray(){if(typeof arguments[0]=="object"){var A=arguments[0].constructor.toString().match(/array/i);
return(A!=null)}return false}function XML_HELPERS(){}XML_HELPERS.hasAttribute=function(C,B){try{return C.hasAttribute(B)
}catch(D){var A=C.getAttribute(B);return A!=null&&A.length>0}};XML_HELPERS.hasAttributeNS=function(D,B,C){try{return D.hasAttributeNS(B,C)
}catch(E){var A=D.getAttributeNS(B,C);return A!=null&&A.length>0}};FeatureTypeMetaInfo.CONFIGS=new HashMap();
FeatureTypeMetaInfo.add=function(A){FeatureTypeMetaInfo.CONFIGS.put(A.getType(),A)
};FeatureTypeMetaInfo.get=function(B){var A=FeatureTypeMetaInfo.CONFIGS.get(B);if(!A){alert("FeatureTypeMetaInfo "+B+" nicht gefunden!")
}return A};function FeatureTypeMetaInfo(B){this.type=B.getAttribute("typeName");this.properties=new HashMap();
this.formularGroups=new HashMap();this.details=new HashMap();this.styleAttribs=new Array();
for(var A=B.firstChild;A;A=A.nextSibling){switch(A.nodeName){case"PropertyMetaInfo":var E=new PropertyMetaInfo(A);
this.properties.put(E.getName(),E);var I=E.getFormularGroup();if(I==null||I.length==0){I=E.getTitle()
}if(this.formularGroups.containsKey(I)){this.formularGroups.get(I).push(E.getName())
}else{this.formularGroups.put(I,[E.getName()])}break;case"Detail":var H=new FtmiDetail(A);
this.details.put(H.getType(),H);break;case"Style":var C=getFirstChild(A,"Attributes");
var G=C.attributes;for(var F=0;F<G.length;F++){this.styleAttribs.push({name:G.item(F).nodeName,value:G.item(F).nodeValue})
}this.styleClassName=getFirstChildValue(A,"ClassName");break}}this.title=getFirstChildValue(B,"Title");
this.desc=getFirstChildValue(B,"Desc");this.toolTipRadius=XML_HELPERS.hasAttribute(B,"toolTipRadius")?B.getAttribute("toolTipRadius"):0;
this.len=getFirstChildValue(B,"LengthProperty");this.editable=B.getAttribute("editable")!="false";
var D=B.getAttribute("subs");this.subTypes=D==null||D.length==0?new Array():D.split(",");
this.featureTypeTitle=B.getAttribute("title");this.hasamt=B.getAttribute("hasAmt")!="false";
this.compareBy=B.getAttribute("compareBy")}FeatureTypeMetaInfo.prototype.toString=function(){return'Object [FeatureTypeMetaInfo]\ntype="'+this.getType()+'"'
};FeatureTypeMetaInfo.prototype.getType=function(){return this.type};FeatureTypeMetaInfo.prototype.getPropertyNames=function(){return this.properties.getKeys()
};FeatureTypeMetaInfo.prototype.getPropertyMetaInfo=function(A){return this.properties.get(A)
};FeatureTypeMetaInfo.prototype.getDetail=function(A){return this.details.get(A)};
FeatureTypeMetaInfo.prototype.getTitle=function(){return this.title};FeatureTypeMetaInfo.prototype.getFeatureTypeTitle=function(){return this.featureTypeTitle
};FeatureTypeMetaInfo.prototype.getStyleAttribs=function(){return this.styleAttribs
};FeatureTypeMetaInfo.prototype.getStyleClassName=function(){return this.styleClassName
};FeatureTypeMetaInfo.prototype.getDesc=function(){return this.desc};FeatureTypeMetaInfo.prototype.getLengthProperty=function(){return this.len
};FeatureTypeMetaInfo.prototype.isEditable=function(){return this.editable};FeatureTypeMetaInfo.prototype.getSubTypes=function(){return this.subTypes
};FeatureTypeMetaInfo.prototype.getFormularGroups=function(){return this.formularGroups
};FeatureTypeMetaInfo.prototype.hasAmt=function(){return this.hasamt};FeatureTypeMetaInfo.prototype.getToolTipRadius=function(){return this.toolTipRadius
};FeatureTypeMetaInfo.prototype.isCompareBySet=function(){return this.compareBy!=null&&this.compareBy.length>0
};FeatureTypeMetaInfo.prototype.getCompareBy=function(){return this.compareBy};function PropertyMetaInfo(A){this.name=A.getAttribute("propertyName");
this.title=A.getAttribute("title");this.changeable=A.getAttribute("changeable")!="false";
this.typeName=A.getAttribute("type");this.rowInTable=A.getAttribute("tableDisplay")!="hidden";
this.defaultOrderBy=A.getAttribute("tableDefaultOrderBy")=="true";this.defaultOrderByAsc=A.getAttribute("tableDefaultOrderByAsc")!="false";
this.formularGroup=A.getAttribute("formularGroup");switch(A.getAttribute("type")){case"float":this.type=new PMIFloatType(A);
break;case"datetime":this.type=new PMIDatetimeType(A);break;case"idatetime":this.type=new PMIDatetimeType(A,true);
break;case"date":this.type=new PMIDateType(A);break;case"boolean":this.type=new PMIBooleanType(A);
break;case"feature":this.type=new PMIFeatureType(A);break;case"select":this.type=new PMISelectType(A);
break;case"artsp_bild":this.type=new PMIArtspBildType(A);break;case"artsp_text":this.type=new PMIArtspTextType(A);
break;default:case"text":this.type=new PMITextType(A);break}}PropertyMetaInfo.prototype.getName=function(){return this.name
};PropertyMetaInfo.prototype.getTitle=function(){return this.title};PropertyMetaInfo.prototype.getTypeName=function(){return this.typeName
};PropertyMetaInfo.prototype.getType=function(){return this.type};PropertyMetaInfo.prototype.getFormularGroup=function(){return this.formularGroup
};PropertyMetaInfo.prototype.toString=function(){return'Object [PropertyMetaInfo]\nname="'+this.getName()+'"'
};PropertyMetaInfo.prototype.toInputString=function(A){return this.type.toInputString(A)
};PropertyMetaInfo.prototype.fromInputString=function(A){return this.type.fromInputString(A)
};PropertyMetaInfo.prototype.validate=function(A){return this.type.validate(A)};PropertyMetaInfo.prototype.isChangeable=function(){return this.changeable
};PropertyMetaInfo.prototype.getMaxLength=function(){return this.type.getMaxLength()
};PropertyMetaInfo.prototype.isRowInTable=function(){return this.rowInTable};PropertyMetaInfo.prototype.isDefaultOrderBy=function(){return this.defaultOrderBy
};PropertyMetaInfo.prototype.isDefaultOrderByAsc=function(){return this.defaultOrderByAsc
};PropertyMetaInfo.prototype.isFeatureType=function(){return this.typeName=="feature"
};PMITextType.prototype.constructor=PMITextType;function PMITextType(A){this.maxLength=parseInt(A.getAttribute("maxLength"))
}PMITextType.prototype.toInputString=function(A){return A==null?"":A};PMITextType.prototype.fromInputString=function(A){return A
};PMITextType.prototype.getMaxLength=function(){return this.maxLength};PMITextType.prototype.validate=function(A){return true
};PMIFeatureType.prototype.constructor=PMIFeatureType;function PMIFeatureType(A){if(arguments.length==0){return 
}this.init(A)}PMIFeatureType.prototype.init=function(A){this.typeName=A.getAttribute("typeName");
this.unique=A.getAttribute("unique")!="false"};PMIFeatureType.prototype.getFeatureTypeName=function(){return this.typeName
};PMIFeatureType.prototype.isUnique=function(){return this.unique};PMIFeatureType.prototype.getTitleProperty=function(){return this.typeName
};PMIFeatureType.prototype.toInputString=function(A){return A==null?"":A};PMIFeatureType.prototype.fromInputString=function(A){return A
};PMIFeatureType.prototype.getMaxLength=function(){return this.maxLength};PMIFeatureType.prototype.validate=function(A){return true
};PMISelectType.prototype=new PMIFeatureType();PMISelectType.prototype.constructor=PMISelectType;
PMISelectType.superclass=PMIFeatureType.prototype;function PMISelectType(A){this.init(A)
}PMIDateType.prototype.constructor=PMIDateType;function PMIDateType(A){if(arguments.length==0){return 
}this.init("dd.MM.yyyy")}PMIDateType.prototype.init=function(A,B){this.format=A;this.replaceZero=B
};PMIDateType.prototype.toInputString=function(B){if(B==null||B==""){return""}var A=formatDate(new Date(getMillisecondsFromXsdDateTime(B)),this.format);
if(this.replaceZero){return A.replace(" 00:00","")}return A};PMIDateType.prototype.fromInputString=function(B){B=DateStringConverter.convert(B,this.format);
if(this.format.length==10){var A=" 00:00:00"}else{var A=":00"}return B==null||B==""?null:getXsdDateTimeValue(getDateFromFormat(B+A,"dd.MM.yyyy HH:mm:ss"))
};PMIDateType.prototype.getMaxLength=function(){return this.format.length};PMIDateType.prototype.validate=function(A){if(!isDate(DateStringConverter.convert(A,this.format),this.format)){alert("Bitte geben Sie das Datum im Format "+this.format+" ein.");
return false}return true};PMIDateType.prototype.getFormatPattern=function(){return this.format
};PMIDatetimeType.prototype=new PMIDateType();PMIDatetimeType.prototype.constructor=PMIDatetimeType;
PMIDatetimeType.superclass=PMIDateType.prototype;function PMIDatetimeType(A,B){this.init("dd.MM.yyyy HH:mm",B)
}function PMIFloatType(A){this.decimals=A.getAttribute("decimals");this.min=parseFloat(A.getAttribute("min"));
this.max=parseFloat(A.getAttribute("max"))}PMIFloatType.prototype.toInputString=function(A){return A==null||A==""?"":parseFloat(A).toFixed(this.decimals).replace(".",",")
};PMIFloatType.prototype.fromInputString=function(A){return A==null?"":A.replace(",",".")
};PMIFloatType.prototype.getMaxLength=function(){return(""+this.max).length};PMIFloatType.prototype.validate=function(A){if(A==null||A.length==0){return true
}if(isNaN(parseFloat(this.fromInputString(A)))){alert("Bitte geben Sie eine Zahl ein.");
return false}if(A<this.min||A>this.max){alert("Wertebereich: "+this.min+" - "+this.max);
return false}return true};function PMIBooleanType(A){}PMIBooleanType.prototype.toInputString=function(A){return A
};PMIBooleanType.prototype.fromInputString=function(A){return A};PMIBooleanType.prototype.getMaxLength=function(){return 1
};PMIBooleanType.prototype.validate=function(A){return true};function PMIArtspBildType(A){}PMIArtspBildType.prototype.toInputString=function(A){switch(A){case"A":return'<img width="13" height="13" src="'+IMAGE_DIR+'stvo/101.gif" title="Verkehrssicherung"/><span class="notvis">Verkehrssicherung</span>';
case"B":return'<img width="13" height="13" src="'+IMAGE_DIR+'stvo/123.gif" title="Verkehrsbeschränkung"/><span class="notvis">Verkehrsbeschränkung</span>';
case"C":return'<img width="13" height="13" src="'+IMAGE_DIR+'stvo/123.gif" title="Halbseitige Sperrung"/><span class="notvis">Halbseitige Sperrung</span>';
case"D":return'<img width="13" height="13" src="'+IMAGE_DIR+'stvo/250.gif" title="Gesamtsperrung"/><span class="notvis">Gesamtsperrung</span>';
case"F":return'<img width="13" height="13" src="'+IMAGE_DIR+'stvo/123.gif" title="Eine Richtung Vollsperrung"/><span class="notvis">Eine Richtung Vollsperrung</span>'
}return A};PMIArtspBildType.prototype.fromInputString=function(A){return A};PMIArtspBildType.prototype.getMaxLength=function(){return 1
};PMIArtspBildType.prototype.validate=function(A){return true};function PMIArtspTextType(A){}PMIArtspTextType.prototype.toInputString=function(A){switch(A){case"A":return"Verkehrssicherung";
case"B":return"Verkehrsbeschränkung";case"C":return"Halbseitige Sperrung";case"D":return"Gesamtsperrung";
case"F":return"Eine Richtung Vollsperrung"}return A};PMIArtspTextType.prototype.fromInputString=function(A){return A
};PMIArtspTextType.prototype.getMaxLength=function(){return 1};PMIArtspTextType.prototype.validate=function(A){return true
};function FtmiDetail(B){this.type=B.getAttribute("typeName");this.properties=new HashMap();
for(var A=B.firstChild;A;A=A.nextSibling){if(A.nodeName=="Property"){var C=new FtmiDetailProperty(A);
this.properties.put(C.getName(),C)}}}FtmiDetail.prototype.toString=function(){return"Object [FtmiDetail]\ntype="+this.getType()+" propertiesCount="+this.properties.size()
};FtmiDetail.prototype.getType=function(){return this.type};FtmiDetail.prototype.getPropertyNames=function(){return this.properties.getKeys()
};FtmiDetail.prototype.getProperty=function(A){return this.properties.get(A)};function FtmiDetailProperty(A){this.name=A.getAttribute("name");
this.detailProperty=A.getAttribute("detailProperty");this.mode=A.getAttribute("mode");
this.delimiter=A.getAttribute("delimiter")}FtmiDetailProperty.prototype.toString=function(){return"Object [FtmiDetailProperty]\nname="+this.name+" detailProperty="+this.detailProperty+" mode="+this.mode
};FtmiDetailProperty.prototype.getName=function(){return this.name};FtmiDetailProperty.prototype.getDetailProperty=function(){return this.detailProperty
};FtmiDetailProperty.prototype.getMode=function(){return this.mode};FtmiDetailProperty.prototype.getDelimiter=function(){return this.delimiter
};DataSource.ALL_SOURCES=new Array();DataSource.add=function(B){var A=B.getName();
DataSource.ALL_SOURCES[A]=B};DataSource.get=function(A){return DataSource.ALL_SOURCES[A]
};DataSource.exists=function(A){return DataSource.ALL_SOURCES[A]!=null};DataSource.allInitialized=function(){return true
};DataSource.prototype.constructor=DataSource;function DataSource(C,B,A){if(arguments.length==0){return 
}this.init(C,B,A)}DataSource.prototype.init=function(C,B,A){this.initialized=false;
this.observers=new Observers();this.name=C;this.url=B;this.onlineResources=new Array();
this.layers=new Array();for(var E=A.firstChild;E;E=E.nextSibling){if(E.nodeName=="Layer"){var C=E.getAttribute("name");
var D=this.createLayer(E);D.setDatasource(this);this.layers[C]=D}}};DataSource.prototype.getLayer=function(A){return this.layers[A]
};DataSource.prototype.containsLayer=function(A){return this.getLayer(A)!=null};DataSource.prototype.toString=function(){return["Name: "+this.name,"URL:"+this.url].join("\n")
};DataSource.prototype.getName=function(){return this.name};DataSource.prototype.isInitialized=function(){return this.initialized
};DataSource.prototype.setInitialized=function(A){this.initialized=A;this.observers.notify("datasourceInitialized",this)
};DataSource.prototype.attachObserver=function(A){this.observers.attach(A)};DataSource.prototype.detachObserver=function(A){this.observers.detach(A)
};DataSource.prototype.getFeatureTypeMetaInfo=function(A){var B=FeatureTypeMetaInfo.get(A);
return B};DataSource.prototype.getOnlineResource=function(A){if(this.onlineResources.length==0){return this.url
}return this.onlineResources[A]};WebMapServer.prototype=new DataSource();WebMapServer.prototype.constructor=WebMapServer;
WebMapServer.superclass=DataSource.prototype;function WebMapServer(C,B,A){if(arguments.length==0){return 
}this.init(C,B,A)}WebMapServer.prototype.init=function(C,B,A){WebMapServer.superclass.init.call(this,C,B,A);
this.next=0;this.setInitialized(true)};WebMapServer.prototype.toString=function(){return"WebMapServer\n"+WebMapServer.superclass.toString.call(this)
};WebMapServer.prototype.createLayer=function(A){return new WMSLayer(A)};WebMapServer.prototype.getOnlineResource=function(B){if(false){if(this.next==3){this.next=0
}var A=this.url+this.next;this.next++;return A}if(this.onlineResources.length==0){return this.url
}return this.onlineResources[B]};WebFeatureServer.prototype=new DataSource();WebFeatureServer.prototype.constructor=DataSource;
WebFeatureServer.superclass=DataSource.prototype;function WebFeatureServer(C,B,A){if(arguments.length==0){return 
}this.init(C,B,A)}WebFeatureServer.prototype.init=function(C,B,A){WebFeatureServer.superclass.init.call(this,C,B,A);
this.setInitialized(true)};WebFeatureServer.prototype.toString=function(){return"WebFeatureServer\n"+WebFeatureServer.superclass.toString.call(this)
};WebFeatureServer.prototype.createLayer=function(A){return new WFSLayer(A)};WebFeatureServer.prototype.postRequest=function(G,C,D){var A=Sarissa.getDomDocument();
var H=G.getRequestName();var B=G.createNode(A);var F=this.getOnlineResource(H);if(F==null){alert(this+"\nOnline Resource for request "+H+" nicht bekannt.");
return }if(top.getAppConfig&&top.getAppConfig().getUserSetting("settings_debug")=="1"){alert(this+'\nPOST Request "'+H+'" to "'+F+'"\nwith node\n'+printNode(B))
}var E=new HTTPClient(true,'WFS "'+this.getName()+'" post Request "'+G.toString()+'"');
E.attachObserver(new HTTPClientCallBackObserver(C,D,A));E.postURL(F,addXMLHeader(new XMLSerializer().serializeToString(B)),"text/xml; charset=UTF-8","UTF-8");
B=null};WebFeatureServer.prototype.saveFeature=function(A,B){if(A.getId()==null){this.insertFeature(A,B,"wfsInserted")
}else{this.updateFeature(A,B,"wfsUpdated")}};WebFeatureServer.prototype.insertFeature=function(B,D,F){var A=new WFSTransaction();
var C=new WFSInsert(B);A.add(C);var E=this;this.postRequest(A,{cbo:D,cboFn:F,wfsInsert:C,wfs:E,posted:function(G,L){var N=this.wfsInsert.getUpdates();
var H=null;var M=/gml:id=\'([^\']+)\'/;if(M.test(L)){var J=M.exec(L);H=J[1]}if(H!=null&&N.length>0){var O=this.wfsInsert.feature.getNode().ownerDocument;
var K=new Feature(O.createElement(this.wfsInsert.feature.getType()));K.setId(H);for(var I=0;
I<N.length;I++){K.setReferenceId(N[I].name,N[I].value)}this.wfs.updateFeature(K,this.cbo,this.cboFn)
}else{this.cbo[this.cboFn](H,L)}}},"posted")};WebFeatureServer.prototype.updateFeature=function(B,C,D){var A=new WFSTransaction();
A.add(new WFSUpdate(B)).addFilter(new OGCFilter()).addOperator(new OGCOperatorFeatureId(B.getId()));
this.postRequest(A,{posted:function(F,E){C[D](E.indexOf("SUCCESS")>-1,E)}},"posted")
};WebFeatureServer.prototype.getFeature=function(A,D,C,E){var B=new OGCFilter();B.addOperator(new OGCOperatorFeatureId(D));
this.getFeatureByFilter(A,B,null,C,E)};WebFeatureServer.prototype.getFeatureByFilter=function(B,D,A,G,H){var F=new WFSQuery(B);
F.addFilter(D);if(A!=null&&A.length>0){for(var C=0;C<A.length;C++){F.addPropertyName(A[C])
}}var E=new WFSGetFeature();E.addQuery(F);this.postRequest(E,{posted:function(J,I){var K=new FeatureParser();
G[H](K.getFeature(J))}},"posted")};WebFeatureServer.prototype.getEnvelopeByFilter=function(A,B,E,F){var D=new WFSQuery(A);
D.addFilter(B);var C=new WFSGetEnvelope();C.addQuery(D);this.postRequest(C,{posted:function(H,G){var I=new FeatureParser();
E[F](I.getEnvelope(H))}},"posted")};WebFeatureServer.prototype.getFeaturesByFilter=function(B,D,A,G,H){var F=new WFSQuery(B);
if(D!=null){F.addFilter(D)}if(A!=null&&A.length>0){for(var C=0;C<A.length;C++){F.addPropertyName(A[C])
}}var E=new WFSGetFeature();E.addQuery(F);this.postRequest(E,{posted:function(J,I){var K=new FeatureParser();
G[H](K.getFeatures(J))}},"posted")};WebFeatureServer.prototype.deleteFeature=function(C,D,E){var B=new WFSTransaction();
var A=new WFSDelete(C.getType());B.add(A).addFilter(new OGCFilter()).addOperator(new OGCOperatorFeatureId(C.getId()));
this.postRequest(B,{posted:function(G,F){D[E](F.indexOf("SUCCESS")>-1,F)}},"posted")
};WebFeatureServer.prototype.deleteMultiple=function(F,D,E,G){var C=new WFSTransaction();
for(var B=0;B<F.length;B++){var A=new WFSDelete(F[B]);A.addFilter(D);C.add(A)}this.postRequest(C,{posted:function(I,H){E[G](H.indexOf("SUCCESS")>-1,H)
}},"posted")};WebFeatureServer.prototype.createFeature=function(A){return new Feature(top.getSvgdoc().createElement(A))
};function RefreshObserver(B,A){this.mapLayer=B;this.mainMap=A}RefreshObserver.prototype.datasourceInitialized=function(A){A.refresh(this.mapLayer,this.mainMap);
A.detachObserver(this)};OGCRequest.prototype.constructor=OGCRequest;function OGCRequest(A,B){if(arguments.length==0){return 
}this.init(A,B)}OGCRequest.prototype.init=function(A,B){this.datasource=A;this.name=B;
this.response=null;this.observers=new Observers()};OGCRequest.prototype.send=function(){throw new Error("OGCRequest send() nicht implementiert.")
};OGCRequest.prototype.attach=function(A){this.observers.attach(A)};OGCRequest.prototype.getResponse=function(){return this.response
};OGCRequest.prototype.setResponse=function(A){this.response=A;this.observers.notify("responseSet",this)
};WMSGetMapRequest.prototype=new OGCRequest();WMSGetMapRequest.prototype.constructor=WMSGetMapRequest;
WMSGetMapRequest.superclass=OGCRequest.prototype;function WMSGetMapRequest(A){if(arguments.length==0){return 
}this.init(A,"GetMap")}WMSGetMapRequest.prototype.setUrlParams=function(A){this.urlParams=A
};WMSGetMapRequest.prototype.send=function(){var A=this.datasource.getOnlineResource(this.name)+"?request="+this.name+"&"+this.urlParams.join("&");
var C=AppConfig.getParam("wmsBase64ProxyUrl");if(Novax.isEmptyString(C)||(_SARISSA_IS_IE&&(!_NOVAX_IS_SVG))){this.setResponse(A)
}else{var B=new HTTPClient(true,'WMS "'+this.datasource.getName()+'" GetMap');B.attachObserver(new HTTPClientCallBackObserver(this,"sent"));
B.getURL(C+"?url="+escape(A))}};WMSGetMapRequest.prototype.sent=function(A){this.setResponse("data:;base64,"+A)
};WFSGetFeatureRequest.prototype=new OGCRequest();WFSGetFeatureRequest.prototype.constructor=WFSGetFeatureRequest();
WFSGetFeatureRequest.superclass=OGCRequest.prototype;function WFSGetFeatureRequest(A){if(arguments.length==0){return 
}this.init(A)}WFSGetFeatureRequest.prototype.init=function(A){this.delegate=new WFSGetFeature();
WFSGetFeatureRequest.superclass.init.call(this,A,this.delegate.getRequestName())};
WFSGetFeatureRequest.prototype.addQuery=function(A){return this.delegate.addQuery(A)
};WFSGetFeatureRequest.prototype.send=function(){var A=this;this.datasource.postRequest(this.delegate,{request:A,posted:function(C,B){this.request.setResponse(C)
}},"posted")};WFSRequest.prototype.constructor=WFSRequest;function WFSRequest(A){if(arguments.length==0){return 
}this.init(A)}WFSRequest.prototype.init=function(A){this.name=A};WFSRequest.prototype.toString=function(){return this.getRequestName()
};WFSRequest.prototype.getRequestName=function(){return this.name};WFSRequest.prototype.createNode=function(A){var B=A.createElement(this.getRequestName());
B.setAttribute("xmlns","http://www.opengis.net/wfs");B.setAttribute("xmlns:ogc","http://www.opengis.net/ogc");
B.setAttribute("xmlns:gml","http://www.opengis.net/gml");B.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink");
B.setAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");B.setAttribute("xsi:schemaLocation","http://www.opengis.net/wfs http://xml.novasib.de/schema//ogc/wfs/1.0.0/WFS-basic.xsd");
B.setAttribute("service","WFS");B.setAttribute("version","1.0.0");return B};WFSGetFeature.prototype=new WFSRequest();
WFSGetFeature.prototype.constructor=WFSGetFeature;WFSGetFeature.superclass=WFSRequest.prototype;
function WFSGetFeature(A){if(A){return }this.init("GetFeature")}WFSGetFeature.prototype.init=function(A){WFSGetFeature.superclass.init.call(this,A);
this.queries=new Array()};WFSGetFeature.prototype.toString=function(){return WFSGetFeature.superclass.toString.call(this)+"["+this.queries.join(", ")+"]"
};WFSGetFeature.prototype.addQuery=function(A){this.queries.push(A);return A};WFSGetFeature.prototype.createNode=function(A){var C=WFSGetFeature.superclass.createNode.call(this,A);
for(var B=0;B<this.queries.length;B++){this.queries[B].exportXML(C)}return C};WFSGetEnvelope.prototype=new WFSGetFeature(true);
WFSGetEnvelope.prototype.constructor=WFSGetEnvelope;WFSGetEnvelope.superclass=WFSGetFeature.prototype;
function WFSGetEnvelope(){this.init("GetEnvelope")}WFSTransaction.prototype=new WFSRequest();
WFSTransaction.prototype.constructor=WFSTransaction;WFSTransaction.superclass=WFSRequest.prototype;
function WFSTransaction(){this.init("Transaction")}WFSTransaction.prototype.init=function(A){WFSTransaction.superclass.init.call(this,A);
this.operations=new Array()};WFSTransaction.prototype.toString=function(){return WFSTransaction.superclass.toString.call(this)+" "+this.operations.join(", ")
};WFSTransaction.prototype.add=function(A){this.operations.push(A);return A};WFSTransaction.prototype.createNode=function(A){var C=WFSTransaction.superclass.createNode.call(this,A);
for(var B=0;B<this.operations.length;B++){this.operations[B].exportXML(C)}return C
};function WFSQuery(A){this.typeName=A;this.propertyNames=new Array();this.filters=new Array()
}WFSQuery.prototype.toString=function(){return"typ: "+this.typeName};WFSQuery.prototype.addPropertyName=function(A){this.propertyNames.push(A);
return A};WFSQuery.prototype.addFilter=function(A){this.filters.push(A);return A};
WFSQuery.prototype.exportXML=function(C){var D=C.ownerDocument;var A=D.createElement("Query");
A.setAttribute("typeName",this.typeName);for(var B=0;B<this.propertyNames.length;
B++){setChildValue(A,"PropertyName",this.propertyNames[B])}for(var B=0;B<this.filters.length;
B++){this.filters[B].exportXML(A)}C.appendChild(A)};function WFSInsert(A){this.feature=A
}WFSInsert.prototype.toString=function(){return"Insert"};WFSInsert.prototype.exportXML=function(B){var C=B.ownerDocument;
var A=C.createElement("Insert");this.updates=this.feature.exportXMLInsert(A);B.appendChild(A)
};WFSInsert.prototype.getUpdates=function(){return this.updates};function WFSUpdate(A){this.feature=A;
this.filters=new Array()}WFSUpdate.prototype.toString=function(){return"Update"};
WFSUpdate.prototype.addFilter=function(A){this.filters.push(A);return A};WFSUpdate.prototype.exportXML=function(C){var D=C.ownerDocument;
var A=D.createElement("Update");A.setAttribute("typeName",this.feature.getType());
this.feature.exportXMLUpdate(A);for(var B=0;B<this.filters.length;B++){this.filters[B].exportXML(A)
}C.appendChild(A)};function WFSDelete(A){this.typeName=A;this.filters=new Array()
}WFSDelete.prototype.toString=function(){return"Delete"};WFSDelete.prototype.addFilter=function(A){this.filters.push(A);
return A};WFSDelete.prototype.exportXML=function(C){var D=C.ownerDocument;var B=D.createElement("Delete");
B.setAttribute("typeName",this.typeName);for(var A=0;A<this.filters.length;A++){this.filters[A].exportXML(B)
}C.appendChild(B)};function OGCFilter(){this.operators=new Array()}OGCFilter.prototype.toString=function(){return"Object [OGCFilter]"
};OGCFilter.prototype.addOperator=function(A){this.operators.push(A);return A};OGCFilter.prototype.exportXML=function(B){var D=B.ownerDocument;
var C=D.createElement("ogc:Filter");for(var A=0;A<this.operators.length;A++){this.operators[A].exportXML(C)
}B.appendChild(C)};function OGC(){}OGC.AND="And";OGC.OR="Or";OGC.NOT="Not";OGC.Eq="PropertyIsEqualTo";
OGC.NEq="PropertyIsNotEqualTo";OGC.IsNull="PropertyIsNull";OGC.Gt_OR_Eq="PropertyIsGreaterThanOrEqualTo";
OGC.Lt_OR_Eq="PropertyIsLessThanOrEqualTo";OGC.Like="PropertyIsLike";AbstractOGCOperator.prototype.constructor=AbstractOGCOperator;
function AbstractOGCOperator(){}AbstractOGCOperator.prototype.and=function(A){if(A==null){return this
}var B=new OGCLogicalOperator2(OGC.AND);B.addOperator(this);B.addOperator(A);return B
};AbstractOGCOperator.prototype.or=function(A){if(A==null){return this}var B=new OGCLogicalOperator2(OGC.OR);
B.addOperator(this);B.addOperator(A);return B};AbstractOGCOperator.prototype.not=function(){var A=new OGCLogicalOperator2(OGC.NOT);
A.addOperator(this);return A};OGCLogicalOperator2.prototype=new AbstractOGCOperator();
OGCLogicalOperator2.prototype.constructor=OGCLogicalOperator2;OGCLogicalOperator2.superclass=AbstractOGCOperator.prototype;
function OGCLogicalOperator2(A){if(arguments.length==0){return }this.init(A)}OGCLogicalOperator2.prototype.init=function(A){this.operators=new Array();
this.logic=A};OGCLogicalOperator2.prototype.addOperator=function(A){this.operators.push(A);
return A};OGCLogicalOperator2.prototype.exportXML=function(C){if(this.operators.length==0){return 
}var D=C.ownerDocument;var B=D.createElement("ogc:"+this.logic);for(var A=0;A<this.operators.length;
A++){this.operators[A].exportXML(B)}C.appendChild(B)};OGCLogicalOperator2.prototype.toString=function(){return"[object OGCLogicalOperator2] logic="+this.logic
};OGCLogicalOperator.prototype=new AbstractOGCOperator();OGCLogicalOperator.prototype.constructor=OGCLogicalOperator;
OGCLogicalOperator.superclass=AbstractOGCOperator.prototype;function OGCLogicalOperator(A){if(arguments.length==0){return 
}this.init(A)}OGCLogicalOperator.prototype.init=function(A){this.ands=new Array();
this.logic=A};OGCLogicalOperator.prototype.addOperator=function(A){this.ands.push(A);
return A};OGCLogicalOperator.prototype.exportXML=function(C){if(this.ands.length==0){return 
}if(this.ands.length==1&&this.logic!=OGC.NOT){this.ands[0].exportXML(C);return }var F=null;
if(this.ands.length<2){F=this}else{var E=null;for(var B=0;B<this.ands.length;B=B+2){if(this.ands.length>B+1){var H=new OGCLogicalOperator(this.logic);
H.addOperator(this.ands[B]);H.addOperator(this.ands[B+1]);if(E==null){E=H}else{var A=new OGCLogicalOperator(this.logic);
A.addOperator(E);A.addOperator(H);E=A}}else{var H=new OGCLogicalOperator(this.logic);
H.addOperator(E);H.addOperator(this.ands[B]);E=H}}F=E}var D=C.ownerDocument;var G=D.createElement("ogc:"+this.logic);
for(var B=0;B<F.ands.length;B++){F.ands[B].exportXML(G)}C.appendChild(G)};OGCComparisonOperator.prototype=new AbstractOGCOperator();
OGCComparisonOperator.prototype.constructor=OGCComparisonOperator;OGCComparisonOperator.superclass=AbstractOGCOperator.prototype;
function OGCComparisonOperator(A,C,B){if(arguments.length==0){return }this.init(A,C,B)
}OGCComparisonOperator.prototype.init=function(A,C,B){this.name=A;this.value=C;this.type=B
};OGCComparisonOperator.prototype.exportXML=function(B){var C=B.ownerDocument;var A=C.createElement("ogc:"+this.type);
if(this.type==OGC.Like){A.setAttribute("wildCard","%");A.setAttribute("singleChar","%");
A.setAttribute("escape","\\\\")}setChildValue(A,"ogc:PropertyName",this.name);if(this.type!=OGC.IsNull){setChildValue(A,"ogc:Literal",this.value)
}B.appendChild(A)};OGCOperatorFeatureId.prototype=new AbstractOGCOperator();OGCOperatorFeatureId.prototype.constructor=OGCOperatorFeatureId;
OGCOperatorFeatureId.superclass=AbstractOGCOperator.prototype;function OGCOperatorFeatureId(A){if(arguments.length==0){return 
}this.init(A)}OGCOperatorFeatureId.prototype.init=function(A){this.fid=A};OGCOperatorFeatureId.prototype.exportXML=function(B){var C=B.ownerDocument;
var A=C.createElement("ogc:FeatureId");A.setAttribute("fid",this.fid);B.appendChild(A)
};OGCOperatorBoundingBox.prototype=new AbstractOGCOperator();OGCOperatorBoundingBox.prototype.constructor=OGCOperatorBoundingBox;
OGCOperatorBoundingBox.superclass=AbstractOGCOperator.prototype;function OGCOperatorBoundingBox(B,C,A){if(arguments.length==0){return 
}this.init(B,C,A)}OGCOperatorBoundingBox.prototype.init=function(B,C,A){this.propertyName=B;
this.rect=C;this.srid=A};OGCOperatorBoundingBox.prototype.exportXML=function(A){var C=A.ownerDocument;
var B=C.createElement("ogc:BBOX");setChildValue(B,"ogc:PropertyName",this.propertyName);
B.appendChild(this.rect.getBoxNode(C,this.srid));A.appendChild(B)};function Layer(A){if(arguments.length==0){return 
}this.init(A)}Layer.prototype.init=function(A){this.names=new Array()};Layer.prototype.getNames=function(){return this.names
};Layer.prototype.addName=function(A){this.names.push(A)};Layer.prototype.toString=function(){return["Layer",this.getNames().join(", ")].join("\n")
};Layer.prototype.setDatasource=function(A){this.datasource=A};Layer.prototype.getDatasource=function(){return this.datasource
};Layer.prototype.setRenderer=function(A){this.renderer=A};Layer.prototype.clear=function(){};
WMSLayer.prototype=new Layer();WMSLayer.prototype.constructor=Layer;WMSLayer.superclass=Layer.prototype;
function WMSLayer(A){if(arguments.length==0){return }this.init(A)}WMSLayer.prototype.init=function(A){WMSLayer.superclass.init.call(this,A);
this.styles=new Array();var B=A.getElementsByTagName("Layer");for(var C=0;C<B.length;
C++){this.addName(B.item(C).getAttribute("name"));this.styles.push("default")}this.params=this._extractRequestParams(A)
};WMSLayer.prototype.getStyles=function(){return this.styles};WMSLayer.prototype.getParams=function(A){return this.params[A]
};WMSLayer.prototype._extractRequestParams=function(B){var G=new Array();var C=B.getElementsByTagName("requestparams");
for(var F=0;F<C.length;F++){var I=C.item(F).getAttribute("request");var D=new Array();
var H=C.item(F).getElementsByTagName("param");for(var E=0;E<H.length;E++){var A=H.item(E);
D.push(escape(A.getAttribute("name"))+"="+escape(A.getAttribute("value")))}G[I]=D
}return G};WMSLayer.prototype.refresh=function(C){if(this.getNames().length==0){return 
}var G=C.getContainerNode();if(G.getAttribute("visibility")=="hidden"){return }var F=C.getView().clone();
F.mirrorAt(null,top.Y_MIRROR);var A=C.getViewport();var B=this.getParams("GetMap").cloneArray();
B.push("bbox="+F.getCoordinates(","));B.push("srs="+AppConfig.getParam("srid"));B.push("layers="+this.getNames().join(","));
B.push("styles="+this.getStyles().join(","));B.push("width="+A.getWidth());B.push("height="+A.getHeight());
var D=C.getFeatureFilter();if(D&&D.getUrlParams){D.getUrlParams().map(function(H){B.push("DIM_"+H)
})}var E=new WMSGetMapRequest(this.getDatasource());E.setUrlParams(B);E.attach({mapLayer:C,responseSet:function(H){C.imageHrefSet(H.getResponse())
}});E.send()};WFSLayer.prototype=new Layer();WFSLayer.prototype.constructor=WFSLayer;
WFSLayer.superclass=Layer.prototype;function WFSLayer(A){if(arguments.length==0){return 
}this.init(A)}WFSLayer.prototype.init=function(A){WFSLayer.superclass.init.call(this,A);
this.featureCollection=new FeatureCollection();this.styles=new Array();this.configs=new Array();
var B=A.getElementsByTagName("FeatureType");for(var D=0;D<B.length;D++){var E=B.item(D);
var C=E.getAttribute("name");this.addName(C)}};WFSLayer.prototype.addFeature=function(A){if(this.featureCollection.containsFeature(A)){return 
}this.featureCollection.put(A);this.renderer.featureAdded(A)};WFSLayer.prototype.featuresParsed=function(){this.renderer.featuresParsed()
};WFSLayer.prototype.getFeature=function(A){return this.featureCollection.get(A)};
WFSLayer.prototype.refresh=function(B){if(this.getNames().length==0){return }var F=B.getView().clone();
F.mirrorAt(null,top.Y_MIRROR);var G=new OGCOperatorBoundingBox("GEOMETRY",F,AppConfig.getParam("srid"));
var D=new OGCFilter();D.addOperator(G.and(B.getFeatureFilter()?B.getFeatureFilter().getOperator():null));
var E=new WFSGetFeatureRequest(this.getDatasource());var A=this.getNames();for(var C=0;
C<A.length;C++){E.addQuery(new WFSQuery(A[C])).addFilter(D)}var H=new FeatureParser(this);
E.attach(H);E.send()};WFSLayer.prototype.clear=function(){this.featureCollection.clear()
};FeatureCollection.prototype=new HashMap(false);FeatureCollection.constructor=FeatureCollection;
FeatureCollection.superclass=HashMap.prototype;function FeatureCollection(){this.init()
}FeatureCollection.prototype.put=function(A){FeatureCollection.superclass.put.call(this,A.getId(),A)
};FeatureCollection.prototype.remove=function(A){FeatureCollection.superclass.remove.call(this,A.getId())
};FeatureCollection.prototype.containsFeature=function(A){return this.containsKey(A.getId())
};FeatureCollection.prototype.toString=function(){return"Object [FeatureCollection]"
};function UserConfig(D,F){var B=getFirstChildValue(D,"AccessListUrl");if(B==null){throw new Error(this+"\n kein knoten AccessListUrl")
}var E=getFirstChildValue(D,"datasourceName");if(E==null){throw new Error(this+"\n kein knoten datasourceName")
}this.ds=DataSource.get(E);if(this.ds==null){throw new Error(this+'\nDataSource "'+E+'" ist null')
}var A=getFirstChildValue(D,"UserManagerUrl");if(A==null){throw new Error(this+"\n kein knoten UserManagerUrl")
}this.userManager=new UserManager(A);this.initialized=false;this.acl=new ACL();this.amt="";
this.initWaitFor=new WaitFor();this.initWaitFor.attach(F);this.initWaitFor.start();
var C=new HTTPClient(true,MESSAGE_USER_CONFIG_INIT);C.attachObserver(new HTTPClientCallBackObserver(this,"initACL"));
C.getURL(B)}UserConfig.prototype.toString=function(){return"Object [UserConfig]"};
UserConfig.prototype.initACL=function(D){this.acl.init(D);var B=this.acl.getName();
if(B==""){throw new Error(this+"\nACL-Username ist leer!")}var C=new OGCFilter();
C.addOperator(new OGCComparisonOperator("UNAME",this.acl.getName(),OGC.Eq));var A=this;
this.initWaitFor.start();this.ds.getFeatureByFilter("UKUSER",C,null,{clr:A,uname:B,got:function(E){if(E!=null){this.clr.feature=E
}else{alert('Der Nutzer "'+this.uname+'" ist keinem Amt zugewiesen.');this.clr.amt=null
}this.clr.initWaitFor.finish()}},"got");this.initWaitFor.finish()};UserConfig.prototype.isInitialized=function(){return this.initialized
};UserConfig.prototype.getACL=function(){return this.acl};UserConfig.prototype.isSysadmin=function(){return"SYSADMIN"==this.getAmt()
};UserConfig.prototype.getAmt=function(){return this.feature.getPropertyValue("AMT")
};UserConfig.prototype.getAmtOgcOperator=function(){if(this.isSysadmin()){return null
}return new OGCComparisonOperator("AMT",this.getAmt(),OGC.Eq)};UserConfig.prototype.getProperty=function(A){switch(A){case"DEFAULT_DOKSPERR_FID":return this.feature.getReferenceId("default_doksperr");
case"DEFAULT_DOKSPANORD_FID":return this.feature.getReferenceId("default_dokspanord")
}};UserConfig.prototype.setProperty=function(A,B){switch(A){case"DEFAULT_DOKSPERR_FID":return this.feature.setReferenceId("default_doksperr",B);
case"DEFAULT_DOKSPANORD_FID":return this.feature.setReferenceId("default_dokspanord",B)
}};UserConfig.prototype.update=function(A,B){this.ds.updateFeature(this.feature,A,B)
};UserConfig.prototype.getUserManager=function(){return this.userManager};function ACL(){this.groups=new Array()
}ACL.prototype.toString=function(){return"Object [ACL]"};ACL.prototype.init=function(A){this.node=A;
this.initialized=true};ACL.prototype.getName=function(){if(this.node==null){return""
}var A=getFirstChild(this.node,"user");if(A==null){return""}return A.getAttribute("name")
};ACL.prototype.hasPermission=function(D,A){if(this.groups[D]==null){this.groups[D]=new Array();
for(var B=this.node.firstChild;B;B=B.nextSibling){if(B.nodeName=="group"&&B.getAttribute("name")==D){var E=getFirstChild(B,"permissions");
for(var C=E.firstChild;C;C=C.nextSibling){if(C.nodeName=="name"){this.groups[D].push(C.firstChild.nodeValue)
}}}}}return this.groups[D].inArray(A)};function UserManager(A){this.url=A}UserManager.prototype.grantRole=function(A,D,G,C,F){var E=new UrlParams();
E.push("function","grantRole");E.push("UNAME",A);E.push("GROUP_NAME",D);E.push("ROLE_NAME",G);
var B=new HTTPClient(true,"UserManager grantRole");B.attachObserver(new HTTPClientCallBackObserver(C,F));
B.getURL(this.url+"?"+E.toString())};UserManager.prototype.revokeRole=function(A,D,G,C,F){var E=new UrlParams();
E.push("function","revokeRole");E.push("UNAME",A);E.push("GROUP_NAME",D);E.push("ROLE_NAME",G);
var B=new HTTPClient(true,"UserManager revokeRole");B.attachObserver(new HTTPClientCallBackObserver(C,F));
B.getURL(this.url+"?"+E.toString())};UserManager.prototype.forcePassword=function(A,C,D,F){var E=new UrlParams();
E.push("function","forcePassword");E.push("UNAME",A);E.push("PASSWORD",C);var B=new HTTPClient(true,"UserManager forcePassword");
B.attachObserver(new HTTPClientCallBackObserver(D,F));B.getURL(this.url+"?"+E.toString())
};function UrlParams(){this.params=new Array()}UrlParams.prototype.push=function(A,B){this.params.push(escape(A)+"="+escape(B))
};UrlParams.prototype.toString=function(){return this.params.join("&")};function FeatureParser(A){this.parserListener=A
}FeatureParser.prototype.responseSet=function(A){this.parseFeatures(A.getResponse())
};FeatureParser.prototype.parseFeatures=function(A){var B=0;if(A==null){return }for(var D=A.firstChild;
D;D=D.nextSibling){if(D.nodeName=="Objekt"){var C=new Feature(D.firstChild);this.parserListener.addFeature(C);
B++}}top.LOGGER.debug(B+" Features parsed");if(this.parserListener.featuresParsed){this.parserListener.featuresParsed(B)
}};FeatureParser.prototype.getFeature=function(A){for(var B=A.firstChild;B;B=B.nextSibling){if(B.nodeName=="Objekt"){return new Feature(B.firstChild)
}}return null};FeatureParser.prototype.getFeatures=function(A){var B=new Array();
if(A==null||A.hasChildNodes==false){return B}for(var C=A.firstChild;C;C=C.nextSibling){if(C.nodeName=="Objekt"){B.push(new Feature(C.firstChild))
}}return B};FeatureParser.prototype.getEnvelope=function(A){for(var B=A.firstChild;
B;B=B.nextSibling){if(B.nodeName=="gml:boundedBy"&&B.hasChildNodes&&B.firstChild.nodeName=="gml:Envelope"&&B.firstChild.getAttribute("srsName")==top.getAppConfig().getParam("srid")){var D=getFirstChildValue(B.firstChild,"gml:coordinates");
var C=new Rect();C.initFromCoordinates(D,true);return C}}return null};Feature.replacePlaceholder=function(E,I,C){if(!C){C=FeatureTypeMetaInfo.get(I.getType())
}var F=/\{([^\}]+)\}/;var A=F.exec(E);while(A!=null){var D=A[0];var B=A[1];var G=I.getPropertyValue(B);
if(C!=null){var H=C.getPropertyMetaInfo(B);if(H!=null){G=H.toInputString(G)}}E=E.replace(D,G==null?"":G);
A=F.exec(E)}return E};Feature.prototype.constructor=Feature;function Feature(A){this.type=A.nodeName;
this.id=A.getAttribute("gml:id");this.id=this.id==""?null:this.id;this.node=A;this.userProperties=new HashMap();
this.properties=new Object();this.propertyListener=new Observers()}Feature.prototype.getNode=function(){return this.node
};Feature.prototype.getType=function(){return this.type};Feature.prototype.getId=function(){return this.id
};Feature.prototype.setId=function(B){this.id=B;if(B==null){try{this.node.removeAttribute("gml:id")
}catch(A){}}else{this.node.setAttribute("gml:id",B)}};Feature.prototype.toString=function(){return"Object [Feature]\nType="+this.getType()+" Id="+this.getId()
};Feature.prototype.exportXMLUpdate=function(C){var E=C.ownerDocument;for(var B=this.node.firstChild;
B;B=B.nextSibling){var A=null;var D=null;if(B.firstChild==null&&B.getAttribute("xlink:href")!=null){A=createTextNode(C,"Name",B.nodeName+"/xlink:href");
D=createTextNode(C,"Value",B.getAttribute("xlink:href"))}else{if(B.firstChild!=null&&B.nodeName.lastIndexOf("_FID")==-1){switch(B.firstChild.nodeName){case"#text":A=createTextNode(C,"Name",B.nodeName);
D=createTextNode(C,"Value",B.firstChild.nodeValue);break;case"gml:Point":A=createTextNode(C,"Name",B.nodeName);
D=E.createElement("Value");D.appendChild(cloneNode(E,B.firstChild,true));default:}}}if(A!=null&&D!=null){var F=E.createElement("Property");
F.appendChild(A);F.appendChild(D);C.appendChild(F)}}};Feature.prototype.exportXMLInsert=function(D){var E=new Array();
var H=D.ownerDocument;var C=D.appendChild(H.createElement(this.getType()));for(var A=this.node.firstChild;
A;A=A.nextSibling){var B=null;var I=null;if(A.firstChild==null&&XML_HELPERS.hasAttribute(A,"xlink:href")){var G=A.nodeName;
var F=this.getReferenceId(G);E.push({name:G,value:F,toString:function(){return"name="+this.name+" value="+this.value
}})}else{C.appendChild(cloneNode(H,A,true))}}return E};Feature.prototype.getReferenceId=function(A){var B=this.getPropertyNode(A);
if(B==null){return null}var C=B.getAttribute("xlink:href");if(C!=null&&C.length>1){C=C.substring(1,C.length)
}return C};Feature.prototype.getPropertyValue=function(B){if(this.properties[B]==null){var A=this.getPropertyNode(B);
var D=A==null||A.firstChild==null?null:A.firstChild.nodeValue;var C={value:D};this.properties[B]=C
}return this.properties[B].value};Feature.prototype.getPropertyNode=function(C){var A=null;
for(var B=this.node.firstChild;B;B=B.nextSibling){if(B.nodeName==C){A=B;break}}return A==null?null:A
};Feature.prototype.setPropertyNode=function(A,C){var B=this.getPropertyNode(A);if(B==null){B=this.node.appendChild(this.node.ownerDocument.createElement(A))
}else{removeAllChildNodes(B)}if(C!=null){B.appendChild(C)}this.properties[A]=null
};Feature.prototype.setPropertyValue=function(A,B){try{this.setPropertyNode(A,B==null?null:this.node.ownerDocument.createTextNode(B))
}catch(C){alert(this+"\nsetPropertyValue()\nname="+A+"\nvalue="+B+"\n"+C)}this.propertyListener.notify("featurePropertyChanged",{name:A,newValue:B})
};Feature.prototype.setReferenceId=function(A,C){this.setPropertyNode(A,null);var B=this.getPropertyNode(A);
B.setAttribute("xlink:href","#"+C)};Feature.prototype.copyPropertyValuesFrom=function(B,C){for(var A=0;
A<C.length;A++){this.setPropertyValue(C[A],B.getPropertyValue(C[A]))}};Feature.prototype.handleEvent=function(A){if(A.type!="click"){return 
}AppConfig.FEATURE_CLICK_OBSERVERS.notify("featureClicked",this)};Feature.prototype.setUserProperty=function(A,B){this.userProperties.overwrite(A,B)
};Feature.prototype.getUserProperty=function(A){return this.userProperties.get(A)
};Feature.prototype.containsUserProperty=function(A){return this.userProperties.containsKey(A)
};Feature.prototype.attachPropertyListener=function(A){this.propertyListener.attach(A)
};Feature.prototype.detachPropertyListener=function(A){this.propertyListener.detach(A)
};Feature.prototype.getDetailFeatures=function(A){var B=new FeatureParser();return B.getFeatures(this.getPropertyNode(A))
};Feature.prototype.setCompareBy=function(A){this.compareBy=A};Feature.prototype.getCompareValue=function(){return(this.compareBy==null||this.compareBy.length==0)?this.getId():this.getPropertyValue(this.compareBy)
};Feature.prototype.equals=function(A){if(A!=null&&A.getId&&A.getCompareValue){return this.getCompareValue()==A.getCompareValue()
}return false};function Cookies(){}Cookies.get=function(C){var B=document.cookie;
var E=C+"=";var D=B.indexOf("; "+E);if(D==-1){D=B.indexOf(E);if(D!=0){return null
}}else{D+=2}var A=document.cookie.indexOf(";",D);if(A==-1){A=B.length}return unescape(B.substring(D+E.length,A))
};Cookies.set=function(C,E,A,G,D,F){var B=C+"="+escape(E)+((A)?"; expires="+A.toGMTString():"")+((G)?"; path="+G:"")+((D)?"; domain="+D:"")+((F)?"; secure":"");
document.cookie=B};Cookies.remove=function(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?"; path="+C:"")+((B)?"; domain="+B:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}};SwitchControler=function(A){this.observers=new Observers();this.tools=new HashMap();
this.current=null;this.view=A;NovaxEventHelpers.bind(this.view,"switchActivate",this,this.switchActivate);
this.view.bindToControler(this)};SwitchControler.prototype.toString=function(){return"[object SwitchControler]"
};SwitchControler.prototype.register=function(A,B){this.tools.put(A.getName(),A);
B=B==null?true:false;if(B){this.view.add(A.getName(),A.getTitle())}NovaxEventHelpers.bind(A,"activeSet",this,this.onASwitchActiveSet)
};SwitchControler.prototype.get=function(A){return this.tools.get(A)};SwitchControler.prototype.getCurrent=function(){return this.current
};SwitchControler.prototype.switchActivate=function(A){if(this.current!=null){if(this.current.canDeactivate()==false){alert(this.current&" kann nicht deaktiviert werden.");
return }else{if(this.current.getName()==A){return }else{this.current.setActive(false)
}}}this.current=this.get(A);if(this.current==null){throw new Error(this+'\n"'+A+'" ist nicht registriert')
}this.current.setActive(true)};SwitchControler.prototype.attach=function(A){this.observers.attach(A)
};SwitchControler.prototype.onASwitchActiveSet=function(A,B){NovaxEventHelpers.notify(this,"activeSet",A,B);
if(B){this.observers.notify("activated",A)}else{this.observers.notify("deactivated",A)
}};SwitchControler.prototype.showModalDialog=function(A){this.getCurrent().deactivate();
this.currentDialog=A;this.currentDialog.setVisible(true)};SwitchControler.prototype.closeCurrentModalDialog=function(A){this.currentDialog.close(A);
this.currentDialog=null;this.getCurrent().activate()};SwitchControler.prototype.getCurrentModalDialog=function(){return this.currentDialog
};ToolSwitch.prototype.constructor=ToolSwitch;function ToolSwitch(B,A){if(arguments.length==0){return 
}this.init(B,A)}ToolSwitch.prototype.init=function(B,A){this.userObject=null;this._activated=false;
this._parentActive=true;this._first=true;this.name=B;this.guiNode=document.getElementById(A);
if(this.guiNode==null){throw new Error(this+": Node "+A+" exisitiert nicht im HTML-Dokument.")
}this.title=NovaxHtmlTools.getNextHeaderValue(this.guiNode)};ToolSwitch.prototype.getName=function(){return this.name
};ToolSwitch.prototype.getTitle=function(){return this.title};ToolSwitch.prototype.getGuiNode=function(){return this.guiNode
};ToolSwitch.prototype.isActive=function(){return this._activated};ToolSwitch.prototype.setActive=function(A){this._activated=A;
this.getGuiNode().style.display=A?"block":"none";if(this._first&&this._activated){this._first=false;
this.onFirstActivated()}NovaxEventHelpers.notify(this,"activeSet",this.getName(),A)
};ToolSwitch.prototype.activate=function(){this.setActive(true);if(!this.observers){return 
}this.observers.notify("activated",this.getName())};ToolSwitch.prototype.canDeactivate=function(){return true
};ToolSwitch.prototype.deactivate=function(){this.setActive(false);if(!this.observers){return 
}this.observers.notify("deactivated",this.getName())};ToolSwitch.prototype.toString=function(){return'[object ToolSwitch] "'+this.getName()+'"'
};ToolSwitch.prototype.attachObserver=function(A){if(!this.observers){this.observers=new Observers()
}this.observers.attach(A)};ToolSwitch.prototype.setUserObject=function(A){this.userObject=A
};ToolSwitch.prototype.getUserObject=function(){return this.userObject};ToolSwitch.prototype.onFirstActivated=function(){};
ToolSwitch.prototype.onParentActiveSet=function(A,B){this._parentActive=B;NovaxEventHelpers.notify(this,"activeSet",this.name,this.isActive())
};ToolSwitch.prototype.isParentActive=function(){return this._parentActive};ToolSwitch.prototype.getChildControler=function(){if(!this._childControler){var C=NovaxHtmlTools.getNextElementWithClassName(this.getGuiNode(),"navigation");
var B=getFirstChild(C,"UL");var A=new LiDivSwitch(B,true);this._childControler=new SwitchControler(A)
}return this._childControler};ToolSwitch.prototype.bindToParent=function(A){NovaxEventHelpers.bind(A,"activeSet",this,this.onParentActiveSet)
};ToolSwitch.prototype.getFormular=function(){if(!this._formular){var A=getFirstChild(this.getGuiNode(),"FORM");
this._formular=new NovaxFormular(A,A.id)}return this._formular};BusinessTool.prototype=new ToolSwitch();
BusinessTool.prototype.constructor=BusinessTool;BusinessTool.superclass=ToolSwitch.prototype;
function BusinessTool(B,A){if(arguments.length==0){return }this.init(B,A)}BusinessTool.prototype.init=function(B,A){BusinessTool.superclass.init.call(this,B,A);
this.featureObservers=new Observers()};BusinessTool.prototype.toString=function(){return'Object [BusinessTool] "'+this.getName()+'"'
};BusinessTool.prototype.featureUpdated=function(A){this.featureObservers.notify("featureUpdated",A)
};BusinessTool.prototype.featureInserted=function(A){this.featureObservers.notify("featureInserted",A)
};BusinessTool.prototype.attachFeatureObserver=function(A){this.featureObservers.attach(A)
};BusinessToolDataSource.prototype=new BusinessTool();BusinessToolDataSource.prototype.constructor=BusinessToolDataSource;
BusinessToolDataSource.superclass=BusinessTool.prototype;function BusinessToolDataSource(B,A,C){if(arguments.length==0){return 
}this.init(B,A,C)}BusinessToolDataSource.prototype.init=function(B,A,C){BusinessToolDataSource.superclass.init.call(this,B,A);
this.dataSource=top.APP_CONFIG.getDataSource(C);if(this.dataSource==null){throw new Error(this+'\n DataSource "'+C+'" ist null.')
}};BusinessToolDataSource.prototype.toString=function(){return'Object [BusinessToolDataSource] "'+this.getName()+'"'
};BusinessToolDataSource.prototype.getDataSource=function(){return this.dataSource
};function AbstractFilterFormular(B,C,A){if(arguments.length==0){return }this.init(B,C,A)
}AbstractFilterFormular.prototype.init=function(B,C,A){this.formular=top.getHtmldoc().getElementById(B,C);
if(this.formular==null){throw new Error(this+'\nIm HTML-Dokument existiert das Formular "'+B+'" nicht.')
}this.prefix=C;this.filter=A};AbstractFilterFormular.prototype.getFormular=function(){return this.formular
};AbstractFilterFormular.prototype.getElement=function(B,C){var A=this.formular.elements[this.prefix+B];
if(C&&A==null){throw new Error(this+'\n Element "'+this.prefix+B+'" exisitiert nicht.')
}return A};AbstractFilterFormular.prototype.toString=function(){return"Object [AbstractFilterFormular]"
};AbstractFilterFormular.prototype.setDefault=function(){this.resetValues()};AbstractFilterFormular.prototype.set=function(){this.submitValues()
};AbstractFilterFormular.prototype.submitValues=function(){};AbstractFilterFormular.prototype.resetValues=function(){this.submitValues()
};AbstractFilterFormular.prototype.setFilter=function(A){this.filter=A};FilteredTableObserver=function(A){this.table=A
};FilteredTableObserver.bindToFilter=function(A,B){A.bindToFilter(B)};FilteredTableObserver.prototype.bindToFilter=function(A){NovaxEventHelpers.bind(A,"modified",this,this.onFilterModified)
};FilteredTableObserver.prototype.onFilterModified=function(A){this.table.setFilter(A);
this.table.refresh()};LiButton=function(C,F,A,D,G){var E=A.ownerDocument;this.name=C;
this.node=A.appendChild(E.createElement("li"));var B=this.node.appendChild(E.createElement("a"));
B.href="javascript:void(0);";B.innerHTML=F;NovaxEventHelpers.bindDom(B,"click",this,this.onclick);
this.selected=null;this.setSelected(false)};LiButton.prototype.onclick=function(){NovaxEventHelpers.notify(this,"clicked",this.name);
return false};LiButton.prototype.setSelected=function(A){if(this.selected==A){return 
}this.selected=A;this.node.className=this.selected?"current":""};LiButton.prototype.getName=function(){return this.name
};LiButton.prototype.toString=function(){return"[object LiButton] name="+this.name
};function LiDivSwitch(A,B){if(!B){this.ulNode=document.getElementById(A);if(this.ulNode==null){throw new Error(this+'\nElement "'+A+'" exisitiert nicht.')
}}else{this.ulNode=A}this.liDivs=new Array()}LiDivSwitch.prototype.toString=function(){return"[object LiDivSwitch]"
};LiDivSwitch.prototype.add=function(B,C){var A=new LiButton(B,C,this.ulNode);NovaxEventHelpers.bind(A,"clicked",this,this.onClicked);
this.liDivs["___"+B]=A};LiDivSwitch.prototype.onClicked=function(A){NovaxEventHelpers.notify(this,"switchActivate",A)
};LiDivSwitch.prototype.bindToControler=function(A){NovaxEventHelpers.bind(A,"activeSet",this,this.onActiveSet)
};LiDivSwitch.prototype.onActiveSet=function(A,B){this.liDivs["___"+A].setSelected(B)
};Sorter.prototype.constructor=Sorter;function Sorter(){}Sorter.prototype.sort=function(A,B){this.toSort=A;
this.asc=B;this._quickSort(0,this.toSort.length-1)};Sorter.prototype._quickSort=function(C,D){var F=C;
var E=D;var B=this.toSort[Math.round((C+D)/2)];var A;do{while(this.compare(this.toSort[F],B)){F++
}while(this.compare(B,this.toSort[E])){E--}if(F<=E){A=this.toSort[F];this.toSort[F]=this.toSort[E];
this.toSort[E]=A;F++;E--}}while(F<=E);if(C<E){this._quickSort(C,E)}if(F<D){this._quickSort(F,D)
}};Sorter.prototype.compare=function(B,A){return this.asc?B<A:A<B};FeatureTable.addDeleteAction=function(A){A.addAction(TEXT_ACTION_REMOVE,"entf",{featureTable:A,deleteFeature:function(B){if(confirm("Möchten Sie diesen Eintrag unwiderruflich entfernen?")){var C=this.featureTable;
A.dataSource.deleteFeature(B,{ft:A,deleted:function(E,D){if(E){C.refresh()}else{alert("beim entfernen trat ein Fehler auf:\n"+D)
}}},"deleted")}}},"deleteFeature")};FeatureTable.prototype.constructor=FeatureTable;
function FeatureTable(B,C,A){if(arguments.length==0){return }this.init(B,C,A)}FeatureTable.prototype.init=function(B,C,A){this.typeName=B;
this.dataSource=C;this.htmlTable=A;this.htmlTable.className="data";this.rows=new Array();
this.features=new Array();this.actions=new Array();this.columns=new Array();this.hiddenCols=new Array();
this.filter=null;this.currentSortCol=-1;this.currentSortOrderAsc=true;this.selectedFeatures=new FeatureCollection();
this.cellClickedObservers=new Observers()};FeatureTable.prototype.initFromFeatureTypeMetaInfo=function(A){var D=A.getPropertyNames();
for(var B=0;B<D.length;B++){var C=A.getPropertyMetaInfo(D[B]);if(C.isRowInTable()){this.addColumn(C);
if(C.isDefaultOrderBy()){this.setOrderBy(B,C.isDefaultOrderByAsc())}}else{this.addHidden(C)
}}if(this.columns.length==0){throw new Error(this+"\nKeine Spalten konfiguriert.")
}};FeatureTable.prototype.toString=function(){return'Object [FeatureTable] typeName="'+this.typeName+'"'
};FeatureTable.prototype.addAction=function(C,A,B,D){this.actions.push({title:C,name:A,cbFunc:D,cbObj:B})
};FeatureTable.prototype.addColumn=function(A){this.columns.push(A)};FeatureTable.prototype.addHidden=function(A){this.hiddenCols.push(A)
};FeatureTable.prototype.headerColumnClicked=function(C){var A=C.cellIndex-(this.actions.length>0?1:0);
var B=true;if(this.currentSortCol==A){B=!this.currentOrderAsc}this.setOrderBy(A,B);
this.reOrder()};FeatureTable.prototype.initTableHeader=function(I){I.start();var H=this.htmlTable.createTHead();
var A=H.insertRow(0);if(this.actions.length>0){var K=A.insertCell(0);K.innerHTML="Aktion";
K.colSpan=this.actions.length}this.secondHeaderFeatures=new Array();var B;for(var G=0;
G<this.columns.length;G++){var F=this.columns[G];this.secondHeaderFeatures.push(new Array());
var K=A.insertCell(A.cells.length);K.innerHTML=F.getTitle();K.ft=this;K.style.cursor="pointer";
if(F.isFeatureType()&&F.getType().isUnique()==false){if(B==null){B=H.insertRow(1)
}while(B.cells.length<A.cells.length-1){var M=B.insertCell();if(B.cells.length==1&&this.actions.length>1){M.colSpan=this.actions.length
}}var L=F.getType().getFeatureTypeName();var D=this.dataSource.getFeatureTypeMetaInfo(L);
var E=new WFSGetFeature();var J=new WFSQuery(L);E.addQuery(J);var C=new FeatureParser(new MultipleCellsFiller(this,G,B,K,D.getTitle()));
I.start();this.dataSource.postRequest(E,{waitFor:I,parser:C,posted:function(O,N){this.parser.parseFeatures(O);
this.waitFor.finish()}},"posted")}else{K.onclick=function(){this.ft.headerColumnClicked(this);
K.style.cursor="pointer"}}}this.tableHeadRow=A;this.updateHeadStyle();I.finish()};
FeatureTable.prototype.refresh=function(){var A=new WaitFor(this);A.attach({finished:function(B){B.refreshContent()
}});A.start();if(this.tableHeadRow==null){this.initTableHeader(A)}A.finish()};FeatureTable.prototype.refreshContent=function(){this.clearRows();
var D=new WFSGetFeature();var E=new WFSQuery(this.typeName);if(this.filter!=null){var C=new OGCFilter();
C.addOperator(this.filter.getOperator());E.addFilter(C)}for(var B=0;B<this.columns.length;
B++){var A=this.columns[B];E.addPropertyName(A.getName())}for(var B=0;B<this.hiddenCols.length;
B++){var A=this.hiddenCols[B];E.addPropertyName(A.getName())}D.addQuery(E);var G=this;
var F=new FeatureParser(this,null);this.dataSource.postRequest(D,{posted:function(I,H){F.parseFeatures(I);
G.reOrder()}},"posted")};FeatureTable.prototype.addSecondHeaderFeature=function(A,B){var C=this.dataSource.getFeatureTypeMetaInfo(B.getType());
if(C.isCompareBySet()){B.setCompareBy(C.getCompareBy())}this.secondHeaderFeatures[A].push(B)
};FeatureTable.prototype.addFeature=function(K){this.features.push(K);if(this.htmlTable.tBodies.length==0){this.htmlTable.appendChild(this.htmlTable.ownerDocument.createElement("TBODY"))
}var J=this.htmlTable.tBodies[0].insertRow(this.features.length-1);this.rows.push(J);
for(var E=0;E<this.actions.length;E++){var C=this.actions[E];var H=J.insertCell(E);
H.cbFunc=C.cbFunc;H.cbObj=C.cbObj;H.feature=K;if(C.name=="multipleselection"){var I=H.ownerDocument.createElement("input");
I.type="checkbox";H.appendChild(I);H.multipleselect=I}else{H.innerHTML='<span class="text">'+C.title+"</span>";
H.className="action "+C.name;if(this.isActionActivated(C.name,K)){var F=C.cbObj[C.cbFunc];
if(F){Event.observe(H,"click",F.bind(C.cbObj,K));Event.observe(H,"click",this.onActionClicked.bind(this,J,C,K))
}}else{H.className+=" deactivated"}}H.title=H.className}for(var E=0;E<this.columns.length;
E++){var D=this.columns[E];if(D.isFeatureType()){if(D.getType().isUnique()){}else{var A=K.getDetailFeatures(D.getName());
for(var B=0;B<this.secondHeaderFeatures[E].length;B++){var G=this.secondHeaderFeatures[E][B];
var H=J.insertCell();H.feature=K;H.secondFeature=G;H.featureTable=this;H.style.textAlign="center";
H.style.cursor="pointer";H.onclick=function(){this.featureTable.cellClicked(this)
};if(this._detailsContains(A,G)){H.innerHTML=TEXT_STATUS_ENABLED;H.statusEnabled=true
}else{H.innerHTML=TEXT_STATUS_DISABLED;H.statusEnabled=false}}}}else{var H=J.insertCell(J.cells.length);
H.innerHTML=D.toInputString(K.getPropertyValue(D.getName()));H.className=D.getTypeName()+"type";
if(this.currentSortCol==E){H.className+=" orderby"}}}this.resetActiveRow()};FeatureTable.prototype._detailsContains=function(C,B){for(var A=0;
A<C.length;A++){var E=C[A];var D=this.dataSource.getFeatureTypeMetaInfo(E.getType());
if(D.isCompareBySet()){E.setCompareBy(D.getCompareBy())}if(B.equals(E)){return true
}}return false};FeatureTable.prototype.isActionActivated=function(A,B){return true
};FeatureTable.prototype.clearRows=function(){for(var A=0;A<this.rows.length;A++){this.htmlTable.deleteRow(this.rows[A].rowIndex)
}this.rows=new Array();this.features=new Array()};FeatureTable.prototype.setFilter=function(A){this.filter=A
};FeatureTable.prototype.getHeadOrderClass=function(){return" orderby"+(this.currentOrderAsc?"asc":"desc")
};FeatureTable.prototype.setOrderBy=function(A,B){this.resetOrderBy();this.currentSortCol=A;
this.currentOrderAsc=B;this.updateHeadStyle()};FeatureTable.prototype.reOrder=function(){if(this.currentSortCol==-1){return 
}var D=this.columns[this.currentSortCol];var B=D.getName();var E=this.currentOrderAsc;
var A=this.features.concat();this.clearRows();var F=new FeatureSorter(B);F.sort(A,E);
for(var C=0;C<A.length;C++){this.addFeature(A[C])}};FeatureTable.prototype.resetOrderBy=function(){if(this.currentSortCol>-1){var A=this.tableHeadRow.cells[this.currentSortCol+(this.actions.length>0?1:0)];
A.className=A.className.replace("orderbyasc","").replace("orderbydesc","");A=null
}this.currentSortCol=this.defaultSortCol;this.currentOrderAsc=this.defaultOrderAsc
};FeatureTable.prototype.updateHeadStyle=function(){if(this.currentSortCol==-1||this.tableHeadRow==null){return 
}var A=this.tableHeadRow.cells[this.currentSortCol+(this.actions.length>0?1:0)];A.className+=this.getHeadOrderClass()
};FeatureTable.prototype.getSelectedFeatures=function(){var A=new Array();for(var B=0;
B<this.rows.length;B++){var C=this.rows[B].cells[0];if(C.multipleselect&&C.multipleselect.checked){A.push(C.feature)
}}return A};FeatureTable.prototype.setAllFeaturesSelected=function(B){for(var A=0;
A<this.rows.length;A++){var C=this.rows[A].cells[0];if(C.multipleselect){C.multipleselect.checked=B
}}};FeatureTable.prototype.cellClicked=function(A){this.cellClickedObservers.notify("cellClicked",A)
};FeatureTable.prototype.attachCellClickedObserver=function(A){this.cellClickedObservers.attach(A)
};FeatureTable.prototype.onActionClicked=function(C,B,A){this.resetActiveRow();this._aktiv_row=C;
Element.addClassName(C,"aktiv")};FeatureTable.prototype.resetActiveRow=function(){if(this._aktiv_row){Element.removeClassName(this._aktiv_row,"aktiv");
this._aktiv_row=null}};FeatureSorter.prototype=new Sorter();FeatureSorter.prototype.constructor=Sorter;
FeatureSorter.superclass=Sorter.prototype;function FeatureSorter(A){this.prop=A}FeatureSorter.prototype.compare=function(B,A){B=B==null?null:B.getPropertyValue(this.prop);
A=A==null?null:A.getPropertyValue(this.prop);return FeatureSorter.superclass.compare.call(this,B,A)
};MultipleCellsFiller=function(C,B,E,A,D){this.featureTable=C;this.shIndex=B;this.row=E;
this.cell=A;this.title=D};MultipleCellsFiller.prototype.addFeature=function(B){var A=this.row.insertCell();
A.innerHTML=B.constructor.replacePlaceholder(this.title,B);A.style.cursor="default";
A.feature=B;this.featureTable.addSecondHeaderFeature(this.shIndex,B)};MultipleCellsFiller.prototype.featuresParsed=function(A){this.cell.colSpan=A
};AbstractDataFilter.prototype.constructor=AbstractDataFilter;function AbstractDataFilter(A){if(A!=null&&A==false){return 
}this.init()}AbstractDataFilter.prototype.init=function(){this.observers=new Observers();
this.last=this.toString()};AbstractDataFilter.prototype.toString=function(){return"Object [AbstractDataFilter]"
};AbstractDataFilter.prototype.attach=function(A){this.observers.attach(A)};AbstractDataFilter.prototype.detach=function(A){this.observers.detach(A)
};AbstractDataFilter.prototype.set=function(){if(this.last!=this.toString()){this.observers.notify("filterModified",this);
this.last=this.toString()}};AbstractDataFilter.prototype.getOGCOperator=function(){return null
};NovaxFilter.prototype.constructor=NovaxFilter;function NovaxFilter(A){if(A!=null&&A==false){return 
}this.init()}NovaxFilter.bindToFormular=function(B,A){NovaxEventHelpers.bind(A,"submit",B,B.onSubmit)
};NovaxFilter.prototype.init=function(){};NovaxFilter.prototype.toString=function(){return"[object NovaxFilter]"
};NovaxFilter.prototype.onSubmit=function(A){this.novaxElements=A;NovaxEventHelpers.notify(this,"modified",this);
this.fireEvent("modified",this)};NovaxFilter.prototype.getOGCOperator=function(){return null
};function getAnchorPosition(B){var E=false;var J=new Object();var I=0,G=0;var D=false,F=false,H=false;
if(document.getElementById){D=true}else{if(document.all){F=true}else{if(document.layers){H=true
}}}if(D){var A=document.getElementById(B);I=AnchorPosition_getPageOffsetLeft(A);G=AnchorPosition_getPageOffsetTop(A)
}else{if(F){I=AnchorPosition_getPageOffsetLeft(document.all[B]);G=AnchorPosition_getPageOffsetTop(document.all[B])
}else{if(H){var K=0;for(var C=0;C<document.anchors.length;C++){if(document.anchors[C].name==B){K=1;
break}}if(K==0){J.x=0;J.y=0;return J}I=document.anchors[C].x;G=document.anchors[C].y
}else{J.x=0;J.y=0;return J}}}J.x=I;J.y=G;return J}function getAnchorWindowPosition(B){var C=getAnchorPosition(B);
var A=0;var D=0;if(document.getElementById){if(isNaN(window.screenX)){A=C.x-document.body.scrollLeft+window.screenLeft;
D=C.y-document.body.scrollTop+window.screenTop}else{A=C.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
D=C.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset
}}else{if(document.all){A=C.x-document.body.scrollLeft+window.screenLeft;D=C.y-document.body.scrollTop+window.screenTop
}else{if(document.layers){A=C.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
D=C.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset
}}}C.x=A;C.y=D;return C}function AnchorPosition_getPageOffsetLeft(B){var A=B.offsetLeft;
while((B=B.offsetParent)!=null){A+=B.offsetLeft}return A}function AnchorPosition_getWindowOffsetLeft(A){return AnchorPosition_getPageOffsetLeft(A)-document.body.scrollLeft
}function AnchorPosition_getPageOffsetTop(A){var B=A.offsetTop;while((A=A.offsetParent)!=null){B+=A.offsetTop
}return B}function AnchorPosition_getWindowOffsetTop(A){return AnchorPosition_getPageOffsetTop(A)-document.body.scrollTop
}var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");
function LZ(A){return(A<0||A>9?"":"0")+A}function isDate(C,B){var A=getDateFromFormat(C,B);
if(A==0){return false}return true}function compareDates(E,F,C,D){var B=getDateFromFormat(E,F);
var A=getDateFromFormat(C,D);if(B==0||A==0){return -1}else{if(B>A){return 1}}return 0
}function formatDate(j,b){b=b+"";var J="";var T=0;var g="";var D="";var I=j.getYear()+"";
var F=j.getMonth()+1;var f=j.getDate();var N=j.getDay();var L=j.getHours();var V=j.getMinutes();
var P=j.getSeconds();var R,S,B,Q,l,C,Z,Y,W,O,o,L,n,G,A,X;var U=new Object();if(I.length<4){I=""+(I-0+1900)
}U.y=""+I;U.yyyy=I;U.yy=I.substring(2,4);U.M=F;U.MM=LZ(F);U.MMM=MONTH_NAMES[F-1];
U.NNN=MONTH_NAMES[F+11];U.d=f;U.dd=LZ(f);U.E=DAY_NAMES[N+7];U.EE=DAY_NAMES[N];U.H=L;
U.HH=LZ(L);if(L==0){U.h=12}else{if(L>12){U.h=L-12}else{U.h=L}}U.hh=LZ(U.h);if(L>11){U.K=L-12
}else{U.K=L}U.k=L+1;U.KK=LZ(U.K);U.kk=LZ(U.k);if(L>11){U.a="PM"}else{U.a="AM"}U.m=V;
U.mm=LZ(V);U.s=P;U.ss=LZ(P);while(T<b.length){g=b.charAt(T);D="";while((b.charAt(T)==g)&&(T<b.length)){D+=b.charAt(T++)
}if(U[D]!=null){J=J+U[D]}else{J=J+D}}return J}function _isInteger(C){var B="1234567890";
for(var A=0;A<C.length;A++){if(B.indexOf(C.charAt(A))==-1){return false}}return true
}function _getInt(F,D,E,C){for(var A=C;A>=E;A--){var B=F.substring(D,D+A);if(B.length<E){return null
}if(_isInteger(B)){return B}}return null}function getDateFromFormat(U,N){U=U+"";N=N+"";
var T=0;var J=0;var P="";var E="";var S="";var G,F;var B=new Date();var H=B.getYear();
var R=B.getMonth()+1;var Q=1;var C=B.getHours();var O=B.getMinutes();var L=B.getSeconds();
var I="";while(J<N.length){P=N.charAt(J);E="";while((N.charAt(J)==P)&&(J<N.length)){E+=N.charAt(J++)
}if(E=="yyyy"||E=="yy"||E=="y"){if(E=="yyyy"){G=4;F=4}if(E=="yy"){G=2;F=2}if(E=="y"){G=2;
F=4}H=_getInt(U,T,G,F);if(H==null){return 0}T+=H.length;if(H.length==2){if(H>70){H=1900+(H-0)
}else{H=2000+(H-0)}}}else{if(E=="MMM"||E=="NNN"){R=0;for(var M=0;M<MONTH_NAMES.length;
M++){var D=MONTH_NAMES[M];if(U.substring(T,T+D.length).toLowerCase()==D.toLowerCase()){if(E=="MMM"||(E=="NNN"&&M>11)){R=M+1;
if(R>12){R-=12}T+=D.length;break}}}if((R<1)||(R>12)){return 0}}else{if(E=="EE"||E=="E"){for(var M=0;
M<DAY_NAMES.length;M++){var K=DAY_NAMES[M];if(U.substring(T,T+K.length).toLowerCase()==K.toLowerCase()){T+=K.length;
break}}}else{if(E=="MM"||E=="M"){R=_getInt(U,T,E.length,2);if(R==null||(R<1)||(R>12)){return 0
}T+=R.length}else{if(E=="dd"||E=="d"){Q=_getInt(U,T,E.length,2);if(Q==null||(Q<1)||(Q>31)){return 0
}T+=Q.length}else{if(E=="hh"||E=="h"){C=_getInt(U,T,E.length,2);if(C==null||(C<1)||(C>12)){return 0
}T+=C.length}else{if(E=="HH"||E=="H"){C=_getInt(U,T,E.length,2);if(C==null||(C<0)||(C>23)){return 0
}T+=C.length}else{if(E=="KK"||E=="K"){C=_getInt(U,T,E.length,2);if(C==null||(C<0)||(C>11)){return 0
}T+=C.length}else{if(E=="kk"||E=="k"){C=_getInt(U,T,E.length,2);if(C==null||(C<1)||(C>24)){return 0
}T+=C.length;C--}else{if(E=="mm"||E=="m"){O=_getInt(U,T,E.length,2);if(O==null||(O<0)||(O>59)){return 0
}T+=O.length}else{if(E=="ss"||E=="s"){L=_getInt(U,T,E.length,2);if(L==null||(L<0)||(L>59)){return 0
}T+=L.length}else{if(E=="a"){if(U.substring(T,T+2).toLowerCase()=="am"){I="AM"}else{if(U.substring(T,T+2).toLowerCase()=="pm"){I="PM"
}else{return 0}}T+=2}else{if(U.substring(T,T+E.length)!=E){return 0}else{T+=E.length
}}}}}}}}}}}}}}if(T!=U.length){return 0}if(R==2){if(((H%4==0)&&(H%100!=0))||(H%400==0)){if(Q>29){return 0
}}else{if(Q>28){return 0}}}if((R==4)||(R==6)||(R==9)||(R==11)){if(Q>30){return 0}}if(C<12&&I=="PM"){C=C-0+12
}else{if(C>11&&I=="AM"){C-=12}}var A=new Date(H,R-1,Q,C,O,L);return A.getTime()}function parseDate(G){var E=(arguments.length==2)?arguments[1]:false;
generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d");
monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d");dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M");
var B=new Array("generalFormats",E?"dateFirst":"monthFirst",E?"monthFirst":"dateFirst");
var F=null;for(var D=0;D<B.length;D++){var A=window[B[D]];for(var C=0;C<A.length;
C++){F=getDateFromFormat(G,A[C]);if(F!=0){return new Date(F)}}}return null}function PopupWindow_getXYPosition(A){var B;
if(this.type=="WINDOW"){B=getAnchorWindowPosition(A)}else{B=getAnchorPosition(A)}this.x=B.x;
this.y=B.y}function PopupWindow_setSize(B,A){this.width=B;this.height=A}function PopupWindow_populate(A){this.contents=A;
this.populated=false}function PopupWindow_setUrl(A){this.url=A}function PopupWindow_setWindowProperties(A){this.windowProperties=A
}function PopupWindow_refresh(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).innerHTML=this.contents
}else{if(this.use_css){document.all[this.divName].innerHTML=this.contents}else{if(this.use_layers){var A=document.layers[this.divName];
A.document.open();A.document.writeln(this.contents);A.document.close()}}}}else{if(this.popupWindow!=null&&!this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url
}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);
this.popupWindow.document.close()}this.popupWindow.focus()}}}function PopupWindow_showPopup(A){this.getXYPosition(A);
this.x+=this.offsetX;this.y+=this.offsetY;if(!this.populated&&(this.contents!="")){this.populated=true;
this.refresh()}if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.left=this.x+"px";
document.getElementById(this.divName).style.top=this.y+"px";document.getElementById(this.divName).style.visibility="visible"
}else{if(this.use_css){document.all[this.divName].style.left=this.x;document.all[this.divName].style.top=this.y;
document.all[this.divName].style.visibility="visible"}else{if(this.use_layers){document.layers[this.divName].left=this.x;
document.layers[this.divName].top=this.y;document.layers[this.divName].visibility="visible"
}}}}else{if(this.popupWindow==null||this.popupWindow.closed){if(this.x<0){this.x=0
}if(this.y<0){this.y=0}if(screen&&screen.availHeight){if((this.y+this.height)>screen.availHeight){this.y=screen.availHeight-this.height
}}if(screen&&screen.availWidth){if((this.x+this.width)>screen.availWidth){this.x=screen.availWidth-this.width
}}var B=window.opera||(document.layers&&!navigator.mimeTypes["*"])||navigator.vendor=="KDE"||(document.childNodes&&!document.all&&!navigator.taintEnabled);
this.popupWindow=window.open(B?"":"about:blank","window_"+A,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"")
}this.refresh()}}function PopupWindow_hidePopup(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.visibility="hidden"
}else{if(this.use_css){document.all[this.divName].style.visibility="hidden"}else{if(this.use_layers){document.layers[this.divName].visibility="hidden"
}}}}else{if(this.popupWindow&&!this.popupWindow.closed){this.popupWindow.close();
this.popupWindow=null}}}function PopupWindow_isClicked(C){if(this.divName!=null){if(this.use_layers){var D=C.pageX;
var B=C.pageY;var A=document.layers[this.divName];if((D>A.left)&&(D<A.left+A.clip.width)&&(B>A.top)&&(B<A.top+A.clip.height)){return true
}else{return false}}else{if(document.all){var A=window.event.srcElement;while(A.parentElement!=null){if(A.id==this.divName){return true
}A=A.parentElement}return false}else{if(this.use_gebi&&C){var A=C.originalTarget;
while(A.parentNode!=null){if(A.id==this.divName){return true}A=A.parentNode}return false
}}}return false}return false}function PopupWindow_hideIfNotClicked(A){if(this.autoHideEnabled&&!this.isClicked(A)){this.hidePopup()
}}function PopupWindow_autoHide(){this.autoHideEnabled=true}function PopupWindow_hidePopupWindows(C){for(var A=0;
A<popupWindowObjects.length;A++){if(popupWindowObjects[A]!=null){var B=popupWindowObjects[A];
B.hideIfNotClicked(C)}}}function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP)
}window.popupWindowOldEventListener=document.onmouseup;if(window.popupWindowOldEventListener!=null){document.onmouseup=new Function("window.popupWindowOldEventListener(); PopupWindow_hidePopupWindows();")
}else{document.onmouseup=PopupWindow_hidePopupWindows}}function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex=0
}if(!window.popupWindowObjects){window.popupWindowObjects=new Array()}if(!window.listenerAttached){window.listenerAttached=true;
PopupWindow_attachListener()}this.index=popupWindowIndex++;popupWindowObjects[this.index]=this;
this.divName=null;this.popupWindow=null;this.width=0;this.height=0;this.populated=false;
this.visible=false;this.autoHideEnabled=false;this.contents="";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";
if(arguments.length>0){this.type="DIV";this.divName=arguments[0]}else{this.type="WINDOW"
}this.use_gebi=false;this.use_css=false;this.use_layers=false;if(document.getElementById){this.use_gebi=true
}else{if(document.all){this.use_css=true}else{if(document.layers){this.use_layers=true
}else{this.type="WINDOW"}}}this.offsetX=0;this.offsetY=0;this.getXYPosition=PopupWindow_getXYPosition;
this.populate=PopupWindow_populate;this.setUrl=PopupWindow_setUrl;this.setWindowProperties=PopupWindow_setWindowProperties;
this.refresh=PopupWindow_refresh;this.showPopup=PopupWindow_showPopup;this.hidePopup=PopupWindow_hidePopup;
this.setSize=PopupWindow_setSize;this.isClicked=PopupWindow_isClicked;this.autoHide=PopupWindow_autoHide;
this.hideIfNotClicked=PopupWindow_hideIfNotClicked}function CalendarPopup(){var A;
if(arguments.length>0){A=new PopupWindow(arguments[0])}else{A=new PopupWindow();A.setSize(150,175)
}A.offsetX=-152;A.offsetY=25;A.autoHide();A.monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
A.monthAbbreviations=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
A.dayHeaders=new Array("S","M","T","W","T","F","S");A.returnFunction="CP_tmpReturnFunction";
A.returnMonthFunction="CP_tmpReturnMonthFunction";A.returnQuarterFunction="CP_tmpReturnQuarterFunction";
A.returnYearFunction="CP_tmpReturnYearFunction";A.weekStartDay=0;A.isShowYearNavigation=false;
A.displayType="date";A.disabledWeekDays=new Object();A.disabledDatesExpression="";
A.yearSelectStartOffset=2;A.currentDate=null;A.todayText="Today";A.cssPrefix="";A.isShowNavigationDropdowns=false;
A.isShowYearNavigationInput=false;window.CP_calendarObject=null;window.CP_targetInput=null;
window.CP_dateFormat="MM/dd/yyyy";A.copyMonthNamesToWindow=CP_copyMonthNamesToWindow;
A.setReturnFunction=CP_setReturnFunction;A.setReturnMonthFunction=CP_setReturnMonthFunction;
A.setReturnQuarterFunction=CP_setReturnQuarterFunction;A.setReturnYearFunction=CP_setReturnYearFunction;
A.setMonthNames=CP_setMonthNames;A.setMonthAbbreviations=CP_setMonthAbbreviations;
A.setDayHeaders=CP_setDayHeaders;A.setWeekStartDay=CP_setWeekStartDay;A.setDisplayType=CP_setDisplayType;
A.setDisabledWeekDays=CP_setDisabledWeekDays;A.addDisabledDates=CP_addDisabledDates;
A.setYearSelectStartOffset=CP_setYearSelectStartOffset;A.setTodayText=CP_setTodayText;
A.showYearNavigation=CP_showYearNavigation;A.showCalendar=CP_showCalendar;A.hideCalendar=CP_hideCalendar;
A.getStyles=getCalendarStyles;A.refreshCalendar=CP_refreshCalendar;A.getCalendar=CP_getCalendar;
A.select=CP_select;A.setCssPrefix=CP_setCssPrefix;A.showNavigationDropdowns=CP_showNavigationDropdowns;
A.showYearNavigationInput=CP_showYearNavigationInput;A.copyMonthNamesToWindow();return A
}function CP_copyMonthNamesToWindow(){if(typeof (window.MONTH_NAMES)!="undefined"&&window.MONTH_NAMES!=null){window.MONTH_NAMES=new Array();
for(var A=0;A<this.monthNames.length;A++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthNames[A]
}for(var A=0;A<this.monthAbbreviations.length;A++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthAbbreviations[A]
}}}function CP_tmpReturnFunction(D,A,C){if(window.CP_targetInput!=null){var B=new Date(D,A-1,C,0,0,0);
if(window.CP_calendarObject!=null){window.CP_calendarObject.copyMonthNamesToWindow()
}window.CP_targetInput.value=formatDate(B,window.CP_dateFormat);if(window.CP_targetInput.onchange!=null){window.CP_targetInput.onchange()
}}else{alert("Use setReturnFunction() to define which function will get the clicked results!")
}}function CP_tmpReturnMonthFunction(B,A){alert("Use setReturnMonthFunction() to define which function will get the clicked results!\nYou clicked: year="+B+" , month="+A)
}function CP_tmpReturnQuarterFunction(B,A){alert("Use setReturnQuarterFunction() to define which function will get the clicked results!\nYou clicked: year="+B+" , quarter="+A)
}function CP_tmpReturnYearFunction(A){alert("Use setReturnYearFunction() to define which function will get the clicked results!\nYou clicked: year="+A)
}function CP_setReturnFunction(A){this.returnFunction=A}function CP_setReturnMonthFunction(A){this.returnMonthFunction=A
}function CP_setReturnQuarterFunction(A){this.returnQuarterFunction=A}function CP_setReturnYearFunction(A){this.returnYearFunction=A
}function CP_setMonthNames(){for(var A=0;A<arguments.length;A++){this.monthNames[A]=arguments[A]
}this.copyMonthNamesToWindow()}function CP_setMonthAbbreviations(){for(var A=0;A<arguments.length;
A++){this.monthAbbreviations[A]=arguments[A]}this.copyMonthNamesToWindow()}function CP_setDayHeaders(){for(var A=0;
A<arguments.length;A++){this.dayHeaders[A]=arguments[A]}}function CP_setWeekStartDay(A){this.weekStartDay=A
}function CP_showYearNavigation(){this.isShowYearNavigation=(arguments.length>0)?arguments[0]:true
}function CP_setDisplayType(A){if(A!="date"&&A!="week-end"&&A!="month"&&A!="quarter"&&A!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");
return false}this.displayType=A}function CP_setYearSelectStartOffset(A){this.yearSelectStartOffset=A
}function CP_setDisabledWeekDays(){this.disabledWeekDays=new Object();for(var A=0;
A<arguments.length;A++){this.disabledWeekDays[arguments[A]]=true}}function CP_addDisabledDates(B,A){if(arguments.length==1){A=B
}if(B==null&&A==null){return }if(this.disabledDatesExpression!=""){this.disabledDatesExpression+="||"
}if(B!=null){B=parseDate(B);B=""+B.getFullYear()+LZ(B.getMonth()+1)+LZ(B.getDate())
}if(A!=null){A=parseDate(A);A=""+A.getFullYear()+LZ(A.getMonth()+1)+LZ(A.getDate())
}if(B==null){this.disabledDatesExpression+="(ds<="+A+")"}else{if(A==null){this.disabledDatesExpression+="(ds>="+B+")"
}else{this.disabledDatesExpression+="(ds>="+B+"&&ds<="+A+")"}}}function CP_setTodayText(A){this.todayText=A
}function CP_setCssPrefix(A){this.cssPrefix=A}function CP_showNavigationDropdowns(){this.isShowNavigationDropdowns=(arguments.length>0)?arguments[0]:true
}function CP_showYearNavigationInput(){this.isShowYearNavigationInput=(arguments.length>0)?arguments[0]:true
}function CP_hideCalendar(){if(arguments.length>0){window.popupWindowObjects[arguments[0]].hidePopup()
}else{this.hidePopup()}}function CP_refreshCalendar(A){var B=window.popupWindowObjects[A];
if(arguments.length>1){B.populate(B.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]))
}else{B.populate(B.getCalendar())}B.refresh()}function CP_showCalendar(A){if(arguments.length>1){if(arguments[1]==null||arguments[1]==""){this.currentDate=new Date()
}else{this.currentDate=new Date(parseDate(arguments[1]))}}this.populate(this.getCalendar());
this.showPopup(A)}function CP_select(C,A,E){var B=(arguments.length>3)?arguments[3]:null;
if(!window.getDateFromFormat){alert("calendar.select: To use this method you must also include 'date.js' for date formatting");
return }if(this.displayType!="date"&&this.displayType!="week-end"){alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'");
return }if(C.type!="text"&&C.type!="hidden"&&C.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");
window.CP_targetInput=null;return }if(C.disabled){return }window.CP_targetInput=C;
window.CP_calendarObject=this;this.currentDate=null;var D=0;if(B!=null){D=getDateFromFormat(B,E)
}else{if(C.value!=""){D=getDateFromFormat(C.value,E)}}if(B!=null||C.value!=""){if(D==0){this.currentDate=null
}else{this.currentDate=new Date(D)}}window.CP_dateFormat=E;this.showCalendar(A)}function getCalendarStyles(){var A="";
var B="";if(this!=null&&typeof (this.cssPrefix)!="undefined"&&this.cssPrefix!=null&&this.cssPrefix!=""){B=this.cssPrefix
}A+="<STYLE>\n";A+="."+B+"cpYearNavigation,."+B+"cpMonthNavigation { background-color:#C0C0C0; text-align:center; vertical-align:center; text-decoration:none; color:#000000; font-weight:bold; }\n";
A+="."+B+"cpDayColumnHeader, ."+B+"cpYearNavigation,."+B+"cpMonthNavigation,."+B+"cpCurrentMonthDate,."+B+"cpCurrentMonthDateDisabled,."+B+"cpOtherMonthDate,."+B+"cpOtherMonthDateDisabled,."+B+"cpCurrentDate,."+B+"cpCurrentDateDisabled,."+B+"cpTodayText,."+B+"cpTodayTextDisabled,."+B+"cpText { font-family:arial; font-size:8pt; }\n";
A+="TD."+B+"cpDayColumnHeader { text-align:right; border:solid thin #C0C0C0;border-width:0 0 1 0; }\n";
A+="."+B+"cpCurrentMonthDate, ."+B+"cpOtherMonthDate, ."+B+"cpCurrentDate  { text-align:right; text-decoration:none; }\n";
A+="."+B+"cpCurrentMonthDateDisabled, ."+B+"cpOtherMonthDateDisabled, ."+B+"cpCurrentDateDisabled { color:#D0D0D0; text-align:right; text-decoration:line-through; }\n";
A+="."+B+"cpCurrentMonthDate, .cpCurrentDate { color:#000000; }\n";A+="."+B+"cpOtherMonthDate { color:#808080; }\n";
A+="TD."+B+"cpCurrentDate { color:white; background-color: #C0C0C0; border-width:1; border:solid thin #800000; }\n";
A+="TD."+B+"cpCurrentDateDisabled { border-width:1; border:solid thin #FFAAAA; }\n";
A+="TD."+B+"cpTodayText, TD."+B+"cpTodayTextDisabled { border:solid thin #C0C0C0; border-width:1 0 0 0;}\n";
A+="A."+B+"cpTodayText, SPAN."+B+"cpTodayTextDisabled { height:20px; }\n";A+="A."+B+"cpTodayText { color:black; }\n";
A+="."+B+"cpTodayTextDisabled { color:#D0D0D0; }\n";A+="."+B+"cpBorder { border:solid thin #808080; }\n";
A+="</STYLE>\n";return A}function CP_getCalendar(){var now=new Date();if(this.type=="WINDOW"){var windowref="window.opener."
}else{var windowref=""}var result="";if(this.type=="WINDOW"){result+="<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";
result+="<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n"
}else{result+='<TABLE CLASS="'+this.cssPrefix+'cpBorder" WIDTH=144 BORDER=1 BORDERWIDTH=1 CELLSPACING=0 CELLPADDING=1>\n';
result+="<TR><TD ALIGN=CENTER>\n";result+="<CENTER>\n"}if(this.displayType=="date"||this.displayType=="week-end"){if(this.currentDate==null){this.currentDate=now
}if(arguments.length>0){var month=arguments[0]}else{var month=this.currentDate.getMonth()+1
}if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){var year=arguments[1]
}else{var year=this.currentDate.getFullYear()}var daysinmonth=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);
if(((year%4==0)&&(year%100!=0))||(year%400==0)){daysinmonth[2]=29}var current_month=new Date(year,month-1,1);
var display_year=year;var display_month=month;var display_date=1;var weekday=current_month.getDay();
var offset=0;offset=(weekday>=this.weekStartDay)?weekday-this.weekStartDay:7-this.weekStartDay+weekday;
if(offset>0){display_month--;if(display_month<1){display_month=12;display_year--}display_date=daysinmonth[display_month]-offset+1
}var next_month=month+1;var next_month_year=year;if(next_month>12){next_month=1;next_month_year++
}var last_month=month-1;var last_month_year=year;if(last_month<1){last_month=12;last_month_year--
}var date_class;if(this.type!="WINDOW"){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>"
}result+="<TR>\n";var refresh=windowref+"CP_refreshCalendar";var refreshLink="javascript:"+refresh;
if(this.isShowNavigationDropdowns){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpMonthNavigation" name="cpMonth" onChange="'+refresh+"("+this.index+",this.options[this.selectedIndex].value-0,"+(year-0)+');">';
for(var monthCounter=1;monthCounter<=12;monthCounter++){var selected=(monthCounter==month)?"SELECTED":"";
result+='<option value="'+monthCounter+'" '+selected+">"+this.monthNames[monthCounter-1]+"</option>"
}result+="</select></TD>";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';
result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpYearNavigation" name="cpYear" onChange="'+refresh+"("+this.index+","+month+',this.options[this.selectedIndex].value-0);">';
for(var yearCounter=year-this.yearSelectStartOffset;yearCounter<=year+this.yearSelectStartOffset;
yearCounter++){var selected=(yearCounter==year)?"SELECTED":"";result+='<option value="'+yearCounter+'" '+selected+">"+yearCounter+"</option>"
}result+="</select></TD>"}else{if(this.isShowYearNavigation){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');">&lt;</A></TD>';
result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+"</SPAN></TD>";
result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');">&gt;</A></TD>';
result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';
result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+"("+this.index+","+month+","+(year-1)+');">&lt;</A></TD>';
if(this.isShowYearNavigationInput){result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.cssPrefix+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+year+'" onBlur="'+refresh+"("+this.index+","+month+',this.value-0);"></TD>'
}else{result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.cssPrefix+'cpYearNavigation">'+year+"</SPAN></TD>"
}result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+"("+this.index+","+month+","+(year+1)+');">&gt;</A></TD>'
}else{result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');">&lt;&lt;</A></TD>\n';
result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+" "+year+"</SPAN></TD>\n";
result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');">&gt;&gt;</A></TD>\n'
}}result+="</TR></TABLE>\n";result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n";
result+="<TR>\n";for(var j=0;j<7;j++){result+='<TD CLASS="'+this.cssPrefix+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.cssPrefix+'cpDayColumnHeader">'+this.dayHeaders[(this.weekStartDay+j)%7]+"</TD>\n"
}result+="</TR>\n";for(var row=1;row<=6;row++){result+="<TR>\n";for(var col=1;col<=7;
col++){var disabled=false;if(this.disabledDatesExpression!=""){var ds=""+display_year+LZ(display_month)+LZ(display_date);
eval("disabled=("+this.disabledDatesExpression+")")}var dateClass="";if((display_month==this.currentDate.getMonth()+1)&&(display_date==this.currentDate.getDate())&&(display_year==this.currentDate.getFullYear())){dateClass="cpCurrentDate"
}else{if(display_month==month){dateClass="cpCurrentMonthDate"}else{dateClass="cpOtherMonthDate"
}}if(disabled||this.disabledWeekDays[col-1]){result+='	<TD CLASS="'+this.cssPrefix+dateClass+'"><SPAN CLASS="'+this.cssPrefix+dateClass+'Disabled">'+display_date+"</SPAN></TD>\n"
}else{var selected_date=display_date;var selected_month=display_month;var selected_year=display_year;
if(this.displayType=="week-end"){var d=new Date(selected_year,selected_month-1,selected_date,0,0,0,0);
d.setDate(d.getDate()+(7-col));selected_year=d.getYear();if(selected_year<1000){selected_year+=1900
}selected_month=d.getMonth()+1;selected_date=d.getDate()}result+='	<TD CLASS="'+this.cssPrefix+dateClass+'"><A HREF="javascript:'+windowref+this.returnFunction+"("+selected_year+","+selected_month+","+selected_date+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+this.cssPrefix+dateClass+'">'+display_date+"</A></TD>\n"
}display_date++;if(display_date>daysinmonth[display_month]){display_date=1;display_month++
}if(display_month>12){display_month=1;display_year++}}result+="</TR>"}var current_weekday=now.getDay()-this.weekStartDay;
if(current_weekday<0){current_weekday+=7}result+="<TR>\n";result+='	<TD COLSPAN=7 ALIGN=CENTER CLASS="'+this.cssPrefix+'cpTodayText">\n';
if(this.disabledDatesExpression!=""){var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate());
eval("disabled=("+this.disabledDatesExpression+")")}if(disabled||this.disabledWeekDays[current_weekday+1]){result+='		<SPAN CLASS="'+this.cssPrefix+'cpTodayTextDisabled">'+this.todayText+"</SPAN>\n"
}else{result+='		<A CLASS="'+this.cssPrefix+'cpTodayText" HREF="javascript:'+windowref+this.returnFunction+"('"+now.getFullYear()+"','"+(now.getMonth()+1)+"','"+now.getDate()+"');"+windowref+"CP_hideCalendar('"+this.index+"');\">"+this.todayText+"</A>\n"
}result+="		<BR>\n";result+="	</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="month"||this.displayType=="quarter"||this.displayType=="year"){if(arguments.length>0){var year=arguments[0]
}else{if(this.displayType=="year"){var year=now.getFullYear()-this.yearSelectStartOffset
}else{var year=now.getFullYear()}}if(this.displayType!="year"&&this.isShowYearNavigation){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";
result+="<TR>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year-1)+');">&lt;&lt;</A></TD>\n';
result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="100">'+year+"</TD>\n";
result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year+1)+');">&gt;&gt;</A></TD>\n';
result+="</TR></TABLE>\n"}}if(this.displayType=="month"){result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";
for(var i=0;i<4;i++){result+="<TR>";for(var j=0;j<3;j++){var monthindex=((i*3)+j);
result+='<TD WIDTH=33% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnMonthFunction+"("+year+","+(monthindex+1)+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">'+this.monthAbbreviations[monthindex]+"</A></TD>"
}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="quarter"){result+="<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n";
for(var i=0;i<2;i++){result+="<TR>";for(var j=0;j<2;j++){var quarter=((i*2)+j+1);
result+='<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnQuarterFunction+"("+year+","+quarter+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">Q'+quarter+"</A><BR><BR></TD>"
}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="year"){var yearColumnSize=4;
result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+="<TR>\n";
result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year-(yearColumnSize*2))+');">&lt;&lt;</A></TD>\n';
result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year+(yearColumnSize*2))+');">&gt;&gt;</A></TD>\n';
result+="</TR></TABLE>\n";result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";
for(var i=0;i<yearColumnSize;i++){for(var j=0;j<2;j++){var currentyear=year+(j*yearColumnSize)+i;
result+='<TD WIDTH=50% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnYearFunction+"("+currentyear+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">'+currentyear+"</A></TD>"
}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.type=="WINDOW"){result+="</BODY></HTML>\n"
}return result}BTSuche.prototype=new BusinessToolDataSource();BTSuche.prototype.constructor=BTSuche;
BTSuche.superclass=BusinessToolDataSource.prototype;function BTSuche(B,A,C){if(arguments.length==0){return 
}this.init(B,A,C)}BTSuche.prototype.onFirstActivated=function(){BTSuche.superclass.onFirstActivated.call(this);
var D="";var C=this.getModules();while(C.length>0){var A=C.shift();var B=A.create(this);
if(D.length==0){D=B.getName()}this.getChildControler().register(B);B.bindToParent(this)
}this.getChildControler().switchActivate(D);return };BTSuche.prototype.getModules=function(){return BTSuche.MODULES
};BTSuche.prototype.createTable=function(C,E,J,G,H){var K=top.getHtmldoc().getElementById(C);
if(K==null){throw new Error(this+'\nElement mit id "'+C+'" existiert nicht im html-dokument.')
}G=G||0;var F=new FeatureTable(E,this.dataSource,K);var A=this;var I=H||E;var D=new ZoomMoverTableAction(I,this.getDataSource());
ZoomMoverTableAction.bindToTable(D,F);var B=this.dataSource.getFeatureTypeMetaInfo(E);
J.map(function(L){F.addColumn(B.getPropertyMetaInfo(L))});F.setOrderBy(G,true);return F
};BTSuche.prototype.submitCurrentFormular=function(){this.modeSwitch.getCurrent().getFormular().submitValues()
};BTSuche.prototype.resetCurrentFormular=function(){this.modeSwitch.getCurrent().getFormular().resetValues()
};BTSuche.prototype.toString=function(){return'[object BTSuche] "'+this.getName()+'"'
};BTSuche.MODULES=[];BTSuche.register=function(A){BTSuche.MODULES.push(A)};function NovaxFormularElement(B,C,A){this.name=B;
this.element=C;this.validators=A||[];this.validationErrors=new Array();this.lastValue=null;
if(C.length&&C.item&&C.type!="select-one"){C.type="radio"}Event.observe(this.element,"change",this.changed.bind(this));
Event.observe(this.element,"keyup",this.changed.bind(this))}NovaxFormularElement.prototype.changed=function(){if(this.lastValue==this.element.value){return 
}this.lastValue=this.element.value;this.validate(this.element.value)};NovaxFormularElement.prototype.getName=function(){return this.name
};NovaxFormularElement.prototype.getValue=function(){switch(this.element.type){case"checkbox":return this.element.checked;
case"radio":for(var A=0;A<this.element.length;A++){if(this.element.item(A).checked){return this.element.item(A).value
}}return null;default:return this.element.value}};NovaxFormularElement.prototype.setValue=function(B){switch(this.element.type){case"checkbox":this.element.checked=B;
break;case"select-one":for(var A=0;A<this.element.options.length;A++){if(this.element.options[A].value==B){this.element.selectedIndex=A;
break}}break;case"radio":for(var A=0;A<this.element.length;A++){if(this.element.item(A).value==B){this.element.item(A).checked=true;
break}}break;default:this.element.value=B}};NovaxFormularElement.prototype.setDefaultValue=function(A){this.defaultValue=A;
this.setDefault()};NovaxFormularElement.prototype.setDefault=function(){this.setValue(this.defaultValue);
this.validate(this.defaultValue)};NovaxFormularElement.prototype.toString=function(){return"[NFE] "+this.getName()+"="+this.getValue()
};NovaxFormularElement.prototype.validate=function(B){this.validationErrors=new Array();
for(var A=0;A<this.validators.length;A++){var C=this.validators[A];if(C.validate(B)==false){this.validationErrors.push(C.getText())
}}if(this.isValid()){NovaxEventHelpers.notify(this,"onIsValid",this)}else{NovaxEventHelpers.notify(this,"onIsInvalid",this)
}};NovaxFormularElement.prototype.isValid=function(){return this.validationErrors.length==0
};NovaxFormularElement.prototype.getValidationErrors=function(){return this.validationErrors
};function NovaxFormular(B,A){if(arguments.length==0){return }this.init(B,A)}NovaxFormular.prototype.init=function(B,A){this.formular=B;
this.entities=new HashMap();this.prefix=A;this.submitBtn=this.formular.elements[this.prefix+"submit"];
if(this.submitBtn){NovaxEventHelpers.bindDom(this.submitBtn,"click",this,this.submitValues)
}this.resetBtn=this.formular.elements[this.prefix+"reset"];if(this.resetBtn){NovaxEventHelpers.bindDom(this.resetBtn,"click",this,this.resetValues)
}NovaxEventHelpers.bindDom(this.formular,"submit",this,this.onSubmitFormular);this.invalids=new HashMap()
};NovaxFormular.prototype.toString=function(){return"[object NovaxFormular]"};NovaxFormular.prototype.add=function(D,B,E){var C=this._createEntity(D,E);
NovaxEventHelpers.bind(C,"onIsValid",this,this.onIsValid);NovaxEventHelpers.bind(C,"onIsInvalid",this,this.onIsInvalid);
var A={onIsValid:function(F){F.element.className=""},onIsInvalid:function(F){F.element.className="notvalid"
}};NovaxEventHelpers.bind(C,"onIsValid",A,A.onIsValid);NovaxEventHelpers.bind(C,"onIsInvalid",A,A.onIsInvalid);
C.setDefaultValue(B);this.entities.put(D,C)};NovaxFormular.prototype._createEntity=function(A,C){var B=this.formular[this.prefix+A];
if(B==null){throw new Error(this+'\n Element "'+this.prefix+A+'" exisitiert nicht.')
}return new NovaxFormularElement(A,B,C)};NovaxFormular.prototype.getEntities=function(){return this.entities
};NovaxFormular.prototype.onIsValid=function(A){this.invalids.remove(A.getName())
};NovaxFormular.prototype.onIsInvalid=function(A){this.invalids.put(A.getName(),A.getName())
};NovaxFormular.prototype.onSubmitFormular=function(){this.submitValues()};NovaxFormular.prototype.submitValues=function(){if(this.invalids.size()==0){NovaxEventHelpers.notify(this,"submit",this.entities)
}else{top.LOGGER.debug(this+"invalide elemente: "+this.invalids.getKeys())}};NovaxFormular.prototype.resetValues=function(){for(var A=this.entities.iterator();
A.hasNext();){A.next().setDefault()}this.submitValues()};SetMapPositionObserver=function(B,A){this.minWidth=A;
this.scale=B};SetMapPositionObserver.prototype.move=function(B){if(B==null){return 
}var A=top.getAppConfig().getMapView();B.getRatioFrom(A.getBoundingBox());if(B.expandWidthTo(top.APP_CONFIG.getMapView().getView().getWidth())==false){B.scale(this.scale)
}A.setView(B)};SetMapPositionObserver.prototype.zoom=function(D){if(D==null){return 
}var B=top.getAppConfig().getMapView();var F=B.getBoundingBox();var E=D.getHeight()<this.minWidth&&D.getWidth()<this.minWidth;
if(D.getHeight()<this.minWidth){D.expandHeightTo(this.minWidth)}if(D.getWidth()<this.minWidth){D.expandWidthTo(this.minWidth)
}var C=D.getHeight();var A=D.getWidth();if(C>A){D.expandWidthTo((C*F.getWidth())/F.getHeight())
}else{D.expandHeightTo((A*F.getHeight())/F.getWidth())}if(!E){D.scale(this.scale)
}B.setView(D)};ZoomMoverTableAction=function(B,A){this.typename=B;this.datasource=A
};ZoomMoverTableAction.bindToTable=function(A,B){B.addAction(TEXT_ACTION_ZOOM,"zoom",A,"zoomToFeature")
};ZoomMoverTableAction.prototype.zoomToFeature=function(A){var B=new OGCFilter();
B.addOperator(new OGCOperatorFeatureId(A.getId()));this.datasource.getEnvelopeByFilter(this.typename,B,new SetMapPositionObserver(2,5000),"zoom")
};ZoomMoverTableAction.prototype.moveToFeature=function(A){var B=new OGCFilter();
B.addOperator(new OGCOperatorFeatureId(A.getId()));this.datasource.getEnvelopeByFilter(this.typename,B,new SetMapPositionObserver(2),"move")
};BTListen2.prototype=new BTSuche();BTListen2.prototype.constructor=BTSuche;BTListen2.superclass=BTSuche.prototype;
function BTListen2(B,A,C){if(arguments.length==0){return }this.init(B,A,C)}BTListen2.prototype.getModules=function(){return BTListen2.MODULES
};BTListen2.prototype.createImage=function(B,A){var D=B.getPropertyValue("AKTENZEICHEN");
var C=new OGCFilter();C.addOperator(new OGCOperatorFeatureId(B.getId()));this.getDataSource().getEnvelopeByFilter("V_BB_GEOM_SPERR",C,{img:A,az:D,re:function(E){if(E==null){return 
}this.img.src="http://carstenxp/svgclient/sperrinfosys_wms/WMS?request=GetMap&format=image/gif&TRANSPARENT=TRUE&format=image/png&BGCOLOR=0xFFFFFF&bbox="+E.getCoordinates(",")+"&srs=EPSG:31467&layers=RING_BUFFER,G_LAND,NL_GELB,NL_BLAU,NL_GRUEN,WAS_BEZ,BHF2,ORTE_K,ORTE_BEZ,ORTE_G,ORTE_BEZ_G,WASSER,BHF1,BAHN,G_KREIS,VI_STRASSENNETZ,NL_TEXT,V_GEOM_UMLEI,V_GEOM_SPERR,DOKSPERR&styles=default,default,default,default,default,default,default,default,default,default,default,default,default,default,default,default,default,default,default,default&width=256&height=256&DIM_AKTENZEICHEN="+escape(this.az)
}},"re")};BTListen2.MODULES=[];BTListen2.register=function(A){BTListen2.MODULES.push(A)
};var ListeModul_Date={create:function(B){var C=top.TOOLS.get("DateFilter").getFilter();
var D=B.createTable("listeDateTable","V_PUBLIC_DOKSPERR",["ARTSP","S_VON","S_BIS","S_ORTBEZ","S_STRBEZ"],1,"V_BB_GEOM_SPERR");
D.addAction(TEXT_ACTION_DETAIL,"details",top.sperrungDetailViewer,"showDetails");
var E=new ToolSwitch("datum","listeDate");var A=new FilteredTableObserver2(D,E);A.bindToFilter(C);
A.onFilterModified(C);return E}};var ListeModul_Kreis={create:function(B){var F=new ToolSwitch("kreis","listeKreis");
var C=F.getFormular();C.add("VERWKENNZ","");var D=new VerwkennzDatumFilter(top.TOOLS.get("DateFilter").getFilter());
NovaxFilter.bindToFormular(D,C);var E=B.createTable("listeKreisTable","V_PUBLIC_DOKSPERR",["ARTSP","S_VON","S_BIS","S_ORTBEZ","S_STRBEZ"],1,"V_BB_GEOM_SPERR");
E.addAction(TEXT_ACTION_DETAIL,"details",top.sperrungDetailViewer,"showDetails");
var A=new FilteredTableObserver(E);A.bindToFilter(D);return F}};BTListen2.register(ListeModul_Kreis);
BTListen2.register(ListeModul_Date);var ListeModul_StrasseDatum={create:function(B){var F=new ToolSwitch("strasse","listeStrasse");
var C=F.getFormular();C.add("KLASSE","B");var D=new StrasseDatumFilter(top.TOOLS.get("DateFilter").getFilter());
NovaxFilter.bindToFormular(D,C);var E=B.createTable("listeStrasseTable","V_PUBLIC_DOKSPERR_KN",["ARTSP","S_VON","S_BIS","S_ORTBEZ","STRASSENBEZEICHNUNG"],1,"V_BB_GEOM_SPERR");
E.addAction(TEXT_ACTION_DETAIL,"details",top.sperrungDetailViewer,"showDetails");
var A=new FilteredTableObserver(E);A.bindToFilter(D);return F}};BTListen2.register(ListeModul_StrasseDatum);
StrasseDatumFilter.prototype=new NovaxFilter(false);StrasseDatumFilter.prototype.constructor=StrasseDatumFilter;
StrasseDatumFilter.superclass=NovaxFilter.prototype;function StrasseDatumFilter(A){this.init(A)
}StrasseDatumFilter.prototype.init=function(A){StrasseDatumFilter.superclass.init.call(this);
this.datumFilter=A};StrasseDatumFilter.prototype.getOperator=function(){var B=this.novaxElements.get("KLASSE").getValue();
var A=new OGCComparisonOperator("KLASSE",B,OGC.Eq);return this.datumFilter.getOperator().and(A)
};VerwkennzDatumFilter.prototype=new NovaxFilter(false);VerwkennzDatumFilter.prototype.constructor=VerwkennzDatumFilter;
VerwkennzDatumFilter.superclass=NovaxFilter.prototype;function VerwkennzDatumFilter(A){this.init(A)
}VerwkennzDatumFilter.prototype.init=function(A){VerwkennzDatumFilter.superclass.init.call(this);
this.datumFilter=A};VerwkennzDatumFilter.prototype.getOperator=function(){var B=this.novaxElements.get("VERWKENNZ").getValue();
var A=new OGCComparisonOperator("VERWKENNZ",B+"%",OGC.Like);return this.datumFilter.getOperator().and(A)
};FilteredTableObserver2=function(A,B){this.featureTable=A;this.toolSwitch=B;this.shouldRefreshTable=false;
NovaxEventHelpers.bind(this.toolSwitch,"activeSet",this,this.onActiveSet)};FilteredTableObserver2.prototype.bindToFilter=function(A){this.filter=A;
NovaxEventHelpers.bind(A,"modified",this,this.onFilterModified)};FilteredTableObserver2.prototype.onFilterModified=function(A){this.featureTable.setFilter(A);
if(this.toolSwitch.isActive()&&this.toolSwitch.isParentActive()){this.featureTable.refresh()
}else{this.shouldRefreshTable=true}};FilteredTableObserver2.prototype.onActiveSet=function(A,B){if(B&&this.shouldRefreshTable){this.featureTable.refresh();
this.shouldRefreshTable=false}};BTFilter.prototype=new BusinessTool();BTFilter.prototype.constructor=BTFilter;
BTFilter.superclass=BusinessTool.prototype;function BTFilter(B,A,D,E,C){if(arguments.length==0){return 
}this.init(B,A,D,E,C)}BTFilter.prototype.init=function(B,A,D,E,C){BTFilter.superclass.init.call(this,B,A);
this.sperrFilter=new SperrFilter();this.formular=C.getElementById(D);if(this.formular==null){throw new Error(this+'\nIm HTML-Dokument existiert das Formular "'+D+'" nicht.')
}this.vonInput=this.formular.elements[E+"S_VON"];this.bisInput=this.formular.elements[E+"S_BIS"];
this.amtInput=this.formular.elements[E+"AMT"];this.setDefault("","","",SperrFilter.MODUS_VON_BIS,false)
};BTFilter.prototype.setDefault=function(A,E,D,C,B){this.vonDef=A;this.bisDef=E;this.amtDef=D;
this.modus=C;this.includeArchiv=B;this.resetValues()};BTFilter.prototype.set=function(A,C,B){this.vonInput.value=A;
this.bisInput.value=C;this.amtInput.value=B;this.submitValues()};BTFilter.prototype.submitValues=function(A){var B=this.vonInput==null?(this.vonDef==""?"01.01.1970 00:00":this.vonDef):this.vonInput.value;
var E=this.bisInput==null?(this.bisDef==""?"31.12.2038 00:00":this.bisDef):this.bisInput.value;
var D=this.amtInput==null?this.amtDef:this.amtInput.value;var C=VonBisValidierer.validate(B,E,true);
if(C==false){C={von:0,bis:getDateFromFormat("31.12.2038 00:00:00","dd.MM.yyyy HH:mm:ss")}
}this.sperrFilter.set(getXsdDateTimeValue(C.von),getXsdDateTimeValue(C.bis),D,this.modus,this.includeArchiv)
};BTFilter.prototype.resetValues=function(){if(this.vonInput!=null){this.vonInput.value=this.vonDef
}if(this.bisInput!=null){this.bisInput.value=this.bisDef}if(this.amtInput!=null){this.amtInput.value=this.amtDef
}this.submitValues()};BTFilter.prototype.attachSperrFilterObserver=function(A){this.sperrFilter.attach(A)
};BTFilter.prototype.getSperrFilter=function(){return this.sperrFilter};SperrFilter.prototype=new AbstractDataFilter(false);
SperrFilter.prototype.constructor=SperrFilter;SperrFilter.superclass=AbstractDataFilter.prototype;
function SperrFilter(){this.init()}SperrFilter.prototype.init=function(){SperrFilter.superclass.init.call(this);
this.von="";this.bis="";this.amt="";this.modus="";this.includeArchiv=false};SperrFilter.prototype.toString=function(){return'Object [SperrFilter]\nvon="'+this.von+'" bis="'+this.bis+'" amt="'+this.amt+'" modus="'+this.modus+'" arc="'+this.includeArchiv+'"'
};SperrFilter.prototype.set=function(A,E,D,C,B){this.von=A;this.bis=E;this.amt=D;
this.modus=C;this.includeArchiv=B;SperrFilter.superclass.set.call(this)};SperrFilter.prototype.getOperator=function(){var A=new OGCLogicalOperator(OGC.AND);
if(this.includeArchiv){A.addOperator(new OGCComparisonOperator("ARCHIV","1",OGC.Eq))
}else{var B=new OGCLogicalOperator(OGC.OR);B.addOperator(new OGCComparisonOperator("ARCHIV","0",OGC.Eq));
B.addOperator(new OGCComparisonOperator("ARCHIV",null,OGC.IsNull));A.addOperator(B)
}if(this.amt!=""){A.addOperator(new OGCComparisonOperator("AMT",this.amt,OGC.Eq))
}if(this.von!=""&&this.bis!=""){switch(this.modus){case SperrFilter.MODUS_VON_BIS:A.addOperator(new OGCComparisonOperator("S_BIS",this.von,OGC.Gt_OR_Eq));
A.addOperator(new OGCComparisonOperator("S_VON",this.bis,OGC.Lt_OR_Eq));break;case SperrFilter.MODUS_BIS_BIS:A.addOperator(new OGCComparisonOperator("S_BIS",this.von,OGC.Gt_OR_Eq));
A.addOperator(new OGCComparisonOperator("S_BIS",this.bis,OGC.Lt_OR_Eq));break;case SperrFilter.MODUS_BIS:A.addOperator(new OGCComparisonOperator("S_BIS",this.bis,OGC.Lt_OR_Eq))
}}return A};SperrFilter.MODUS_VON_BIS=1;SperrFilter.MODUS_BIS_BIS=2;SperrFilter.MODUS_BIS=3;
VonBisValidierer=function(){};VonBisValidierer.getParsedMillis=function(B,A){if(!isDate(B,"dd.MM.yyyy HH:mm")){throw new Error("Bitte geben Sie das "+A+"-Datum im Format TT.MM.JJJJ hh:mm ein.")
}return getDateFromFormat(B+":00","dd.MM.yyyy HH:mm:ss")};VonBisValidierer.validate=function(A,C,B){if(A==null||A==""||C==null||C==""){return false
}A=VonBisValidierer.getParsedMillis(A,"Von");C=VonBisValidierer.getParsedMillis(C,"Bis");
if(B){if(C<A){throw new Error("Das Bis-Datum muss >= als das Von-Datum sein.")}}else{if(C<=A){throw new Error("Das Bis-Datum muss > das Von-Datum sein.")
}}return{von:A,bis:C}};function SuchModul_Ort(){}SuchModul_Ort.create=function(A){var B=new ToolSwitch("orte","sucheOrt");
var C=B.getFormular();C.add("ORT_NAME","",[Novajax.Validator.minLength(3)]);var D=new OrteFilter();
NovaxFilter.bindToFormular(D,C);var E=new FilteredTableObserver(A.createTable("sucheOrtResultTable","SUCHE_ORTE",["NAME"]));
FilteredTableObserver.bindToFilter(E,D);return B};BTSuche.register(SuchModul_Ort);
OrteFilter.prototype=new NovaxFilter(false);OrteFilter.prototype.constructor=OrteFilter;
OrteFilter.superclass=NovaxFilter.prototype;function OrteFilter(){this.init()}OrteFilter.prototype.init=function(){OrteFilter.superclass.init.call(this)
};OrteFilter.prototype.getOperator=function(){var A=this.novaxElements.get("ORT_NAME").getValue().toUpperCase();
return new OGCComparisonOperator("NAME_UC","%"+A+"%",OGC.Like)};function SuchModul_Landkreis(){}SuchModul_Landkreis.create=function(A){var B=new ToolSwitch("landkreis","sucheLandkreis");
var C=B.getFormular();C.add("LK_NAME","",[]);var D=new LandkreisFilter();NovaxFilter.bindToFormular(D,C);
var E=new FilteredTableObserver(A.createTable("sucheLandkreisResultTable","SUCHE_LK",["NAME"]));
FilteredTableObserver.bindToFilter(E,D);return B};BTSuche.register(SuchModul_Landkreis);
LandkreisFilter.prototype=new NovaxFilter(false);LandkreisFilter.prototype.constructor=LandkreisFilter;
LandkreisFilter.superclass=NovaxFilter.prototype;function LandkreisFilter(){this.init()
}LandkreisFilter.prototype.init=function(){LandkreisFilter.superclass.init.call(this)
};LandkreisFilter.prototype.getOperator=function(){var A=this.novaxElements.get("LK_NAME").getValue().toUpperCase();
return new OGCComparisonOperator("NAME_UC","%"+A+"%",OGC.Like)};BTDateFilter.prototype=new BusinessTool();
BTDateFilter.prototype.constructor=BTDateFilter;BTDateFilter.superclass=BusinessTool.prototype;
function BTDateFilter(B,A){if(arguments.length==0){return }this.init(B,A)}BTDateFilter.prototype.init=function(B,A){BTDateFilter.superclass.init.call(this,B,A);
var C=this.getFormular();C.add("DATE",formatDate(new Date(),"dd.MM.yyyy"),[Novajax.Validator.isValidDate("dd.MM.yyyy")]);
this.filter=new DateFilter();NovaxFilter.bindToFormular(this.filter,C);C.submitValues()
};BTDateFilter.prototype.getFilter=function(){return this.filter};DateFilter.prototype=new NovaxFilter(false);
DateFilter.prototype.constructor=DateFilter;DateFilter.superclass=NovaxFilter.prototype;
function DateFilter(){this.init()}DateFilter.prototype.init=function(){DateFilter.superclass.init.call(this)
};DateFilter.prototype.getOperator=function(){var B=this._getVonBis();var A=new OGCComparisonOperator("S_BIS",B.von,OGC.Gt_OR_Eq);
return A.and(new OGCComparisonOperator("S_VON",B.bis,OGC.Lt_OR_Eq))};DateFilter.prototype._getVonBis=function(){var B=this.novaxElements.get("DATE").getValue();
var A=[];A.von=getXsdDateTimeValue((B+" 00:00:00").parseDate("dd.MM.yyyy HH:mm:ss"));
A.bis=getXsdDateTimeValue((B+" 23:59:59").parseDate("dd.MM.yyyy HH:mm:ss"));return A
};DateFilter.prototype.getUrlParams=function(){var A=[];var B=this._getVonBis();A.push("VON="+escape(getXsdDateTimeValue(Novax.MIN_DATETIME)+"/"+B.bis));
A.push("BIS="+escape(B.von+"/"+getXsdDateTimeValue(Novax.MAX_DATETIME)));return A
};DateFilter.prototype.toString=function(){return"[object DateFilter]"};var DATA_SAVED="data_saved";
DialogLoader.prototype.constructor=DialogLoader;function DialogLoader(A){if(arguments.length==0){return 
}this.init(A)}DialogLoader.prototype.init=function(A){this.observers=new Observers();
this.dataSource=A;if(this.dataSource==null){throw new Error(this+"\nDie ubergebene DataSource darf nicht null sein.")
}this.path="";if(window.location.pathname.indexOf("dialogs/")==-1){this.path="dialogs/"
}this.windowOptions="dialogHeight:300px;dialogWidth:400px;status:off;resizable:on;";
this.appconfig=top.getAppConfig();this.modal=true};DialogLoader.prototype.showDialog=function(){if(this.modal){return showModalDialog(this.path+this.getHtmlFilename(),this,this.getWindowOptions())
}else{var A=open(this.path+this.getHtmlFilename(),"_blank",this.getWindowOptions());
A.dialogArguments=this;A.focus();return A}};DialogLoader.prototype.getHtmlFilename=function(){return this.htmlFilename
};DialogLoader.prototype.setHtmlFilename=function(A){this.htmlFilename=A};DialogLoader.prototype.getWindowOptions=function(){return this.windowOptions
};DialogLoader.prototype.setWindowOptions=function(A){this.windowOptions=A};DialogLoader.prototype.toString=function(){return"Object [DialogLoader]"
};DialogLoader.prototype.getDataSource=function(){return this.dataSource};DialogLoader.prototype.attach=function(A){this.observers.attach(A)
};DialogLoader.prototype.detach=function(A){this.observers.detach(A)};DialogLoader.prototype.setModal=function(A){this.modal=A
};ListDialogLoader.prototype=new DialogLoader();ListDialogLoader.prototype.constructor=ListDialogLoader;
ListDialogLoader.superclass=DialogLoader.prototype;function ListDialogLoader(B,A){if(arguments.length==0){return 
}this.init(B,A)}ListDialogLoader.prototype.init=function(B,A){ListDialogLoader.superclass.init.call(this,B);
this.htmlFilename="zoomDialog.html";this.typeName=A};ListDialogLoader.prototype.toString=function(){return"Object [ListDialogLoader]"
};ListDialogLoader.prototype.addActions=function(A){var B=this.getFeatureTypeMetaInfo();
if(B.isEditable()){A.addAction(TEXT_ACTION_MODIFY,"bearbeiten",this,"editFeature");
A.constructor.addDeleteAction(A)}};ListDialogLoader.prototype.getFeatureTypeMetaInfo=function(){return this.dataSource.getFeatureTypeMetaInfo(this.typeName)
};ListDialogLoader.prototype.getFilterOperator=function(){return top.getAppConfig().getUserConfig().getAmtOgcOperator()
};ListDialogLoader.prototype.createNewFeature=function(A){if(A==null){A=this.getDataSource().createFeature(this.typeName)
}top.getAppConfig().setAuthData(A);var B=new WaitFor(this);B.attach({feature:A,finished:function(C){C.editFeature(this.feature)
}});this.initNewFeature(A,B)};ListDialogLoader.prototype.initNewFeature=function(A,B){B.start();
B.finish()};ListDialogLoader.prototype.editFeature=function(B){var A=this.createEditFeatureDialogLoader(B);
if(A.showDialog()){this.observers.notify("featureModified",B)}};ListDialogLoader.prototype.createEditFeatureDialogLoader=function(A){return new EditFeatureDialogLoader(this.getDataSource(),A)
};ZoomDialogLoader.prototype=new ListDialogLoader();ZoomDialogLoader.prototype.constructor=ZoomDialogLoader;
ZoomDialogLoader.superclass=ListDialogLoader.prototype;function ZoomDialogLoader(F,A,E,C,B,D){if(arguments.length==0){return 
}this.init(F,A,E,C,D)}ZoomDialogLoader.prototype.init=function(F,B,E,C,D){ZoomDialogLoader.superclass.init.call(this,F,B);
if(C==null){throw new Error(this+"\nDas formular darf nicht null sein.")}this.formular=C;
var A=this.getDataSource().getFeatureTypeMetaInfo(E);this.detail=A.getDetail(B);if(this.detail==null){alert(this+'\nDetail fur "'+B+'" ist nicht im FeatureTypeMetaInfo fur "'+E+'" konfiguriert.');
return }this.setOnly=D};ZoomDialogLoader.prototype.toString=function(){return"Object [ZoomDialogLoader]"
};ZoomDialogLoader.prototype.addActions=function(A){A.addAction(TEXT_ACTION_SELECT,"auswahl",this,"selectFeature");
ZoomDialogLoader.superclass.addActions.call(this,A)};ZoomDialogLoader.prototype.selectFeature=function(A){copyFeatureValuesToFormular(A,this.formular,this.detail,this.setOnly);
this.observers.notify("featureSelected",A)};MultipleSelectListDialogLoader.prototype=new ListDialogLoader();
MultipleSelectListDialogLoader.prototype.constructor=MultipleSelectListDialogLoader;
MultipleSelectListDialogLoader.superclass=ListDialogLoader.prototype;function MultipleSelectListDialogLoader(D,A,C,B){if(arguments.length==0){return 
}this.init(D,A,C,B)}MultipleSelectListDialogLoader.prototype.init=function(E,B,D,C){MultipleSelectListDialogLoader.superclass.init.call(this,E,B);
this.htmlFilename="multiselectDialog.html";if(C==null){throw new Error(this+"\nDas formular darf nicht null sein.")
}this.formular=C;var A=this.getDataSource().getFeatureTypeMetaInfo(D);this.detail=A.getDetail(B);
if(this.detail==null){alert(this+'\nDetail fur "'+B+'" ist nicht im FeatureTypeMetaInfo fur "'+D+'" konfiguriert.');
return }};MultipleSelectListDialogLoader.prototype.toString=function(){return"Object [MultipleSelectListDialogLoader]"
};MultipleSelectListDialogLoader.prototype.addActions=function(A){A.addAction(TEXT_ACTION_SELECT,"multipleselection");
MultipleSelectListDialogLoader.superclass.addActions.call(this,A)};MultipleSelectListDialogLoader.prototype.saveSelectedFeatures=function(A){this.formular.elements.TEXTBSTN.value="";
copyFeatureValuesToFormular(A,this.formular,this.detail,this.setOnly);this.observers.notify("featureSelected",A)
};EditFeatureDialogLoader.prototype=new DialogLoader();EditFeatureDialogLoader.prototype.constructor=EditFeatureDialogLoader;
EditFeatureDialogLoader.superclass=DialogLoader.prototype;function EditFeatureDialogLoader(C,B,A){if(arguments.length==0){return 
}this.init(C,B,A)}EditFeatureDialogLoader.prototype.init=function(C,B,A){EditFeatureDialogLoader.superclass.init.call(this,C);
this.htmlFilename="featureEditDialog.html";this.feature=B;this.preChanged=A};EditFeatureDialogLoader.prototype.getPreChanged=function(){return this.preChanged==null?new Array():this.preChanged
};FeatureDialogLoader.prototype=new DialogLoader();FeatureDialogLoader.prototype.constructor=FeatureDialogLoader;
FeatureDialogLoader.superclass=DialogLoader.prototype;function FeatureDialogLoader(C,A,B){if(arguments.length==0){return 
}this.init(C,A,B)}FeatureDialogLoader.prototype.init=function(C,A,B){FeatureDialogLoader.superclass.init.call(this,C);
this.htmlFilename="featureDialog_"+(B?B:A.getType())+".html";this.feature=A};EditDoksperrDialogLoader.prototype=new EditFeatureDialogLoader();
EditDoksperrDialogLoader.prototype.constructor=EditDoksperrDialogLoader;EditDoksperrDialogLoader.superclass=EditFeatureDialogLoader.prototype;
function EditDoksperrDialogLoader(D,B,A,E,C){if(arguments.length==0){return }this.init(D,B,A,E,C)
}EditDoksperrDialogLoader.prototype.init=function(D,B,A,E,C){EditDoksperrDialogLoader.superclass.init.call(this,D,B,A);
this.sperrungFeatures=E;this.umleitungFeatures=C};EditDoksperrDialogLoader.prototype.showDialog=function(){this.htmlFilename=null;
if(top.getAppConfig().getUserConfig().getACL().hasPermission("sperrinfosys","FORMTYP_BLSKG")){this.htmlFilename="Anordnung_BLSKG.html"
}else{if(top.getAppConfig().getUserConfig().getACL().hasPermission("sperrinfosys","FORMTYP_A")){this.htmlFilename="Anordnung_A.html"
}}if(this.htmlFilename==null){alert("Sie haben nicht die Berechtigung, sich das Formular anzeigen zu lassen.");
return }return EditDoksperrDialogLoader.superclass.showDialog.call(this)};ZahlungenDialogLoader.prototype=new ListDialogLoader();
ZahlungenDialogLoader.prototype.constructor=ZahlungenDialogLoader;ZahlungenDialogLoader.superclass=ListDialogLoader.prototype;
function ZahlungenDialogLoader(C,A,B){if(arguments.length==0){return }this.init(C,A,B)
}ZahlungenDialogLoader.prototype.init=function(C,A,B){ZahlungenDialogLoader.superclass.init.call(this,C,A);
this.feature=B;if(B==null){throw new Error(this+"\nDas feature-Feature darf nicht null sein.")
}};ZahlungenDialogLoader.prototype.toString=function(){return"Object [ZahlungenDialogLoader]"
};ZahlungenDialogLoader.prototype.getFilterOperator=function(){var B=ZahlungenDialogLoader.superclass.getFilterOperator.call(this);
var A=new OGCLogicalOperator(OGC.AND);A.addOperator(B);A.addOperator(new OGCComparisonOperator("AKTENZEICHEN",this.feature.getPropertyValue("AKTENZEICHEN"),OGC.Eq));
return A};ZahlungenDialogLoader.prototype.addActions=function(A){ZahlungenDialogLoader.superclass.addActions.call(this,A);
A.addAction(TEXT_ACTION_DOWNLOAD_PDF,"pdfDownload",this,"pdfFeature")};ZahlungenDialogLoader.prototype.createNewFeature=function(){var C=top.getAppConfig().getUserConfig().getProperty("DEFAULT_DOKSPANORD_FID");
if(C!=null){var B=this.getDataSource();var A=this;B.getFeature("DOKSPANORD",C,{ds:B,bt:A,got:function(D,E){if(D==null){alert("Voreinstellungen für die Zahlungsanordnunge konnten nicht gefunden werden.");
ZahlungenDialogLoader.superclass.createNewFeature.call(A)}else{ZahlungenDialogLoader.superclass.createNewFeature.call(A,D)
}}},"got")}else{ZahlungenDialogLoader.superclass.createNewFeature.call(this)}};ZahlungenDialogLoader.prototype.initNewFeature=function(C,F){F.start();
ZahlungenDialogLoader.superclass.initNewFeature.call(this,C,F);var D=new Date().getTime();
C.setPropertyValue("A_DATUM",getXsdDateTimeValue(D));var E=this.getDataSource();var B=F;
F.start();E.getFeaturesByFilter("IKSPFEIERTAG",null,null,{waitFor:B,feature:C,startMillies:D,got:function(I){this.startMillies=this.startMillies+(86400000*14);
var J=new Array();for(var H=0;I!=null&&H<I.length;H++){J.push(I[H].getPropertyValue("DATUM"))
}while(new Date(this.startMillies).getDay()==0||new Date(this.startMillies).getDay()==6||J.indexOf(formatDate(new Date(this.startMillies),"yyyy-MM-dd"))>-1){this.startMillies+=86400000
}this.feature.setPropertyValue("FAELLIG",getXsdDateTimeValue(this.startMillies));
this.waitFor.finish()}},"got");C.setPropertyValue("AKTENZEICHEN",this.feature.getPropertyValue("AKTENZEICHEN"));
C.setPropertyValue("BETRAG",this.feature.getPropertyValue("GEB_GESAMT"));C.setPropertyValue("BETRAG_WDH",this.feature.getPropertyValue("GEB_GESAMT"));
C.setPropertyValue("BANK_NAME",this.feature.getPropertyValue("BANK_NAME"));C.setPropertyValue("AO_NUMMER",this.feature.getPropertyValue("AKTENZEICHEN"));
C.setPropertyValue("AO_DATUM",this.feature.getPropertyValue("DAT_ERST"));C.setPropertyValue("ZPF_NAME",this.feature.getPropertyValue("BAUF_BEZ1"));
C.setPropertyValue("ZPF_STR",this.feature.getPropertyValue("BAUF_STR")+" "+this.feature.getPropertyValue("BAUF_HNR"));
C.setPropertyValue("ZPF_PLZ",this.feature.getPropertyValue("BAUF_PLZ"));C.setPropertyValue("ZPF_ORT",this.feature.getPropertyValue("BAUF_ORT"));
var G=this.feature.getPropertyValue("AKTENZEICHEN");var A=this.feature.getPropertyValue("VCOUNTER");
if(isNaN(parseFloat(A))==false){var G=A+". Verlängerung / Ergänzung der verkehrsrechtlichen Anordnung - "+G
}C.setPropertyValue("VERWEND_ZW",G);C.setPropertyValue("VERWEND_DAT",this.feature.getPropertyValue("DAT_ERST"));
F.finish()};ZahlungenDialogLoader.prototype.createEditFeatureDialogLoader=function(B){var A=ZahlungenDialogLoader.superclass.createEditFeatureDialogLoader.call(this,B);
A.setWindowOptions("dialogHeight:500px;dialogWidth:600px;status:off;resizable:on;");
return A};ZahlungenDialogLoader.prototype.pdfFeature=function(C){var A=["repName="+escape("RepSperrInf/Zahlung"),"mime="+escape("application/pdf")];
A.push("fid="+escape(C.getId()));var B=top.AppConfig.getParam("reportEngineUrl");
window.open(B+"?"+A.join("&"),"_blank","")};function SperrungDetailViewer(A){this.datasource=A
}SperrungDetailViewer.prototype.showDetails=function(B){var C=this.datasource;var A=this;
C.getFeature("V_PUBLIC_DOKSPERR",B.getId(),{bt:A,gotFeature:function(E){var D=new FeatureDialogLoader(C,E,"DOKSPERR");
D.setModal(false);D.setWindowOptions("height=500px,width=400px,status=off,resizable=yes,scrollbars=yes,menubar=yes");
D.showDialog()}},"gotFeature")};top.WAIT_STATE_MANAGER=new WaitFor();top.INIT_CALLED=false;
top.APPCONFIG_LOADED=false;top.Y_MIRROR;top.secW;top.sperrungDetailViewer;MapViewFilterControler=Class.create();
MapViewFilterControler.prototype={initialize:function(B,A){this.layerNames=B;this.appConfig=A
},add:function(A){A.addEventListener("modified",this.onFilterModified.bind(this));
this.onFilterModified(A)},onFilterModified:function(B){var A=this.appConfig.getMapView();
if(!A){setTimeout(this.onFilterModified.bind(this,B),10);return }this.layerNames.each(function(D){var C=A.getMapLayer(D);
if(!C){throw new Error('layer "'+D+'" nicht gefunden.')}C.setFeatureFilter(B);C.refresh()
})}};var New_client_html={initialize:function(){top.LOGGER=NovaxLogger;top.LOGGER.init();
LOGGER.debug("Applikation wird gestartet.");top.WAIT_STATE_MANAGER.attach(new Novax_HtmlWaitStateHandler(window,document.getElementsByTagName("body")[0]));
$("map").innerHTML='<iframe src="mapview.html" id="mapViewIframe"></iframe>';var C=function(E,G){var H=$("content");
var F=Math.max(120,H.offsetTop+12);var D=Math.max(F,G.height-F);[$("ahandle"),$("panel")].each(function(I){Element.setStyle(I,{height:D+"px"})
})};C("",Window.getDimensions());new Window.ResizeObserver(window.document.body,0.5,C);
var B=new NovaxDragger(document.getElementById("ahandle"),[window,top.secW]);B.addMoveConstraint(MoveConstraints.createVerticalConstraint());
B.addMoveConstraint(MoveConstraints.createMinWidthConstraint($("panel"),200,true));
B.addMoveConstraint(MoveConstraints.createMinWidthConstraint($("map"),200,false));
var A={panelElement:document.getElementById("panel"),mapElement:document.getElementById("map"),onMove:function(D){NovaxStyleTools.addToValue(this.panelElement,"width",D.x*-1);
NovaxStyleTools.addToValue(this.mapElement,"margin-right",D.x*-1)}};NovaxEventHelpers.bind(B,"move",A,A.onMove);
top.APP_CONFIG=new AppConfig("appconfig.xml");top.APP_CONFIG.attachInitWaitFor({started:function(){LOGGER.debug("INIT Appconfig gestarted")
},finished:function(D){LOGGER.debug("INIT Appconfig beendet");top.APPCONFIG_LOADED=true
}});top.APP_CONFIG.attachInitWaitFor({started:function(){},finished:function(D){top.TOOLS=new SwitchControler(new LiDivSwitch("toolsList"));
top.TOOLS.register(new BTDateFilter("DateFilter","gui_datefilter"),false);top.TOOLS.register(new BTSuche("navigation","gui_suche","wfs_wms_infosys"));
top.TOOLS.register(new BTListen2("listen","gui_listen","wfs_sperrinf"));top.TOOLS.switchActivate("navigation");
var E=new MapViewFilterControler(["wms_infosys_alles","geom_sperr_p"],D);E.add(top.TOOLS.get("DateFilter").getFilter());
top.sperrungDetailViewer=new SperrungDetailViewer(D.getDataSource("wfs_sperrinf"))
}});top.getAppConfig=function(){return top.APP_CONFIG};top.getHtmldoc=function(){return document
};top.APP_CONFIG.initialize();top.INIT_CALLED=true}};Event.observe(window,"load",New_client_html.initialize,false);
top.MAP_VIEW_LOADER=new Novax_MapViewLoader();
