var redir_url="";String.prototype.trim=function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");};String.prototype.smartcut=function(_1){if(this.length>_1){return this.substring(0,_1)+"...";}else{return this;}};String.prototype.plainarea=function(){return this.replace(/\n/g,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\"").replace(/<(br|tr|hr|div)[^>]*>/g,"\n").replace(/<([^>]+)>/g,"");};function $(id){return document.getElementById?document.getElementById(id):document.layers?document.layers[id]:document.all[id];}function inArray(_3,_4){var _5=false,_6;for(_6 in _4){if(_4[_6]==_3){_5=true;break;}}return _5;}function isInt(_7){if(isNaN(parseInt(_7))){return false;}return true;}function trim(_8){return _8.replace(/^\s+|\s+$/g,"");}var DMail={xmlhttp:false,rrpctime:300000,aObjectHeights:[0,0],isBrowserIE:!!(window.attachEvent&&!window.opera),isBrowserOpera:!!window.opera,isBrowserKHTML:!!(navigator.userAgent.indexOf("KHTML")!=-1||navigator.userAgent.indexOf("Konqueror/")!=-1),isBrowserSafari:!!(navigator.userAgent.indexOf("Safari/")!=-1),isBrowserOk:function(){if(typeof (navigator.userAgent.match)!="function"){return false;}if(!(document.getElementById&&document.body.innerHTML&&document.getElementsByTagName)){return false;}if(typeof (this.getXMLHTTP())!="object"){return false;}if(this.isBrowserKHTML&&!this.isBrowserSafari){return false;}if(this.isBrowserSafari&&navigator.userAgent.match(/ Version\/[0-2]\./)){return false;}if(navigator.appName=="Microsoft Internet Explorer"&&navigator.userAgent.indexOf("MSIE 5.0")!=-1){return false;}if(window.opera&&!window.opera.version){return false;}if(navigator.userAgent.indexOf("Opera/8")!=-1){return false;}return true;},rebuildItem:function(i){var o=null;if(typeof (i)=="string"){o=$(i);}else{o=i;}if(typeof (o.innerHTML)!="undefined"){o.innerHTML=o.innerHTML;}},getUID:function(){var _b=new Date();return _b.getHours()+"."+_b.getMinutes()+"."+_b.getSeconds()+"."+Math.random();},noCacheURI:function(_c){if(_c.indexOf("?")!=-1&&_c.indexOf("&_ncr=")==-1){return _c+"&_ncr="+this.getUID();}else{if(_c.indexOf("?")==-1){return _c+"?_ncr="+this.getUID();}else{return _c;}}},getXMLHTTP:function(){try{return new XMLHttpRequest();}catch(e){try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){return false;}}}return false;},getXMLVal:function(_d,_e){if(typeof (_e)!="string"){return "";}try{var _f=_d.documentElement.childNodes;for(var i=0;i<_f.length;i++){if(_f.item(i).nodeName==_e){if(typeof (_f.item(i).textContent)!="undefined"){return _f.item(i).textContent;}else{if(typeof (_f.item(i).innerText)!="undefined"){return _f.item(i).innerText;}else{if(typeof (_f.item(i).text)!="undefined"){return _f.item(i).text;}else{return "";}}}}}}catch(e){return "";}return "";},ajaxGet:function(uri){return this.ajaxGetCb(uri,false);},ajaxGetCb:function(uri,cb){if(typeof (this.xmlhttp)!="object"){this.xmlhttp=this.getXMLHTTP();}if(typeof (this.xmlhttp)!="object"){return false;}this.xmlhttp.open("GET",this.noCacheURI(uri));if(cb!=false){this.xmlhttp.onreadystatechange=function(){if(DMail.xmlhttp.readyState==4&&DMail.xmlhttp.responseXML){cb(DMail.xmlhttp.responseXML);}};}else{this.xmlhttp.onreadystatechange=function(){};}this.xmlhttp.send(null);return true;},linkRPC:function(_14,uri,itb,_17,_18){if(typeof _14.innerHTML=="undefined"){return false;}redir_url=_14.href;oh=_14.innerHTML;oPreloadImage=new Image(16,16);oPreloadImage.src="images/progress.gif";_14.innerHTML="<img style=\"vertical-align:middle;\" src=\"images/progress.gif\" border=\"0\" width=\"16\" height=\"16\" alt=\"...\" />";if(!this.ajaxGetCb(uri,function(xml){_14.innerHTML=oh;var msg=DMail.getXMLVal(xml,"msg");if(typeof _18!="undefined"||DMail.getXMLVal(xml,"reload")=="yes"){setTimeout("window.location.href = redir_url",100);}if(typeof msg=="string"&&msg!=""&&typeof _17=="undefined"){DMail.infoText(itb,msg);}})){_14.innerHTML=oh;if(typeof _18!="undefined"){setTimeout("window.location.href = redir_url",100);}}return false;},reloadRPC:function(uri){window.setTimeout("DMail._reloadRPC('"+uri+"')",this.rrpctime);},_reloadRPC:function(uri){window.setTimeout("DMail._reloadRPC('"+uri+"')",this.rrpctime);var xht=this.getXMLHTTP();if(xht==false){return;}xht.open("GET",this.noCacheURI(uri));xht.onreadystatechange=function(){if(xht.readyState==4&&xht.responseXML){if(DMail.getXMLVal(xht.responseXML,"reload")=="yes"){window.location.href=window.location.href;return;}}};xht.send(null);},isPassOk:function(p){if(typeof (p)!="string"){return false;}if(p.length<6){return false;}if(p.length>12){return true;}if(p.substring(0,6)=="123456"||p.substring(0,6)=="qwerty"||p.substring(0,8)=="password"||p.substring(0,6)=="abcdef"||p=="abc123"){return false;}return true;},isValidEmail:function(_1f){if(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(_1f.trim())){return true;}return false;},isValidRFC822:function(_20){e=_20.trim();if(/\s+/.test(e)&&!/<\S+@\S+>$/.test(e)){return false;}e=e.replace(/^.+\s+/,"");if(/^</.test(e)&&!/>$/.test(e)){return false;}e=e.replace(/^</,"");e=e.replace(/>$/,"");return this.isValidEmail(e);},isValidRFC822List:function(_21){_21=_21.trim();_21=_21.replace(/\n/g,"");_21=_21.replace(/\r/g,"");_21=_21.replace(/;/g,",");_21=_21.replace(/\s+/g," ");_21=_21.replace(/,\s*$/,"");if(_21==""){return true;}var _22=_21.split(",");for(var i=0;i<_22.length;i++){var _24=_22[i].trim();if(!this.isValidRFC822(_24)){return _24;}}return true;},getObjPos:function(obj){var cl=ct=0;if(obj.offsetParent){cl=obj.offsetLeft;ct=obj.offsetTop;while(obj=obj.offsetParent){cl+=obj.offsetLeft;ct+=obj.offsetTop;}}return [cl,ct];},getPointer:function(e){return {x:e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),y:e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)};},adjustIFrame:function(_28,_29,_2a,_2b){var h=320;var f=$(_28.name);if(typeof _29=="undefined"){_29=false;}if(typeof _2a=="undefined"){_2a=10;}if(typeof _2b=="undefined"){_2b=0;}if(_29==false||this.aObjectHeights[_2b]==0){if(_28.innerHeight&&_28.scrollMaxY){h=_28.innerHeight+_28.scrollMaxY;}else{if(_28.document.compatMode&&_28.document.compatMode!="BackCompat"){h=_28.document.documentElement.scrollHeight;}else{if(_28.document.body&&_28.document.body.scrollHeight>_28.document.body.offsetHeight){h=_28.document.body.scrollHeight;}else{if(_28.document.body.offsetHeight){h=_28.document.body.offsetHeight;}else{if(_28.document.height){h=_28.document.height+15;}}}}}if(this.aObjectHeights[_2b]==0){this.aObjectHeights[_2b]=h;}}else{h=this.aObjectHeights[_2b];}if(f&&f.style){f.style.height=h+_2a+"px";}$("message_loading").style.visibility="hidden";$("message_loading").title="";},getFileName:function(_2e){if(_2e.indexOf("\\")!=-1){var pos=_2e.lastIndexOf("\\");return _2e.substring(pos+1);}else{if(_2e.indexOf("/")!=-1){var pos=_2e.lastIndexOf("/");return _2e.substring(pos+1);}else{return _2e;}}},safeHTML:function(s){s=s.replace(/&/g,"&amp;");s=s.replace(/\"/g,"&quot;");s=s.replace(/\'/g,"&#039;");s=s.replace(/</g,"&lt;");s=s.replace(/>/g,"&gt;");return s;},showLBX:function(){var box=document.createElement("div");if(box){box.setAttribute("id","globallightbox");box.setAttribute("name","globallightbox");box.className="lightbox";$("root").appendChild(box);}return false;},hideLBX:function(){var box=$("globallightbox");if(box){box.parentNode.removeChild(box);}return false;},showPBX:function(id,_34){var x=y=0;var box=$(id);if(typeof (_34)=="string"&&_34!=""){plc=$(_34);if(plc&&plc.style){pos=this.getObjPos(plc);x=pos[0];y=pos[1]+30;}}if(box&&box.style){this.showLBX();box.style.display="block";if(x>0&&y>0){box.style.left=x+"px";box.style.top=y+"px";}}return false;},showFIXED:function(id,x,y){var box=$(id);if(box&&box.style){this.showLBX();box.style.display="block";if(x>0&&y>0){box.style.position="fixed";box.style.left=x+"px";box.style.top=y+"px";}}return false;},hidePBX:function(id){var box=$(id);if(box&&box.style){this.hideLBX();box.style.display="none";}return false;},infoText:function(id,_3e,_3f){$("infoboxcontent").innerHTML=_3e;if(typeof _3f=="string"&&_3f.indexOf("infoboxbutton")>-1){$("infoboxclose").innerHTML=_3f;}else{$("infoboxclose").innerHTML=sInfoboxButtonsOriginal;}this.hidePBX("infobox");this.showPBX("infobox");$("infoboxbutton").focus();},captchaTest:function(id,_41,_42,_43){$("captchatestcontent").innerHTML=_41;$("captchaimg").innerHTML="<img id=\"cpcimg\" src=\"rcimg.php?_ncr="+Math.floor(Math.random()*100000)+999999+" style=\"border: 1px solid #aaaaaa; margin-top: 4px;\" />"+" <span class=\"comm\"><a href=\"#\" onclick=\"return chgcpc();\">"+_43+"</a>";this.hidePBX("captchatest");this.showPBX("captchatest");$("captchainput").focus();},ctxMenu:{showctx:false,overctx:false,menuobj:null,currentItem:"",initMenu:function(id){if(typeof (id)!="string"){return;}if(DMail.isBrowserOpera){return;}this.menuobj=$(id);this.menuobj.onmouseover=function(){DMail.ctxMenu.overctx=true;};this.menuobj.onmouseout=function(){DMail.ctxMenu.overctx=false;};document.body.onmousedown=this.mouseDown;document.body.oncontextmenu=this.menuShow;},mouseDown:function(e){if(DMail.ctxMenu.overctx){return;}if(e==null){e=window.event;}var _46=e.target!=null?e.target:e.srcElement;var _47=false;if(_46.tagName.toLowerCase()=="a"&&_46.parentNode.parentNode.className.toLowerCase()=="_ctxenabled"){DMail.ctxMenu.currentItem=_46.parentNode.parentNode.getElementsByTagName("input")[0].value;_47=true;}else{if(_46.tagName.toLowerCase()=="td"&&_46.parentNode.className.toLowerCase()=="_ctxenabled"){DMail.ctxMenu.currentItem=_46.parentNode.getElementsByTagName("input")[0].value;_47=true;}}if(e.button==2&&_47){DMail.ctxMenu.showctx=true;}else{if(!DMail.ctxMenu.overctx){DMail.ctxMenu.menuobj.style.display="none";}}},menuShow:function(e){if(DMail.ctxMenu.overctx){return;}if(e==null){e=window.event;}var _49=e.target!=null?e.target:e.srcElement;if(DMail.ctxMenu.showctx){var p=DMail.getPointer(e);DMail.ctxMenu.menuobj.style.display="none";DMail.ctxMenu.menuobj.style.left=p.x+"px";DMail.ctxMenu.menuobj.style.top=p.y+"px";DMail.ctxMenu.menuobj.style.display="block";DMail.ctxMenu.showctx=false;return false;}}}};function makeWindowed(_4b){var _4c=document.all&&(navigator.userAgent.toLowerCase().indexOf("msie 6.")!=-1);if(!_4c){return true;}var _4d=$(_4b);var _4e=_4d.style.display;_4d.style.display="none";_4d.style.display="block";_4d.style.display=_4e;return true;}function elementPos(_4f){var _50=$(_4f);var _51=iCurTop=0;if(_50.offsetParent){do{_51+=_50.offsetLeft;iCurTop+=_50.offsetTop;}while(_50=_50.offsetParent);return [_51,iCurTop];}else{return [0,0];}}function chgcpc(){$("cpcimg").src="rcimg.php?_ncr="+DMail.getUID();return false;}