function dBi(a){return document.getElementById(a)}function trim(a){return a.replace(/^[\x20\x0A\x0D]+|[\x20\x0A\x0D]+$/g,"")}function ltrim(a){return a.replace(/^[\x20\x0A\x0D]+/,"")}function rtrim(a){return a.replace(/[\x20\x0A\x0D]+$/,"")}var plusimg=new Image();plusimg.src=fw_static_host+"images/btn/plus.gif";var minusimg=new Image();minusimg.src=fw_static_host+"images/btn/minus.gif";function toggle_id_vis(a){if(dBi("fltrplus")){flimg=dBi("fltrplus")}else{flimg=new Image()}if(dBi(a)){if(dBi(a).style.display=="none"){dBi(a).style.display="block";flimg.src=minusimg.src}else{dBi(a).style.display="none";flimg.src=plusimg.src}}else{return false}}function showID(b,a){if(a=="row"){dBi(b).style.display=""}else{dBi(b).style.display="block"}}function hideID(a){dBi(a).style.display="none"}function show_info_pop(){if(dBi("gren_hlp_1")){new_thm=dBi("gren_hlp_1");new_thm.onmouseover=new Function("showID('green_hlp_wrap_1')");new_thm.onmouseout=new Function("hideID('green_hlp_wrap_1')")}if(dBi("pg_count_img")){new_thm=dBi("pg_count_img");new_thm.onmouseover=new Function("showID('pg_count')");new_thm.onmouseout=new Function("hideID('pg_count')")}if(dBi("dwnCreditsnfo_img")){new_thm=dBi("dwnCreditsnfo_img");new_thm.onmouseover=new Function("showID('dwnCreditsnfo')");new_thm.onmouseout=new Function("hideID('dwnCreditsnfo')")}if(dBi("dwnCodenfo_img")){new_thm=dBi("dwnCodenfo_img");new_thm.onmouseover=new Function("showID('dwnCodenfo')");new_thm.onmouseout=new Function("hideID('dwnCodenfo')")}if(dBi("allowed_file_types_info")){new_thm=dBi("allowed_file_types_info_img");new_thm.onmouseover=new Function("showID('allowed_file_types_info')");new_thm.onmouseout=new Function("hideID('allowed_file_types_info')")}}function sz(a){while(a.scrollTop>0){a.rows+=1}}function loginLightbox(a){this.prefix=a.prefix;this.act=a.act;this.isIE=(navigator.appName.indexOf("Microsoft")!=-1)?true:false;this.updatePos=function(){if(this.isIE){this.winWidth=document.body.offsetWidth}else{this.winWidth=window.innerWidth}dBi(this.prefix+"-box").style.left=(this.winWidth-parseInt(dBi(this.prefix+"-box").style.width,10))/2+"px"};if(this.act=="open"){if(dBi(this.prefix+"-content").innerHTML==""){var b=new XmlHttp();b.open("GET","/ajax/fetchloginform/",false);b.send(null);dBi(this.prefix+"-content").innerHTML=b.responseText;appendJsCss({source:dBi(this.prefix+"-content")})}window.onresize=function(){setTimeout("this.updatePos()",50)};this.updatePos();showID(this.prefix)}else{if(this.act=="close"){hideID(this.prefix)}}}function appendJsCss(c){var a=c.source.getElementsByTagName("script");var b=c.source.getElementsByTagName("style");var f=document.getElementsByTagName("head")[0];for(var e=0;e<a.length;e++){var d=document.createElement("script");d.type="text/javascript";if(a[e].src){d.src=a[e].src}else{d.text=a[e].innerHTML}f.appendChild(d)}for(var e=0;e<b.length;e++){if(b[e].href){var g=document.createElement("link");g.type="text/css";g.rel="stylesheet";g.href=b[e].href;g.media="screen"}else{var g=document.createElement("style");g.type="text/css";g.text=b[e].innerHTML}f.appendChild(g)}};

function XmlHttp(){var c;if(window.XMLHttpRequest){c=new XMLHttpRequest();if(c.readyState==null){c.readyState=1;c.addEventListener("load",function(){c.readyState=4;if(typeof c.onreadystatechange=="function"){c.onreadystatechange()}},false)}return c}else{if(window.ActiveXObject){c=["MSXML2","Microsoft","MSXML","MSXML3"];for(var b=0;c[b];b++){try{return new ActiveXObject(c[b]+".XmlHttp")}catch(a){}}}}return false}var READY_STATE_UNINITIALIZED=0;var READY_STATE_LOADING=1;var READY_STATE_LOADED=2;var READY_STATE_INTERACTIVE=3;var READY_STATE_COMPLETE=4;function sendRequest(a,b,c){if(!c){c="GET"}req=initXMLHTTPRequest();if(req){req.onreadystatechange=onReadyState;req.open(c,a,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(b)}}function initXMLHTTPRequest(){var a=null;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a};

