function addReplacement(E,B){if(!IS_MOZ&&!IS_IE){return }var D=document.form[E];if(D){if(IS_IE){D.value+=B}else{if(D.selectionStart||D.selectionStart=="0"){var F=D.selectionStart;var A=D.selectionEnd;var C=D.value;D.value=C.substring(0,F)+B+C.substring(A,C.length)}else{D.value+=B}}D.focus()}}function appendRowClass(B){if(!IS_MOZ&&!IS_IE){return }var D=document.getElementsByTagName("SPAN");if(D){var A=D.length-1;do{if(D[A]&&D[A].className==B){var C=D[A].parentNode.parentNode;if(C){C.className=(C.className?(C.className+" highlight"):B)}}}while(--A>-1)}}function addScript(B){var A=document.createElement("script");A.setAttribute("src",B);A.setAttribute("type","text/javascript");document.getElementsByTagName("head").item(0).appendChild(A)}function addBookmark(C,A){if(window.sidebar){window.sidebar.addPanel(C,A,"")}else{if(window.opera&&window.print){var B=document.createElement("a");B.setAttribute("href",A);B.setAttribute("title",C);B.setAttribute("rel","sidebar");B.click()}else{if(document.all){window.external.AddFavorite(A,C)}}}}function defaultNumberFormat(input,dec_sep,tho_sep){var dec_def=".";var tho_def="";var out="";if(tho_sep=="."){tho_sep="\\."}if(dec_sep=="."){dec_sep="\\."}out=input.replace(eval("/"+tho_sep+"/g"),tho_def);out=out.replace(eval("/"+dec_sep+"/g"),dec_def);return(isNaN(out)?"":parseFloat(out))}function doReloadPage(){window.location=window.location}function numberFormat(input,dec_places,dec_sep,tho_sep){var dec_def=".";var dec_def_re="\\.";var dec_append="0";var tho_def="";var out="";var is_neg=input<0;if(is_neg){input=Math.abs(input)}var p=Math.pow(10,dec_places);var tmp1=input*p;tmp1=(tmp1>=0?Math.floor(tmp1+0.5):Math.ceil(tmp1-0.5));tmp1/=p;if(!isNaN(tmp1)){var tmp1=tmp1+"";var dec_point=tmp1.indexOf(dec_def);var append=0;if(dec_point==-1){append=dec_places;tmp1+=dec_def}else{append=dec_places-tmp1.substr(dec_point+1).length}if(append){do{tmp1+=dec_append}while(--append)}if(tho_sep.length>0&&parseFloat(tmp1)>=1000){var tmp2=tmp1.slice(0,-(dec_places+1));var l=tmp2.length-1;var i=l;do{out=tmp2.substr(i,1)+out;if((l-i)<l&&((l-i+1)%3)==0){out=tho_sep+out}}while(--i>-1);out+=tmp1.slice(-(dec_places+1))}else{out=tmp1}out=out.replace(eval("/"+dec_def_re+"/"),dec_sep);if(is_neg){out="-"+out}}return out}if(typeof openPopup=="undefined"){function openPopup(C,B,D,A,H){var G=Math.floor(screen.availWidth/2)-Math.floor(D/2);var F=Math.floor(screen.availHeight/2)-Math.floor(A/2);if(!H){H="location=no,resizable=yes,menubar=no,status=yes,scrollbars=yes,dependent=yes"}if(C&&C!=""&&typeof SID!="undefined"){C=C+((C.indexOf("?")>-1)?"&":"?")+SID}if(!C){C="about:blank"}var E=window.open(C,B,"width="+D+",height="+A+",left="+G+",top="+F+","+H);if(E){E.focus()}return E}}function setHighlight(C,B){if((!IS_MOZ&&!IS_IE)||!C){return }if(C.className.indexOf("selected")==-1){var A=C.className;C.className=(B==true?(A.indexOf("highlight")==-1?(A+" highlight"):A):A.replace(/highlight/,""))}}function setHTML(B,A,C){if(!IS_MOZ&&!IS_IE){return }if(!B){return }var D=B.document.getElementById(A);if(!D){return }D.innerHTML=C}function statusText(A){window.status=A;return true}var shortcut_go;var sc=false;var sc_container=false;function shortcut(A,B){if(!sc){width=380;height=100;left=(screen.width-width)/2;sc=Builder.node("div",{id:"shortcut2"});sc_container=Builder.node("div",{id:"shortcut",style:"position:absolute; top:150px; width:"+width+"px; left:"+left+"px; background:#CCC; border:2px outset #999; display:none; padding:0px 0px 5px 0px;"},[sc]);document.body.appendChild(sc_container)}shortcut_close();new Ajax.Updater(sc,A,{evalScripts:true,onComplete:function(C){Element.show(sc_container);shortcut_go=B;$("sc_search_str_str").focus()}})}function sc_open_page(A){window.location=shortcut_go+A.element.value}function shortcut_close(){Element.hide(sc_container)}function getPageSize(){var 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}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize}function keyformat(A){A=A.toLowerCase();A=A.replace(/&/g,"and");A=A.replace(/\s+/g,"_");A=A.replace(/ü|Ü/g,"y");A=A.replace(/ö|Ö|õ|Õ/g,"o");A=A.replace(/ä|Ä/g,"a");A=A.replace(/[,'"!@#$%&\/\(\)<>\{\}¤&\?\*\\\;:\|´`~ˇ\[\]]/g,"");return A};