function setWatcherForHelper(n,t){Object.defineProperty(n,t,{enumerable:!1,configurable:!0,get:function(){return n["__Original"+t]},set:function(i){comgenie.helpers[t.substring(1)]&&comgenie.helpers[t.substring(1)](this,i);n["__Original"+t]=i}})}function setWatcherForComponent(n,t){Object.defineProperty(n,t,{enumerable:!1,configurable:!0,get:function(){return n.componentObj.properties[t].value},set:function(i){n.componentObj.properties[t].value=n.componentObj.properties[t].type=="function"?function(){i.apply(n,arguments)}:i;n.componentObj.properties[t].onUpdate&&n.componentObj.properties[t].onUpdate()}})}function $c(n,t){var i=null;return i=n=="svg"?document.createElementNS("http://www.w3.org/2000/svg","svg"):document.createElement(n),t!=undefined&&(i.className=t),i}function $a(n,t,i){return comgenie.add("",n,t,i)}comgenie={components:{},helpers:{},application:null};comgenie.add=function(n,t,i,r,u){var f,s,c,n,o,l,h,e,a,v;if(c=t._type?t._type:"div",comgenie.components[c]){if(f={},f.componentObj=o=new comgenie.components[c](f),o.propertyContainer=f,s=o.element,o.publicFunctions)for(l in o.publicFunctions)f[l]=o.publicFunctions[l];f.style=s.style}else s=f=$c(c);h={};for(e in t)h[e]=t[e];if(r)for(e in r)h[e]=r[e];for(e in h)if(e!="elements"){if(e=="style"){for(a in h.style)s.style[a]=h.style[a];continue}e.substring(0,1)=="_"?setWatcherForHelper(f,e):o&&o.properties&&o.properties[e]&&setWatcherForComponent(f,e);f[e]=h[e]}if(i?(i.componentObj?i.componentObj.appendChild?i.componentObj.appendChild(s):i.componentObj.element.appendChild(s):i.appendChild(s),f.parent=i,n!=""&&(i[n]=f),f.root=i.root,f.self=u?i.self:f):(f.root=f,f.self=f),f.componentObj&&f.componentObj.initComponent&&f.componentObj.initComponent(),t.elements!=undefined)for(v in t.elements)comgenie.add(v,t.elements[v],f,undefined,!0);return f.init!=null&&f.init(),f};window.onload=function(){if(comgenie.application&&comgenie.application.root){var n=comgenie.add("root",comgenie.application.root);comgenie.application.containerElementId?document.getElementById(comgenie.application.containerElementId).appendChild(n):document.body.appendChild(n)}};comgenie.components.ajax=function(){var n=this;this.publicFunctions={"do":function(t,i,r,u,f){n.do(t,i,r,u,f)}};this.properties={timeout:{type:"int",value:6e5},contentType:{type:"string",value:"application/x-www-form-urlencoded"}};this.element=$c("DIV");this.timeoutChecker=null;this.ajaxObject=null;this.busy=!1;this.queue=[];this.retryCount=0;this.currentRequestInfo=null;this.initComponent=function(){(this.ajaxObject=this.getAvailableAjaxObject(),this.ajaxObject)&&(this.ajaxObject.onreadystatechange=function(){if(n.ajaxObject.readyState===4&&n.ajaxObject.status!=0){if(n.timeoutChecker&&(clearTimeout(n.timeoutChecker),n.timeoutChecker=null),n.ajaxObject.status!==200){n.ajaxObject.status==500||n.ajaxObject.status==404?n.ajaxObject.onerror():n.retryLast();return}try{if(n.ajaxObject.responseText==""){n.retryLast();return}}catch(r){n.retryLast();return}if(this.retryCount=0,n.currentRequestInfo.callBack){var t=n.currentRequestInfo,i=n.ajaxObject.responseText;setTimeout(function(){t.callBack(i,t.get,t.post,t.callBackData)},1)}n.nextRequest()}},this.ajaxObject.onerror=function(){if(n.currentRequestInfo.failCallBack){var t=n.currentRequestInfo;setTimeout(function(){t.failCallBack(t.get,t.post,t.callBackData)},1)}n.nextRequest()})};this.getAvailableAjaxObject=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(n){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(n){}}try{return new IFRAMEHttpRequest}catch(n){}};this.retryLast=function(){if(this.retryCount++,this.retryCount>3){this.ajaxObject.onerror();return}this.busy=!1;this.currentRequestInfo&&this.do(this.currentRequestInfo.get,this.currentRequestInfo.post,this.currentRequestInfo.callBack,this.currentRequestInfo.callBackData,this.currentRequestInfo.failCallBack)};this.nextRequest=function(){if(this.busy=!1,this.retryCount=0,this.timeoutChecker&&(clearTimeout(this.timeoutChecker),this.timeoutChecker=null),this.queue.length!=0){var n=this.queue.splice(0,1)[0];this.do(n.get,n.post,n.callBack,n.callBackData,n.failCallBack)}};this.do=function(t,i,r,u,f){if(window.navigator.onLine!=undefined&&window.navigator.onLine==!1){f(t,i,u);return}var e={get:t,post:i,callBack:r,callBackData:u,failCallBack:f};if(this.busy){this.queue[this.queue.length]=e;return}this.busy=!0;this.currentRequestInfo=e;this.ajaxObject.open(i==undefined?"GET":"POST",t,!0);i!=undefined&&i.name?(this.ajaxObject.setRequestHeader("File-Name",i.name),this.ajaxObject.send(i)):(this.timeoutChecker=setTimeout(function(){n.timeoutChecker=null;try{n.ajaxObject.abort()}catch(t){}n.retryLast()},this.properties.timeout.value),i!=undefined?(this.ajaxObject.setRequestHeader("Content-Type",this.properties.contentType.value),this.ajaxObject.setRequestHeader("Content-Size",i.length),this.ajaxObject.send(i)):this.ajaxObject.send())};this.doAjaxToDiv=function(n,t,i){this.doAjax(n,t,function(){document.getElementById(i).innerHTML=pTxt})};this.doAjaxToDivElement=function(n,t,i){this.do(n,t,function(n){i.innerHTML=n})};this.doAjaxFormSubmit=function(n,t){for(var r,u="",i=0;i>4)+t.charAt(n&15)};this.URLEncode=function(n){for(var u,i,t="",r=0;r127&&i<2048?(t=t+this.gethex(i>>6|192),t=t+this.gethex(i&63|128)):i>2047&&i<65536?(t=t+this.gethex(i>>12|224),t=t+this.gethex(i>>6&63|128),t=t+this.gethex(i&63|128)):i>65535&&(t=t+this.gethex(i>>18|240),t=t+this.gethex(i>>12&63|128),t=t+this.gethex(i>>6&63|128),t=t+this.gethex(i&63|128)));return t}};IFRAMEHttpRequest=function(){this.identify="frame-"+(new Date).getTime();this.pGet="";this.pMethod="POST";this.readyState=0;this.responseText="";this.setRequestHeader=function(){};this.onreadystatechange=function(){};this.frameElement=null;this.frameBox=null;this.init=function(){this.frameBox=document.createElement("DIV");this.frameBox.style.display="none";document.body.appendChild(this.frameBox);IFRAMEHttpRequest.obj=this};this.open=function(n,t){this.pGet=t;this.pMethod=n;this.frameElement=document.createElement('