var isNS=(document.layers?true:false),isIE=(document.all?true:false),isIE6=(isIE&&window.clientInformation.appVersion.indexOf("MSIE 6")>-1),server=document.location.protocol+"//"+document.location.host+"/",TDataTypes=["dtBoolean","dtDateTime","dtDouble","dtInteger","dtString","dtMoney","dtPercentage","dtLong","dtGuid"],dtBoolean=0,dtDateTime=1,dtDouble=2,dtInteger=3,dtString=4,dtMoney=5,dtPercentage=6,dtLong=7,dtGuid=8,bodyLoaded=false,image=document.createElement("IMG"),kaTimer=setTimeout("keepAlive();",120000),pageSize=null,winSize=null,lightBoxes=new TLightBoxes(),messageBox=new TLightBox("divMessage",2000,200,imgBack);if(!window.XMLHttpRequest&&window.ActiveXObject){window.XMLHttpRequest=function(){var c=["Microsoft.XMLHTTP","MSXML2.XMLHTTP"],b=c.length;while(b--){try{return new ActiveXObject(c[b])}catch(a){}}throw new Error("No XML support in this browser.")}}if(!document.getElementByName){document.getElementByName=function(a){var b=document.getElementsByName(a);if(b.length>0){return b[0]}else{throw new Error('Element with name "'+a+'" not found.')}}}window.onresize=function anonymous(){bodyResize(document.body)};var browsers={unknown:0,IE:1,firefox:2,netscape:3,mozilla:4,opera:5,safari:6,chrome:7};function bodyLoad(d,c){bodyResize(d);try{if(typeof(document.documentElement)!="undefined"){document.documentElement.onscroll=function j(){bodyScroll(document.documentElement)}}}catch(h){}if(c){window.print();window.close()}else{lightBoxes.init();if(messageBox.initialized()){var i=10000,b=Html.get("divMessageText"),g=Html.get("btnCloseMessage");messageBox.show();if(b){var a=String(b.innerText).length;i=Math.max(Math.floor(a/80*7000),5000)}setTimeout("messageBox.hide();",i);if(g){try{g.focus()}catch(f){}}}if(typeof(menu)!="undefined"&&menu.Class&&menu.Class=="TMenu"){menu.initialize()}if(isIE6){checkAnchors()}}if(typeof(doWizards)!="undefined"){doWizards()}if(typeof(customBodyLoad)!="undefined"){customBodyLoad(d)}bodyLoaded=true}function bodyResize(c){var a=Html.get("__asptrace");if(a){a.style.width="12px";a.style.overflow="hidden"}pageSize=null;winSize=null;var b=getSize(szPage);lightBoxes.position(b);if(a){a.style.width=b.width+"px"}if(typeof(customBodyResize)!="undefined"){customBodyResize(c,b)}}function bodyScroll(b){var a=getSize(szPage);lightBoxes.position(a);if(typeof(customBodyScroll)!="undefined"){customBodyScroll(b)}}function clearElement(a,b){if(a.value==a.defaultValue){a.value=""}}function positionElement(c,d){var b=document.documentElement,e=(b.scrollTop+d),a=getSize(szWindow);if(d+c.offsetHeight+20>a.height){e=b.scrollTop+a.height-c.offsetHeight-20;if(e<b.scrollTop){e=b.scrollTop}}c.style.top=e+"px"}function closeMessage(a){var b=findForm();if(messageBox.initialized()){messageBox.hide()}if(b&&frmFormReady){frmFormReady(b.ID)}}function findForm(){if(document.forms){for(var c=0;c<document.forms.length;c++){var d=document.forms[c],b=String(d.name);if(b.startsWith("frmForm_")){var a=parseInt(b.split("_")[1]);d.ID=a;return d}}}}function intInputKeyPress(a,c){var b=[8,9,13,45,48,49,50,51,52,53,54,55,56,57];if(!b.contains(c.keyCode)){c.returnValue=false;return false}else{c.returnValue=true;return true}}function floatInputKeyPress(a,c){var b=[8,9,13,44,45,46,48,49,50,51,52,53,54,55,56,57];if(!b.contains(c.keyCode)){c.returnValue=false;return false}else{if(c.keyCode==44||c.keyCode==46){if(a.value.length==0||a.value.indexOf(".")>-1||a.value.indexOf(",")>-1){c.returnValue=false;return false}}else{c.returnValue=true;return true}}}function datetimeInputKeyPress(b,d){var e=Date.formatInfo,c=[8,9,13,32,48,49,50,51,52,53,54,55,56,57,58];for(var a=0;a<e.dateSeparator.length;a++){c.add(e.dateSeparator.charCodeAt(a))}for(var a=0;a<e.timeSeparator.length;a++){c.add(e.timeSeparator.charCodeAt(a))}if(!c.contains(d.keyCode)){d.cancelBubble=true;d.returnValue=false;return false}else{return true}}function dateInputKeyPress(b,d){var e=Date.formatInfo,c=[8,9,13,48,49,50,51,52,53,54,55,56,57];for(var a=0;a<e.dateSeparator.length;a++){c.add(e.dateSeparator.charCodeAt(a))}if(!c.contains(d.keyCode)){d.cancelBubble=true;d.returnValue=false;return false}else{return true}}function timeInputKeyPress(b,d){var e=Date.formatInfo,c=[8,9,13,48,49,50,51,52,53,54,55,56,57,58];for(var a=0;a<e.timeSeparator.length;a++){c.add(e.timeSeparator.charCodeAt(a))}if(!c.contains(d.keyCode)){d.cancelBubble=true;d.returnValue=false;return false}else{return true}}function checkAnchors(){var d=document.getElementsByTagName("a");for(var c=0;c<d.length;c++){var b=d[c];if(!b.href){b.className="anchor"}}}function rndString(d){if(typeof(d)=="undefined"){d=16}var c="1234567890abcdefghiklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a="";for(var b=0;b<d;b++){a+=c.substr(Math.floor(Math.random()*c.length),1)}return a}function setStats(){var a="steID="+steID;if(typeof(itmID)!="undefined"){a+="&itmID="+itmID}else{if(typeof(catID)!="undefined"){a+="&catID="+catID}}if(screen){document.writeln('<div id="divStats"><img src="misc/setStats.aspx?ColorDepth='+screen.colorDepth+"&ScreenWidth="+screen.width+"&ScreenHeight="+screen.height+"&"+a+'" width="1" height="1" alt="stats" align="right"/></div>')}else{document.writeln('<div id="divStats"><img src="misc/setStats.aspx?'+a+'" width="1" height="1" alt="stats" align="right"/></div>')}}function keepAlive(){if(kaTimer){clearTimeout(kaTimer)}if(new Url().server().startsWith("http://localhost:")){return}document.body.appendChild(image);image.src="misc/keepAlive.aspx?str="+rndString();kaTimer=setTimeout("keepAlive();",120000)}function resizeFont(b,c,a){var d=getCookie("FontSize");if(d){d=parseInt(d)}else{d=1}if(typeof(a)!="undefined"){d=a}else{if(d==1){d=3}else{d=1}}document.body.style.fontSize=60+(d*10)+"%";setCookie("FontSize",d);if(typeof(onFontResize)!="undefined"){onFontResize(b,c,a)}return 60+(d*10)}function printItem(a){var b=new Url().remove("msg"),c;if(typeof(a)!="undefined"){b=b.remove("catID").add("itmID",a)}c=window.open(b.replacePage("printItem.aspx"),"printItem","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=560,height=470");if(c){c.focus()}}function printPage(){printItem()}function sendItem(b){var g=Html.get("divSendItem"+b),c=Html.get("aSend"+b);if(g){var e=Html.get("divBookItem"+b);if(e&&e.style.display!="none"){bookItem(b)}include("js/default/effects.js");while(typeof(Effect)=="undefined"){setTimeout("sendItem("+b+")",100);return}if(g.style.display=="none"){if(c){Html.addClass(c,"active")}Effect.SlideDown("divSendItem"+b,{duration:0.3});g.style.display=""}else{if(c){Html.removeClass(c,"active")}Effect.SlideUp("divSendItem"+b,{duration:0.3});g.style.display="none"}return}var d=new Url().remove("msg"),f;f=window.open(d.replacePage("sendItem.aspx"),"sendItem","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=400,height=290");if(f){f.focus()}}function bookItem(b){var f=Html.get("divBookItem"+b),c=Html.get("aBook"+b);if(f){var e=Html.get("divSendItem"+b);if(e&&e.style.display!="none"){sendItem(b)}include("js/default/effects.js");while(typeof(Effect)=="undefined"){setTimeout("bookItem("+b+")",100);return}if(f.style.display=="none"){if(c){Html.addClass(c,"active")}Effect.SlideDown("divBookItem"+b,{duration:0.3});f.style.display=""}else{if(c){Html.removeClass(c,"active")}Effect.SlideUp("divBookItem"+b,{duration:0.3});f.style.display="none"}return}var d=new Url().remove("msg");d=d.add("itmID",b);d=d.add("action","Add");document.location.href=d}function editItem(a){var b=new Url().remove("msg");b=b.add("itmID",a);b=b.add("action",1);document.location.href=b}function displayImage(a){var c=new Url(a);if(a.indexOf(".aspx")==-1){c=new Url("misc/showFile.aspx?File="+a)}var b=new Url().replacePage("misc/showImage.aspx",true).add("Filename",c.get("Filename")).add("File",c.get("File")),d=window.open(b,"showFile","menubar=0,location=0,toolbar=0,scrollbars=1,resizable=1,status=1,width=50,height=50,top=25,left=25");if(d){d.focus()}}function resizeWin(){var b=Html.get("imgMain"),c=b.offsetWidth,a=b.offsetHeight;if(isIE6){window.resizeTo(c+45,a+70)}else{window.resizeTo(c+45,a+95)}}function alertWin(d,a,c){var b=null;if(typeof(a)!="undefined"&&typeof(c)!="undefined"){b=window.open("",a,c)}else{if(typeof(a)!="undefined"){b=window.open("",a)}else{if(typeof(c)!="undefined"){b=window.open("","",c)}else{b=window.open()}}}if(b){b.document.open();b.document.write(d);b.document.close()}}function frmSendLinkSubmit(b,c){var a=b.elements.edtName,d=b.elements.edtEmail;if(String(a.value)==""){alert(nameEmpty[Languages.current]);a.focus();c.returnValue=false;return false}if(String(d.value)==""){alert(eMailEmpty[Languages.current]);d.focus();c.returnValue=false;return false}if(!isEmail(d.value)){alert(eMailInvalid[Languages.current]);d.focus();c.returnValue=false;return false}return true}function cookieName(a){a=escape(a);a=a.replace(/@/gi,"%40");a=a.replace(/\*/gi,"%2A");a=a.replace(/-/gi,"%2D");a=a.replace(/_/gi,"%5F");a=a.replace(/\+/gi,"%2B");a=a.replace(/\./gi,"%2E");a=a.replace(/\//gi,"%2F");return a}function getCookie(b){b=cookieName(b);var d=document.cookie,c=d.indexOf(" "+b+"=");if(c==-1){c=d.indexOf(b+"=")}if(c==-1){return null}c=d.indexOf("=",c)+1;var a=d.indexOf(";",c);if(a==-1){a=d.length}return unescape(d.substring(c,a))}function removeCookie(a){setCookie(a)}function setCookie(b,d,a){b=cookieName(b);if(d!=null&&typeof(d)!="undefined"&&String(d)!=""){var c=new Date().nextYear();if(arguments.length>2){c=a}if(c==null){document.cookie=b+"="+escape(d)+"; path=/"}else{document.cookie=b+"="+escape(d)+"; path=/;expires="+c.toGMTString()}}else{document.cookie=b+"=; path=/;expires="+new Date().priorDay().toGMTString()}}function toggleDisplay(a){if(typeof(a)=="string"){a=Html.get(a)}if(typeof(a)=="object"){if(a.style.display=="none"){a.style.display=""}else{a.style.display="none"}}}var checking=false;function checkBoxListClick(e,f,b){if(checking){return}checking=true;var g=document.getElementsByName(b);if(e.id.endsWith("All")){for(var d=0;d<g.length;d++){g[d].checked=e.checked}}else{var c=Html.get(b+"All");if(c){var a=true;for(var d=0;d<g.length;d++){if(!g[d].checked){a=false}}c.checked=a}}checking=false}function isChildOf(a,b){if(typeof(a.contains)!="undefined"){return a.contains(b)}else{if(b==null){return false}else{if(a==b){return true}else{return isChildOf(a,b.parentNode)}}}}function isParentOf(b,a){return isChildOf(a,b)}TEvent=function(a,c,b){this.object=a;this.event=c;this.func=b};TEvent.first=null;TEvent.events=[];TEvent.find=function(){for(var i=0;i<arguments.length;i++){try{return eval(arguments[i])}catch(error){}}return null};TEvent.unload=function(b){if(TEvent.events!=null){removeEvent(window,"unload",TEvent.first);for(var a=0;a<TEvent.events.length;a++){var c=TEvent.events[a];if(c.event!="unload"){removeEvent(c.object,c.event,c.func)}TEvent.events[a]==null}TEvent.first=null;TEvent.events=null}};function addEvent(a,c,b){if(typeof(a)=="string"){a=Html.get(a)}if(typeof(b)=="string"){b=new Function("event",b)}if(a.attachEvent){a.attachEvent("on"+c,b);if(!TEvent.first){TEvent.first=new Function("event","TEvent.unload( event );");window.attachEvent("onunload",TEvent.first)}}else{a.addEventListener(c,b,false);if(!TEvent.first){TEvent.first=new Function("event","TEvent.unload( event );");window.addEventListener("unload",TEvent.first,false)}}TEvent.events.add(new TEvent(a,c,b));return b}function cancelEvent(a){a.cancelBubble=true;if(typeof(a.preventDefault)=="function"){a.preventDefault()}else{if("returnValue" in a){a.returnValue=false}}return false}function createEvent(b){var a="click";if(typeof(b)=="string"){a=b;b=null}else{if(typeof(b)!="undefined"&&typeof(b.type)!="undefined"){a=b.type}}var e=b?b.charCode||b.keyCode:null,d=b?b.srcElement||b.target:null,c={altKey:b?b.altKey:false,button:b?b.button:null,bookmarks:b?b.bookmarks:[],boundElements:b?b.boundElements:[],cancelBubble:b?b.cancelBubble:false,clientX:b?b.clientX:0,clientY:b?b.clientY:0,ctrlKey:b?b.ctrlKey:false,fromElement:b?b.fromElement:null,keyCode:b?e:0,offsetX:b?b.offsetX:0,offsetY:b?b.offsetY:0,reason:b?b.reason:null,returnValue:b?b.returnValue:true,screenX:b?b.screenX:0,screenY:b?b.screenY:0,shiftKey:b?b.shiftKey:false,srcElement:b?d:null,srcFilter:b?b.srcFilter:null,target:b?d:null,toElement:b?b.toElement:null,type:b?b.type:a,x:b?b.x:0,y:b?b.y:0};return c}function filterEvent(a){return String(a).replace(/^function \w+\((event)?\)\s*{\s*((.|\n)*)\s*}/,"$2")}function removeEvent(a,c,b){if(typeof(a)=="string"){a=Html.get(a)}if(a.detachEvent){a.detachEvent("on"+c,b)}else{a.removeEventListener(c,b,false)}}function valueString(m){var k=typeof(m),c="";if(k=="boolean"){if(m){return"true"}else{return"false"}}else{if(k=="number"){return m}else{if(k=="string"){return'"'+m+'"'}else{if(k=="undefined"){return"undefined"}else{if(m==null){return"null"}else{if(m instanceof Array){for(var f=0;f<m.length;f++){c+=", "+valueString(m[f])}if(c.length){return"["+c.substr(2)+"]"}else{return"[]"}}else{if(m instanceof Date){return"#"+m.formatString("s").replace("T"," ")+"#"}else{if(m instanceof RegExp){return m.toString()}else{if(k=="function"){m=String(m);return m.substr(0,m.indexOf(")")+1)}else{if(k=="object"){if(typeof(m.nodeName)!="undefined"){var b=m.nodeName;if(b=="#text"||b=="#cdata"){return m.nodeName+'["'+m.nodeValue+'"]'}else{if(typeof(m.attributes)!="undefined"){if(m.attributes){for(var f=0;f<m.attributes.length;f++){var d=m.attributes[f];if(d.nodeValue!=""&&d.nodeValue!="inherit"&&d.nodeValue!=null&&!String(d.nodeValue).startsWith("function")){c+=" "+d.nodeName+'="'+d.nodeValue+'"'}}}if(typeof(m.nodeType)!="undefined"&&m.nodeType==2){return"@"+b+'= "'+m.nodeValue+'"'}else{return"<"+b+c+"/>"}}else{if(typeof(m.location)!="undefined"){return"window"+(window.name?'["'+m.name+'"]':"")}else{return"<"+b.toLowerCase()+(m.id?' id="'+m.id+'"':"")+(m.className?' class="'+m.className+'"':"")+"/>"}}}}if(typeof(m.Class)!="undefined"){var h=m.Class;if(h=="Point"){return"Point("+m.left+", "+m.top+")"}else{if(h=="Size"){return"Size("+m.width+", "+m.height+")"}else{if(h=="Url"){return'Url("'+m.toString()+'")'}else{if(h=="Rgb"){return"Rgb("+m.red+", "+m.green+", "+m.blue+') {"'+m.toHex()+'"}'}else{if(h=="TWizard"||h=="TTable"||h=="TColumn"){if(typeof(m.owner)=="undefined"){return h+'("'+m.name+'")'}else{return valueString(m.owner)+"."+h+'("'+m.name+'")'}}else{if(h=="TField"){return valueString(m.owner.owner)+".TRow["+m.owner.index+"]."+h+'("'+m.name+'")'}else{if(h=="TMenuItem"){return h+"["+m.id+"]"}else{if(typeof(m.ID)!="undefined"){return h+"["+valueString(m.ID)+"]"}else{if(h=="KeyStroke"){return m.toString()}else{return h}}}}}}}}}}if(typeof(m.toString)!="undefined"){var l="";try{for(var a in m){l+=", "+a+": "+valueString(m[a])}if(l.length){l="{"+l.substr(2)+"}"}}catch(g){l=""}return m.toString().replace(/^\[object( [^\]]+)\]$/gi,"$1")+l}if(typeof(m.srcElement)!="undefined"||typeof(m.target)!="undefined"){if(typeof(m.type)!="undefined"){return"event[type = "+m.type+"]"}else{return"event"}}try{return String(m)}catch(j){return'unhandled type: "'+typeof(m)+'". String( value ): '+j.message}}else{return'unhandled type: "'+typeof(m)+'"'}}}}}}}}}}}function parseBool(a){var b=parseInt(a);if(String(a).substr(0,4).toLowerCase()=="true"||(!isNaN(b)&&b!=0)){return true}else{if(String(a).substr(0,5).toUpperCase()=="false"||(!isNaN(b)&&b==0)){return false}else{return null}}}function isSame(b,a,f){if(typeof(f)=="undefined"){var e=typeof(b),d=typeof(a);if(e==d){if(b==null&&a==null){return true}else{if(b==null||a==null){return false}}if(typeof(b.Class)!="undefined"&&typeof(a.Class)!="undefined"){if(b.Class==a.Class){return b==a}}if(e=="string"){b=b.replace(/\r\n/gi,"\n");a=a.replace(/\r\n/gi,"\n")}return b.toString()==a.toString()}else{return false}}else{try{var b=convert(b,f),a=convert(a,f);return this.isSame(b,a)}catch(c){}}return false}function convert(c,a){if(c==null||String(c)==""){return null}switch(a){case dtBoolean:if(String(c).toLowerCase()=="false"||String(c)=="0"){return false}else{return true}case dtDateTime:var e=isDateTime(c);if(e!=false){return e}else{e=parseXmlDate(c);if(!isNaN(e)){return e}else{throw new Error(getIllegalDateMessage())}}case dtPercentage:if(String(c).endsWith("%")){c=String(c).substr(0,String(c).length-1)}case dtDouble:case dtMoney:if(typeof(c)!="number"){var d=Number.formatInfo;if(d.groupingSeparator=="."&&!c.contains(d.decimalSeparator)){c=String(c).replace(new RegExp("\\"+d.groupingSeparator+"{1}","gi"),d.decimalSeparator);c=String(c).replace(new RegExp("\\"+d.groupingSeparator,"gi"),"")}else{c=String(c).replace(new RegExp("\\"+d.groupingSeparator,"gi"),"")}c=c.replace(d.currencySymbol,"");c=c.trim();c=c.replace(new RegExp("\\"+d.decimalSeparator,"gi"),".")}if(!isNumeric(c)){var b=getMessage(17);if(b){throw new Error(b.text)}else{throw new Error("De ingevoerde waarde is niet correct. Er wordt een getal verwacht.")}}return parseFloat(c);case dtInteger:case dtLong:if(!String(c).match(/\d{1,10}/gi)){var b=getMessage(16);if(b){throw new Error(b.text)}else{throw new Error("De ingevoerde waarde is niet correct. Er wordt een geheel getal verwacht.")}}return parseInt(c);case dtString:case dtGuid:return String(c);default:throw new Error('Illegal assignment to parameter "type" ('+a+").")}}function getBackColor(b){if(typeof(b)=="string"){b=Html.get(b)}var a=Element.getStyle(b,"background-color");if(b.parentNode!=null){if(a=="transparent"||a.startsWith("rgba(0, 0, 0, 0)")){a=getBackColor(b.parentNode)}}return a}function getColor(b){if(typeof(b)=="string"){b=Html.get(b)}var a=Element.getStyle(b,"color");if(a=="transparent"||a.startsWith("rgba(0, 0, 0, 0)")){if(b.parentNode!=null){return getColor(b.parentNode)}else{return a}}else{return a}}function rgbToHex(a){if(isIE){return a.replace("#","")}else{if(a.startsWith("rgb(")){a=a.substr(4);a=a.substr(0,a.length-1);a=a.split(", ")}return toHex(a[0])+toHex(a[1])+toHex(a[2])}}function twoDigit(a){if(a.length==1){return"0"+a}else{return a}}Rgb=function(c,b,a){this.Class="Rgb";if(c=="transparent"){this.red=128;this.green=128;this.blue=128;this.transparent=true}else{if(typeof(c)=="undefined"||c==null){c=255}if(typeof(b)=="undefined"||b==null){b=255}if(typeof(a)=="undefined"||a==null){a=255}this.red=c;this.green=b;this.blue=a;this.transparent=false}};Rgb.prototype.lighter=function(b){if(this.transparent){return this}if(typeof(b)=="undefined"){b=5}var d=Math.round(this.red*(100+b)/100),c=Math.round(this.green*(100+b)/100),a=Math.round(this.blue*(100+b)/100);return new Rgb(Math.min(d,255),Math.min(c,255),Math.min(a,255))};Rgb.prototype.darker=function(b){if(this.transparent){return this}if(typeof(b)=="undefined"){b=5}var d=Math.round(this.red*(100-b)/100),c=Math.round(this.green*(100-b)/100),a=Math.round(this.blue*(100-b)/100);return new Rgb(d,c,a)};Rgb.prototype.toHex=function(){if(this.transparent){return""}else{return twoDigit(toHex(this.red))+twoDigit(toHex(this.green))+twoDigit(toHex(this.blue))}};Rgb.prototype.toString=function(){if(this.transparent){return"transparent"}else{return"#"+this.toHex()}};function hexToRgb(b){if(b=="transparent"||b==null){return new Rgb("transparent")}if(b.startsWith("0x")){b=b.substr(2)}if(b.startsWith("#")){b=b.substr(1)}b=b.toUpperCase();var d,c,a;if(b.length==6){d=hexToNum(b.substr(0,2));c=hexToNum(b.substr(2,2));a=hexToNum(b.substr(4,2))}else{if(b.length==3){d=hexToNum(b.substr(0,1)+b.substr(0,1));c=hexToNum(b.substr(1,1)+b.substr(1,1));a=hexToNum(b.substr(2,1)+b.substr(2,1))}else{throw new Error('Illegal call to hexToRgb( color ) ("'+b+"\"). Parameter 'color' is expected to be 'transparent' or a hexadecimal value in the formats '0xE0FFA8', '0xFFF', '#EF9090', '#888', 'A8CEF3' or 'FFF'.")}}return new Rgb(d,c,a)}function hexToNum(a,b){if(typeof(b)=="undefined"){b=1}var c=a.substr(a.length-1).toUpperCase();if(a.length>1){return hexToNum(a.substr(0,a.length-1),b*16)+hexToNum(c,b)}switch(c){case"A":return 10*b;case"B":return 11*b;case"C":return 12*b;case"D":return 13*b;case"E":return 14*b;case"F":return 15*b;default:return parseInt(c)*b}}function toHex(a){if(typeof(a)!="number"){throw new Error('Illegal call to toHex( number ) ("'+a+"\"). Parameter 'number' is not a number.")}if(a<10){return String(a)}switch(a){case 10:return"A";case 11:return"B";case 12:return"C";case 13:return"D";case 14:return"E";case 15:return"F"}return toHex(Math.floor(a/16))+toHex(a%16)}function fillOut(a){if(Number(a)<10){return"0"+String(a)}else{return String(a)}}function isEmail(a){var b=new RegExp("^([\\w-\\.]+)@([\\w-]+(\\.[\\w-]+)*)\\.((com)|(edu)|(gov)|(info)|(lan)|(mil)|(net)|(org)|(\\w{2,2}))$","gi");return b.test(a)}function isURL(a){return Url.isValid(a)}function flashString(a){a=a.replace(/\%/g,"%25");a=a.replace(/\&amp;/g,"%26");a=a.replace(/\&/g,"%26");a=a.replace(/\+/g,"%2B");return a}function withZeros(a,c){var e="",b="",d=new RegExp("^-?\\d+(\\.\\d+)?$","gi");if(!d.test(a)){return false}if(a.startsWith("-")){a=a.substr(1);e="-"}if(a.indexOf(".")>-1){while(a.endsWith("0")){a=a.substr(0,a.length-1)}if(a.endsWith(".")){a=a.substr(0,a.length-1)}}if(a.startsWith("0")){while(a.startsWith("0")){a=a.substr(1)}if(a.startsWith(".")){a="0"+a}if(a.length==0){a="0"}}return parseFloat(e+a)==c}function isNumeric(a){a=new String(a);if(a.indexOf(",")>-1&&a.indexOf(".")>-1){if(a.indexOf(",")>a.indexOf(".")){a=a.replace(/\./gi,"")}else{if(a.indexOf(",")<a.indexOf(".")){a=a.replace(/\,/gi,"")}}}a=a.replace(/\,/gi,".");return withZeros(a,parseFloat(a))}function toNumber(a){if(a.indexOf(",")>-1&&a.indexOf(".")>-1){if(a.indexOf(",")>a.indexOf(".")){a=a.replace(/\./gi,"")}else{if(a.indexOf(",")<a.indexOf(".")){a=a.replace(/\,/gi,"")}}}a=a.replace(/\,/gi,".");return parseFloat(a)}function include(e){var d=document.getElementsByTagName("head")[0],a=d?d.getElementsByTagName("script"):null;if(!d){return false}if(a){for(var c=0;c<a.length;c++){if(a[c].getAttribute("src")==e){return false}}}var b=document.createElement("script");b.setAttribute("language","javascript");b.setAttribute("type","text/javascript");b.setAttribute("src",e);d.appendChild(b);return true}function filterHeaders(b){b=b.replace(/\t*<\![^>]+>(\r\n)?/gi,"");b=b.replace(/\t*<\/?html[^>]*>(\r\n)?/gi,"");if(b.indexOf('<img id="imgBack')>-1){b=b.split("\r\n");for(var a=0;a<b.length;a++){if(!b[a].trim().startsWith('<img id="imgBack"')){b[a]=""}else{b[a]="";a=b.length}}b=b.join("\r\n").trimEnd().trimStart("\r\n")}b=b.replace(/\t*<\/body>(\r\n)?/gi,"");return b}function getHtml(b,a){if(b&&typeof(b.innerHTML)!="undefined"){if(typeof(a.request)=="undefined"){a=new Url(a)}a=a.add("rnd",rndString());var c=a.request();if((String(c).trim()!=""&&c==false)||String(c).toLowerCase()=="false"){return false}b.innerHTML=filterHeaders(c);return true}else{throw new Error('Illegal call to getHtml( element, url ). Parameter "element" is not a valid Html object.')}}function htmlSize(a){if(typeof(a)=="string"){a=Html.get(a)}if(typeof(a)=="undefined"||a==null){throw new Error("Illegal argument. First argument is undefined or element not found ("+valueString(a)+").")}a.size=new Size(a.offsetWidth-measure(a,"margin-left")-measure(a,"border-left-width")-measure(a,"padding-left")-measure(a,"padding-right")-measure(a,"border-right-width")-measure(a,"margin-right"),a.offsetHeight-measure(a,"margin-top")-measure(a,"border-top-width")-measure(a,"padding-top")-measure(a,"padding-bottom")-measure(a,"border-bottom-width")-measure(a,"margin-bottom"));return a.size}function isScrolling(a){if(typeof(a)=="undefined"||a==null){return false}else{var b=Element.getStyle(a,"overflow");if(isIE&&Element.getStyle(a,"overflowY")!="hidden"){b="auto"}if(a.offsetHeight<a.scrollHeight&&b!="hidden"){return true}else{return false}}}function xFind(d,g){var h=String(g).toLowerCase().split("/");for(var e=0;e<h.length&&d!=null;e++){var j=null,a=(h[e].contains("[")?h[e].split("[")[0]:h[e]),f=(h[e].contains("[")?h[e].split(/[\[\]]/)[1]:1);for(var c=0;c<d.childNodes.length&&f&&j==null;c++){var b=d.childNodes[c];if(b.nodeType==1&&(a=="*"||b.tagName.toLowerCase()==a)){f--;if(f==0){j=b}}}d=j}return d}function getParent(a,b){if(typeof(a)=="string"){a=Html.get(a)}if(typeof(b)=="undefined"){b=1}while(a&&b--){a=a.parentNode}return a}var szPage=1,szWindow=2;function getSize(d){if(document.body){if(pageSize==null||winSize==null){var b,e,c,a;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}if(self.innerHeight){b=self.innerWidth;e=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;e=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;e=document.body.clientHeight}}}if(a<e){pageHeight=e}else{pageHeight=a}if(c<b){pageWidth=b;if(a>e){pageWidth-=18}}else{pageWidth=c}pageSize=new Size(pageWidth,pageHeight);winSize=new Size(b,e)}}else{return null}switch(d){case szPage:return pageSize;break;case szWindow:return winSize;break;default:return[pageSize,winSize];break}}function measure(a,b){if(b==null||b==""){return 0}b=String(b);var e=Element.getStyle(a,b),c=parseFloat(e),d=0;if(isNaN(c)){c=0}if(String(e).endsWith("%")){d=Math.round(a.offsetWidth*c/100,0)}else{if(String(e).endsWith("px")){d=c}}return d}function getLeft(a){if(a&&a!=document.body){var b=Element.getStyle(a,"position");if(b=="absolute"||b=="relative"){return a.offsetLeft}else{return a.offsetLeft+getLeft(a.offsetParent)-a.scrollLeft}}else{if(a&&browser==browsers.IE&&a==document.body){return measure(document.body,"margin-left")}else{return 0}}}function getTop(a){if(a&&a!=document.body){var b=Element.getStyle(a,"position");if(b=="absolute"||b=="relative"){return a.offsetTop}else{return a.offsetTop+getTop(a.offsetParent)-a.scrollTop}}else{if(a&&browser==browsers.IE&&a==document.body){return measure(document.body,"margin-top")}else{return 0}}}function getPos(a){return new Point(getLeft(a),getTop(a))}Point=function(b,a){this.Class="Point";if(typeof(b)!="undefined"){this.left=b}else{this.left=0}if(typeof(a)!="undefined"){this.top=a}else{this.top=0}};Point.prototype.toString=function(){return"Point("+this.left+", "+this.top+")"};Size=function(b,a){this.Class="Size";if(typeof(b)!="undefined"){this.width=b}else{this.width=0}if(typeof(a)!="undefined"){this.height=a}else{this.height=0}};Size.prototype.toString=function(){return"Size("+this.width+", "+this.height+")"};Array.contains=function(c,b){if(c==null||typeof(c.length)=="undefined"){throw new Error("Illegal call to Array.indexOf(). First parameter is not an array.")}for(var a=0;a<c.length;a++){if(b instanceof RegExp){if(String(c[a]).search(b)>-1){return true}}else{if(b instanceof Date){if(b.isSameDate(c[a])){return true}}else{if(c[a]==b){return true}}}}return false};Array.isArray=function(a){if(a==null){return false}return(a instanceof Array)};Array.indexOf=function(e,c,d,a){if(e==null||typeof(e.length)=="undefined"){throw new Error("Illegal call to Array.indexOf(). First parameter is not an array.")}if(typeof(d)=="undefined"){d=0}else{d=parseInt(d)}if(isNaN(d)||d<0){d=0}if(typeof(a)=="undefined"){a=e.length}else{a=parseInt(a)}if(isNaN(a)||a>e.length){a=e.length}for(var b=d;b<a;b++){if(c instanceof RegExp){if(String(e[b]).search(c)>-1){return true}}else{if(c instanceof Date){if(c.isSameDate(e[b])){return b}}else{if(e[b]==c){return b}}}}return -1};Array.prototype.add=function(b){var a=this.length;this[this.length]=b;return a};Array.prototype.clear=function(a){this.length=0};Array.prototype.contains=function(a){return Array.contains(this,a)};Array.prototype.insert=function(a,c){if(a<0){throw new Error("Illegal argument. Index out of range ("+a+").")}if(a>this.length){a=this.length}for(var b=this.length;b>a;b--){this[b]=this[b-1]}this[a]=c};Array.prototype.insertAfter=function(c,b){var a=this.indexOf(b);if(a==-1){throw new Error("Illegal argument. Given element is not contained by the array.")}this.insert(a+1,c)};Array.prototype.insertBefore=function(c,b){var a=this.indexOf(b);if(a==-1){throw new Error("Illegal argument. Given element is not contained by the array.")}this.insert(a,c)};Array.prototype.indexOf=function(b,c,a){return Array.indexOf(this,b,c,a)};Array.prototype.moveTo=function(c,b){var a=this.indexOf(c);if(a!=b){if(a>-1){this.remove(a)}this.insert(b,c)}};Array.prototype.remove=function(a){if(typeof(a)=="number"){for(var b=a;b<this.length-1;b++){this[b]=this[b+1]}this.length--}else{a=this.indexOf(a);if(a>-1){this.remove(a)}else{throw new Error("Illegal argument. Given element is not contained by the array.")}}return};NumberFormat=function(c,b,a){this.decimalSeparator=c;this.groupingSeparator=b;this.currencySymbol=a};Number.prototype.fillOut=function(b){if(isNaN(this)||!isFinite(this)){return String(this)}if(typeof(b)=="undefined"){b=2}var a=String(this);while(a.length<b){a="0"+a}return a};Number.prototype.formatString=function(n){if(n=="C"||n=="c"){return this.formatString(Number.formatInfo.currencySymbol+" ,##0.00")}else{if(n=="D"||n=="d"){return this.formatString("0")}else{if(n=="N"||n=="n"){return this.formatString(",##0.00")}else{if(n=="P"||n=="p"){return this.formatString(",##0.00%")}else{if(n==null||n==""||typeof(n)=="undefined"){return String(this).replace(".",Number.formatInfo.decimalSeparator)}else{n=String(n)}}}}}var e=String(this),d=n,j=e.split(/\./gi),b=n.indexOf(",")>-1,f=this<0;n=n.replace(/,/gi,"");n=n.split(/\./gi);if(n[0].match(/0#/gi)){throw new Error("Illegal format in call to \"formatString\". '#' encountered after '0' and before the decimal separator.")}if(n.length>1&&n[1].match(/#0/gi)){throw new Error("Illegal format in call to \"formatString\". '#' encountered before '0' and after the decimal separator.")}if(n.length>2){throw new Error('Illegal format in call to "formatString". Multiple use of decimal separator.')}if(!d.endsWith(".")){if(n.length==1){j=String(Math.round(e)).split(".")}else{if(n[1].length>0){var h=n[1].search(/[^#0]/g);if(h==-1){h=n[1].length}j=String(Math.round(e*Math.pow(10,h))/Math.pow(10,h)).split(".")}}}if(f){e=j[0].substr(1)}else{e=j[0]}var c=n[0].replace(/^[^0]*(0+)/gi,"$1");if(c.length>e.length){e=c.substr(0,c.length-e.length)+e}if(b){var l=e,e="";for(var g=l.length-1;g>=0;g-=3){if(g-2>=0){e=Number.formatInfo.groupingSeparator+l.substr(g-2,3)+e}else{e=l.substr(0,g+1)+e}}if(e.startsWith(".")){e=e.substr(1)}}var k=n[0].search(/[0#,\.]/);if(k>0){e=n[0].substr(0,k)+e}if(n.length>1){e+=Number.formatInfo.decimalSeparator;if(j.length>1){e+=j[1];if(n.length>1){var o=n[1].replace(/([#0])/g,"$1");if(o.length>j[1].length){e+=o.substr(o.length-j[1].length)}var a=Math.min(j[1].length,n[1].search(/[^#0]/g));if(a>-1){e+=n[1].substr(a)}}}else{if(n.length>1){e+=n[1]}}}var m=new RegExp(RegExp.escape(Number.formatInfo.decimalSeparator)+"#+","g");if(m.test(e)){e=e.replace(m,"")}e=e.replace(/#/gi,"");if(e.endsWith(Number.formatInfo.decimalSeparator)){e=e.substr(0,e.length-1)}return f?"-"+e:e};RegExp.escape=function(a){if(a==null||a==""||typeof(a)=="undefined"){return""}a=String(a);a=a.replace(/\\/g,"\\\\");a=a.replace(/\./g,"\\.");a=a.replace(/\^/g,"\\^");a=a.replace(/\$/g,"\\$");a=a.replace(/\?/g,"\\?");a=a.replace(/\*/g,"\\*");a=a.replace(/\+/g,"\\+");a=a.replace(/\|/g,"\\|");a=a.replace(/\(/g,"\\(");a=a.replace(/\)/g,"\\)");a=a.replace(/\{/g,"\\{");a=a.replace(/\}/g,"\\}");a=a.replace(/\[/g,"\\[");a=a.replace(/\]/g,"\\]");return a};var regExp={escape:function(a){return RegExp.escape(a)}};String.prototype.capitalize=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};String.prototype.coalesce=function(){if(this!=""){return this}for(var a=0;a<arguments.length;a++){if(arguments[a]){return arguments[a]}}return""};String.prototype.contains=function(){for(var a=0;a<arguments.length;a++){if(this.indexOf(arguments[a])>-1){return true}}return false};String.prototype.decapitalize=function(){return this.substr(0,1).toLowerCase()+this.substr(1)};String.prototype.endsWith=function(a){return(this.substr(this.length-a.length)==new String(a))};String.prototype.htmlEncode=function(){var d=String(this);if(!d){d=""}d=d.replace(/\&/gi,"&amp;");for(var b=0;b<charCodes.length;b++){var c=charCodes[b],a=specialChar[c-160];d=d.replace(new RegExp(String.fromCharCode(c),"g"),a)}d=d.replace(/\"/gi,"&quot;");d=d.replace(/\</gi,"&lt;");d=d.replace(/\>/gi,"&gt;");return d};String.prototype.indent=function(b){var c="\r\n";if(typeof(b)=="undefined"){b=1}for(var a=0;a<b;a++){c+="\t"}return this.replace(/\r\n(\t*<)/gi,c+"$1")};String.prototype.innerTrim=function(){var a=new String(this);while(a.contains("  ")){a=a.replace(/ {2}/gi," ")}return a};String.prototype.insert=function(a,c){var b=new String(this);if(a>0){b=this.substr(0,a)}b+=c;if(a<this.length){b+=this.substr(a,this.length-a)}return b};String.prototype.lowerFirst=function(){return this.substr(0,1).toLowerCase()+this.substr(1)};String.prototype.reverse=function(){var a="";for(var b=0;b<this.length;b++){a+=this.substr(this.length-b-1,1)}return a};String.prototype.shortenLeft=function(a){return this.substr(a)};String.prototype.shortenRight=function(a){return this.substr(0,this.length-a)};String.prototype.startsWith=function(a){return(this.substr(0,a.length)==new String(a))};String.prototype.toJs=function(){var a=this.replace(/\\/gi,"\\\\");a=a.replace(/\"/gi,'\\"');a=a.replace(/\r/gi,"\\r");a=a.replace(/\n/gi,"\\n");a=a.replace(/\t/gi,"\\t");return'"'+a+'"'};String.prototype.trim=function(b){var c=new String(this);if(arguments.length==0){c=c.replace(/^\s*/gi,"");c=c.replace(/\s*$/gi,"")}else{var d=new RegExp("^["+RegExp.escape(b)+"]*","gi"),a=new RegExp("["+RegExp.escape(b)+"]*$","gi");c=c.replace(d,"");c=c.replace(a,"")}return c};String.prototype.trimEnd=function(a){var b=new String(this);if(typeof(a)=="undefined"){b=b.replace(/\s*$/gi,"")}else{b=b.replace(new RegExp("["+RegExp.escape(a)+"]*$","gi"),"")}return b};String.prototype.trimStart=function(a){var b=new String(this);if(typeof(a)=="undefined"){b=b.replace(/^\s*/gi,"")}else{b=b.replace(new RegExp("^["+RegExp.escape(a)+"]*","gi"),"")}return b};String.prototype.unindent=function(b){var c="\r\n";if(typeof(b)=="undefined"){b=1}for(var a=0;a<b;a++){c+="\t"}return this.replace(new RegExp(c),"\r\n")};String.prototype.upperFirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};TUser=function(b,c,d,a){this.Class="TUser";this.ID=b;this.fullname=c;this.username=d;this.eMail=a};TUser.prototype.toJS=function(){var a="new TUser( "+valueString(this.ID)+", "+valueString(this.fullname)+", "+valueString(this.username)+", "+valueString(this.eMail)+")";return a};TUser.prototype.toXML=function(a){if(typeof(a)=="undefined"){a="user"}var b="\r\n<"+a;if(String(this.ID)!="null"){b+=' ID="'+this.ID+'"'}b+=">";if(this.fullname){b+="\r\n\t<fullname>"+this.fullname+"</fullname>"}if(this.username){b+="\r\n\t<username>"+this.username+"</username>"}if(this.eMail){b+="\r\n\t<eMail>"+this.eMail+"</eMail>"}b+="\r\n</"+a+">";return b};Url=function(a){var b=null;this.Class="Url";this.disposed=false;this.HTTP=null;this.onreadystagechange=null;this.index=Url.all.add(this);if(typeof(a)=="undefined"){b=String(document.location)}else{b=String(a).replace(/\&amp;/gi,"&")}if(Url.unload==null){Url.unload=addEvent(window,"unload","Url.dispose();")}this.url=function(c){if(typeof(c)=="undefined"){return b}else{b=c}}};Url.prototype.add=function(c,d){var b=this.url();if(d==null||typeof(d)=="undefined"){return this.remove(c)}else{if(typeof(d.age)!="undefined"){d=d.formatString("g?")}d=encodeURI(d).replace(/[&]/gi,"%26");if(b.search(new RegExp("([?&])("+c+"=[^&#]*)","gi"))>-1){b=b.replace(new RegExp("([?&])("+c+"=[^&#]*)","gi"),"$1"+c+"="+d)}else{var a=null;if(b.indexOf("#")>-1){a=b.substr(b.indexOf("#"));b=b.substr(0,b.indexOf("#"))}if(b.indexOf("?")>-1){b+="&"+c+"="+d}else{b+="?"+c+"="+d}if(a){b+=a}}}return new Url(b)};Url.prototype.async=function(c,a,b){if(typeof(b)=="string"){this.onreadystatechange=new Function("HTTP",b)}else{if(typeof(b)=="function"){this.onreadystatechange=b}}if(this.onreadystatechange!=null&&typeof(this.onreadystatechange)!="function"){throw new Error("Illegal assignment to Url.onreadystatechange. Property is not a function.")}if(typeof(c)=="undefined"){c="GET"}if(typeof(a)=="undefined"){a=null}this.HTTP=new XMLHttpRequest();if(this.onreadystatechange!=null){this.HTTP.onreadystatechange=new Function("Url.all["+this.index+"].loaded();")}this.HTTP.open(c.toUpperCase(),this.add("rnd",rndString()));this.HTTP.setRequestHeader("snakeware-ajax","true");if(c.toUpperCase()=="POST"){this.HTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}this.HTTP.send(a)};Url.prototype.current=function(){return new Url(String(document.location))};Url.prototype.dispose=function(){if(!this.disposed){this.HTTP=null;this.onreadystagechange=null;this.disposed=true}};Url.prototype.get=function(b){var a=this.url(),c=a.replace(new RegExp(".*[?&]"+b+"=([^&#]*).*","gi"),"$1");if(c==a){c=null}else{c=decodeURI(c).replace(/%26/gi,"&")}return c};Url.prototype.filter=function(){var a=new Url(this.url());for(var b=0;b<arguments.length;b++){a=a.remove(arguments[b])}return a};Url.prototype.filterAllBut=function(){var a=new Url(this.url().replace(new RegExp(Url.regex),"$1$4"));for(var b=0;b<arguments.length;b++){a=a.add(arguments[b],this.get(arguments[b]))}return a};Url.prototype.isSame=function(b){if(!Url.isUrl(b)){b=new Url(b)}var a=this.page(),e=b.page();if(a!=null||e!=null){if(a==null&&e!=null){return false}if(a!=null&&e==null){return false}if(a.toLowerCase()!=e.toLowerCase()){return false}}var d=this.removeServer().replacePage("").url().substr(1).split("&");for(var c=0;c<d.length;c++){if(d[c].contains("=")){d[c]=d[c].substr(0,d[c].indexOf("="))}}for(var c=0;c<d.length;c++){if(b.get(d[c])!=this.get(d[c])){return false}}return true};Url.prototype.loaded=function(){if(this.HTTP.readyState==4){this.onreadystatechange(this.HTTP)}};Url.prototype.page=function(){var a=this.url().replace(new RegExp(Url.regex),"$4");if(a==""){a=null}return a};Url.prototype.remove=function(b){var a=this.url();if(b=="#"){if(a.indexOf("#")>-1){a=a.substr(a.indexOf("#"))}return new Url(a)}a=a.replace(new RegExp("([?&])"+b+"=[^&#]*","gi"),"$1");a=a.replace(/\?&/gi,"?");a=a.replace(/&&/gi,"&");a=a.replace(/&$/gi,"");a=a.replace(/\?$/gi,"");return new Url(a)};Url.prototype.removeServer=function(){var a=this.server();if(a!=null){return new Url(this.url().replace(a,""))}else{return new Url(this.url())}};Url.prototype.replacePage=function(c,e){var d=rewriting,a=this.url(),b=this.page();if(typeof(e)=="undefined"){e=false}if(e){d=false}if((b!=null&&b.endsWith(".aspx"))||!d){if(b==null){a=a.replace(new RegExp(Url.regex),"$1/"+c+"$9");a=a.replace("//"+c,"/"+c);if(a.startsWith("/"+c)){a=a.substr(1)}return new Url(a)}return new Url(a.replace(b,c))}else{return this.add("use",c.replace(".aspx",""))}};Url.prototype.request=function(e,c,b,a){if(typeof(e)=="undefined"){e="GET"}if(typeof(c)=="undefined"){c=null}if(typeof(b)=="undefined"){b=false}var d=new XMLHttpRequest();d.open(e.toUpperCase(),this.add("rnd",rndString()),false);d.setRequestHeader("snakeware-ajax","true");if(e.toUpperCase()=="POST"){d.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}d.send(c);if(d.status==200){if(b){return d.responseXML}else{return d.responseText}}else{if(a||typeof(a)=="undefined"){this.showError(d)}return false}};Url.prototype.server=function(){var a=this.url().replace(new RegExp(Url.files),"$1");if(a==""){a=null}return a};Url.prototype.showError=function(a){if(this.HTTP!=null&&typeof(a)=="undefined"){a=this.HTTP}alertWin(a.responseText)};Url.prototype.toString=function(){return this.url()};Url.all=[];Url.current=new Url();Url.disposed=false;Url.files=/^(https?:\/\/(localhost(\:\d+)?\/)?[^\/\?]+[\/]?)?(([^\/\.]+\/)*([^\.\?]+(\.(\w+))?)?)?(\?.*)?$/gi;Url.local=new RegExp("^([a-zA-Z0-9\\-]+|(http://)?localhost:\\d+)?(/\\S*)?$","gi");Url.regex=/^(https?:\/\/(localhost(\:\d+)?\/)?[^\/\?]+[\/]?)?(([^\/\.]+\/)*([^\.\?]+(\.(as[ph]x?|html?|php?))?)?)?(\?.*)?$/gi;Url.relative=new RegExp("^(/\\S*)?$","gi");Url.unload=null;Url.valid=new RegExp("^(http\\://)?([a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3})(/\\S*)?$","gi");Url.dispose=function(){if(!Url.disposed){for(var a=0;a<Url.all.length;a++){Url.all[a].dispose();Url.all[a]=null}Url.all=[];Url.disposed=true;Url.regex=null}};Url.isLocal=function(a){if(a==null){return false}if(Url.isUrl(a)){a=a.toString()}return new RegExp(Url.local).test(a)};Url.isRelative=function(a){if(a==null){return false}if(Url.isUrl(a)){a=a.toString()}return new RegExp(Url.relative).test(a)};Url.isUrl=function(a){return Object.getClass(a)=="Url"};Url.isValid=function(a){if(a==null){return false}if(Url.isUrl(a)){a=a.toString()}return new RegExp(Url.valid).test(a)};Object.getClass=function(a){if(a==null){return null}if(typeof(a)!="undefined"&&typeof(a.Class)!="undefined"){return a.Class}else{return typeof(a)}};var Log={active:false,Class:"Log",included:false,doWrite:function(){},write:function(){if(!Log.active){return}if(Log.included){return}var url=new Url("js/default/log.js"),js=url.request();eval(js);Log.included=true;Log.write.apply(this,arguments)}};var Cookies={exists:function(a){return Cookies(a)!=null},get:function(a){var d=getCookie(a);if(d==null){return d}else{var b=String(d).split("|~~|"),c=b.length>1?parseInt(b[1]):dtString;if(b.length){return convert(b[0],c)}else{return null}}},remove:function(a){removeCookie(a)},set:function(a,c,b){if(c==null&&String(c)=="null"){removeCookie(a);return}if(typeof(b)=="undefined"){if(typeof(c)=="boolean"){b=dtBoolean}else{if(typeof(c)=="number"){if(String(c).contains(".")){b=dtDouble}else{b=dtInteger}}else{if(typeof(c)=="object"&&typeof(c.formatString)!="undefined"){b=dtDateTime}else{b=dtString}}}}switch(b){case dtBoolean:c=c?"true":"false";break;case dtDateTime:c=c.formatString("g");break;default:c=String(c)}c+="|~~|"+b;setCookie(a,c)}};var Html={addClass:function(a,b){Element.addClassName(a,b)},blur:function(a){Element.removeClassName(a,"focused")},disable:function(a){Element.addClassName(a,"disabled")},enable:function(a){Element.removeClassName(a,"disabled")},find:function(d,b,a){if(typeof(a)=="undefined"){a=false}if(d&&typeof(d.childNodes)!="undefined"){for(var c=0;c<d.childNodes.length;c++){var e=d.childNodes[c];if(b==ntText){if(typeof(e.data)!="undefined"&&e.data!=""&&e.data!=null){return e}}else{if(e.nodeType==b){return e}}}if(a){for(var c=0;c<d.childNodes.length;c++){var e=d.childNodes[c];return Html.find(e,b,true)}}}return null},focus:function(a){Element.addClassName(a,"focused")},get:function(a){if(typeof(a)=="string"){return document.getElementById(a)}else{if(typeof(a)=="undefined"){return null}else{return a}}},getText:function(a){var b=Html.find(a,ntText,true);if(b!=null){return b.data}else{return null}},hasClass:function(a,b){return Element.hasClassName(a,b)},remove:function(a){if(a.parentNode){a.parentNode.removeChild(a)}},removeClass:function(a,b){Element.removeClassName(a,b)},setText:function(a,b){if(b==null){b=""}if(typeof(b)!="string"){b=String(b)}var c=Html.find(a,ntText);if(c!=null){c.data=b}else{a.insertBefore(document.createTextNode(b),a.firstChild)}},toAttrib:function(a){if(a!=null){a=String(a);while(a.indexOf("&amp;")>-1){a=a.replace(/\&amp;/gi,"&")}a=a.replace(/\&/gi,"&amp;");a=a.replace(/\"/gi,"&quot;");a=a.replace(/</gi,"&lt;");a=a.replace(/>/gi,"&gt;")}else{a=""}return a},toHtml:function(a){if(a!=null){a=String(a);a=a.htmlEncode();a=a.replace(/\r?\n/gi,"<br/>");a=a.trim()}else{a=""}return a},toText:function(b){if(b!=null){b=String(b);b=b.replace(/[\r?\n]/gi,"");b=b.replace(/<p>&nbsp;<\/p>/gi,"<p></p>");b=b.replace(/<br\/?>/gi,"\r\n");b=b.replace(/<\/p>/gi,"\r\n");b=b.replace(/<\/h\d>/gi,"\r\n");b=b.replace(/<\/?[^>]+>/gi,"");for(var a=0;a<charCodes.length;a++){var c=new RegExp(RegExp.escape(specialChar[charCodes[a]-160]),"g");b=b.replace(c,String.fromCharCode(charCodes[a]))}b=b.trim()}return b}};var Counter={element:null,startValue:null,stop:false,timer:null,action:function(a){clearTimeout(Counter.timer);var b=Number(Counter.element.value);if(b+a>0&&b+a<100){if(!Counter.stop||Counter.startValue==b){Counter.element.value=b+a}if(!Counter.stop){Counter.timer=setTimeout("Counter.action( "+a+");",200)}}else{Counter.stop=true}if(Counter.stop){Counter.stopped()}},end:function(){Counter.stop=true},start:function(a,b){if(typeof(a)!="string"){a=xFind(a.parentNode,"input").id}if(typeof(b)=="undefined"){b=1}if(Number(b)==NaN){b=1}if(b>1){b=1}if(b<-1){b=-1}if(Counter.timer==null){Counter.stop=false;Counter.element=Html.get(a);Counter.startValue=Number(Counter.element.value);Counter.timer=setTimeout("Counter.action( "+b+" );",120)}},stopped:function(){clearTimeout(Counter.timer);var a=Counter.element;Counter.element=null;Counter.startValue=null;Counter.timer=null;if(typeof(a.field)!="undefined"){var b=a.field;b.value(a.value)}}};