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

