function include_js(A){var B=document.getElementsByTagName("head").item(0);var C=document.createElement("script");C.setAttribute("language","javascript");C.setAttribute("type","text/javascript");C.setAttribute("src",A);B.appendChild(C);return false}function trim(C){var C=C.replace(/^\s\s*/,"");var A=/\s/;var B=C.length;while(A.test(C.charAt(--B))){}return C.slice(0,B+1)}function escape_js(A){out=A.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\"/g,"&quot;");return out}function escape_html(B){var A=B;A=A.replace(/</g,"&lt;");A=A.replace(/>/g,"&gt;");A=A.replace(/\"/g,"&quot;");return A}function make_hash(E){var D=0;if(E){ANTABLE="w5Q2KkFts3deLIPg8Nynu_JAUBZ9YxmH1XW47oDpa6lcjMRfi0CrhbGSOTvqzEV";for(var B=E.length-1;B>=0;B--){D^=ANTABLE.indexOf(E.charAt(B))+1;for(var C=0;C<3;C++){var A=(D=D<<7|D>>>25)&150994944;D^=A?(A==150994944?1:0):1}}}return D}function NewWindow(D,I,H,C,F,E,G,B,A){r=NewWindow1(D,I,H,C,F,E,G,B,A);return(r===null)?true:false}function NewWindow1(D,I,H,C,F,E,G,B,A){if(typeof G=="undefined"){G=(screen.width-H)/2}if(typeof B=="undefined"){B=(screen.height-C)/2}if(typeof A=="undefined"){A=",menubar=no,status=no"}winprops="height="+C+",width="+H+",top="+B+",left="+G+",scrollbars="+F+",resizable="+E+A;win=window.open(D,I,winprops);if(!win){alert("Du hast anscheinend einen Popupblocker installiert!!!\nBitte deaktiviere diesen zumindest für unsere Seite, da ansonsten viele Funktionen nur eingeschränkt nutzbar sind!\nWenn Du Hilfe benötigt, such am besten in den Foren oder schreibe ein Ticket an den Support.");return null}win.focus();return win}function get_window_width(){var A;if(document.all){A=document.body.clientWidth}if(document.layers||typeof A=="undefined"){A=window.outerWidth}return A}function get_window_height(){var A;if(document.all){A=document.body.clientHeight}if(document.layers||typeof A=="undefined"){A=window.outerHeight}return A}function window_center(){var B=get_window_width();var D=get_window_height();var A=(screen.width-B)/2;var C=(screen.height-D)/2;if(A<0){A=0}if(C<0){C=0}window.moveTo(A,C)}var window_fit_image_done=false;function window_fit_image(A){if(window_fit_image_done){return }window_fit_image_done=true;iWidth=A.width+80;iHeight=A.height+310;iWidth=Math.min(Math.max(iWidth,600),1000);iHeight=Math.min(Math.max(iHeight,500),1000);window.resizeTo(iWidth,iHeight);window_center()}function select_add_option(C,D,A){var B=new Option(A,D);document.getElementById(C).options.add(B)}function select_add_options(C,G,A){var F=document.getElementById(C);var E=F.options;var D=F.length;for(var B=0;B<G.length;B++,D++){E[D]=new Option(A[B],G[B],false,false)}}function add_event(C,B,A){if(C.addEventListener){C.addEventListener(B,A,true);return true}else{if(C.attachEvent){return C.attachEvent("on"+B,A)}}return false}function indicator_show(){var C=document.createElement("img");C.setAttribute("id","loading_indicator");C.setAttribute("src",indicator_image);C.setAttribute("alt","loading data...");var A,D;if(self.innerHeight){A=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){A=document.body.clientWidth;D=document.body.clientHeight}}}A=A/2-C.width/2;D=A/2-C.height/2;var B=document.getElementsByTagName("body").item(0);B.appendChild(C);C.style.position="fixed";C.style.top=D+"px";C.style.left=A+"px"}function indicator_hide(){var A=document.getElementById("loading_indicator");document.body.removeChild(A)}function form_clear(C){var E,D=C.elements;for(var A=0;E=D[A++];){switch(E.type){case"text":E.value="";break;case"select-one":E.selectedIndex=0;break;case"select-multiple":var B=E.options;for(j=0;j<B.length;j++){B[j].selected=false}break}}}function preloadimages(){var A=new Array();for(i=0;i<preloadimages.arguments.length;i++){A[i]=new Image();A[i].src=preloadimages.arguments[i]}}var ask_really_text="Are you sure to take this action?";function ask_really(A){win=confirm(ask_really_text);if(!win&&typeof A!="undefined"){A.removeAttribute("href")}return win}var in_work_text="Executing action...";function in_work(A){A.disabled=true;A.value=in_work_text;return true}function checkall(A){if(typeof A.length=="undefined"){A.checked=!A.checked;return }for(i=0;i<A.length;i++){A[i].checked=!A[i].checked}}function getAbsoluteLeft(A){oLeft=A.offsetLeft;while(A.offsetParent!=null){oParent=A.offsetParent;oLeft+=oParent.offsetLeft;A=oParent}return oLeft}function getAbsoluteTop(A){oTop=A.offsetTop;while(A.offsetParent!=null){oParent=A.offsetParent;oTop+=oParent.offsetTop;A=oParent}return oTop}function html_preview(A){win=window.open("","html_preview","toolbar=no,status=no");win.document.open();win.document.write(A);win.document.close()}function utf8_encode(D){D=D.replace(/\r\n/g,"\n");var A="";for(var C=0;C<D.length;C++){var B=D.charCodeAt(C);if(B<128){A+=String.fromCharCode(B)}else{if((B>127)&&(B<2048)){A+=String.fromCharCode((B>>6)|192);A+=String.fromCharCode((B&63)|128)}else{A+=String.fromCharCode((B>>12)|224);A+=String.fromCharCode(((B>>6)&63)|128);A+=String.fromCharCode((B&63)|128)}}}return A}function utf8_decode(A){var C="";var B=0;var D=c1=c2=0;while(B<A.length){D=A.charCodeAt(B);if(D<128){C+=String.fromCharCode(D);B++}else{if((D>191)&&(D<224)){c2=A.charCodeAt(B+1);C+=String.fromCharCode(((D&31)<<6)|(c2&63));B+=2}else{c2=A.charCodeAt(B+1);c3=A.charCodeAt(B+2);C+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));B+=3}}}return C}function number_format(D,B,I,C){var A=D,H=isNaN(B=Math.abs(B))?2:B;var G=I==undefined?",":I;var J=C==undefined?".":C,K=A<0?"-":"";var F=parseInt(A=Math.abs(+A||0).toFixed(H))+"",E=(E=F.length)>3?E%3:0;return K+(E?F.substr(0,E)+J:"")+F.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+J)+(H?G+Math.abs(A-F).toFixed(H).slice(2):"")}function format_size(A){if(A>=Math.pow(1024,3)){return number_format(A/Math.pow(1024,3),2,".","")+" Gb"}if(A>=Math.pow(1024,2)){return number_format(A/Math.pow(1024,2),2,".","")+" Mb"}if(A>=Math.pow(1024,1)){return number_format(A/Math.pow(1024,1),2,".","")+" Kb"}return number_format(A/Math.pow(1024,0),2,".","")+" b"}function str_repeat(D,C){var A="";for(var B=0;B<C;B++){A+=D}return A}function print_r(F,A,G){var B="    ";var C="";A=(!A)?0:A;G=(!G)?0:G;if(G>25){return str_repeat(B,A)+"*Maximum Depth Reached*\n"}if(typeof (F)=="object"){C+=(A==0)?typeof (F)+"\n(\n":"";A++;var H="";for(var D in F){try{H=F[D]}catch(E){H="*Unable To Evaluate*"}C+=str_repeat(B,A)+"["+D+"] => ";if(typeof (H)=="object"){A++;C+=typeof (H)+"\n";C+=str_repeat(B,A)+"(\n";C+=print_r(H,A,G+1);C+=str_repeat(B,A)+")\n";A--}else{C+=H+"\n"}}A--;C+=(A==0)?")\n":"";return C}return str_repeat(B,A)+F+"\n"}