dzxstatic
Version:
The static files of Discuz! X
1 lines • 22 kB
JavaScript
var note_timer,note_step=0,note_oldtitle=document.title;function addSort(e){"addoption"==e.value&&showWindow("addoption","home.php?mod=spacecp&ac=blog&op=addoption&handlekey=addoption&oid="+e.id)}function addOption(e,n){var t=$(n),o=$(e).value;if($(e).value="",null!=o&&""!=o){var a=document.createElement("option");a.text=o,a.value="new:"+o;try{t.add(a,t.options[0])}catch(e){t.add(a,t.selecedIndex)}t.value="new:"+o}else t.value=t.options[0].value}function blogAddOption(e,n){var t=$(n),o=$(e).value;if(o=o.replace(/^\s+|\s+$/g,""),$(e).value="",null!=o&&""!=o){var a=document.createElement("option");a.text=o,a.value="new:"+o;try{t.add(a,t.options[0])}catch(e){t.add(a,t.selecedIndex)}return t.value="new:"+o,!0}return alert("分类名不能为空!"),!1}function blogCancelAddOption(e){var n=$(e);n.value=n.options[0].value}function checkAll(e,n){for(var t=0;t<e.elements.length;t++){var o=e.elements[t];o.name.match(n)&&(o.checked=e.elements.chkall.checked)}}function cnCode(e){return e=(e=e.replace(/<\/?[^>]+>|\[\/?.+?\]|"/gi,"")).replace(/\s{2,}/gi," "),BROWSER.ie&&"utf-8"==document.charset?encodeURIComponent(e):e}function getExt(e){return-1==e.lastIndexOf(".")?"":e.substr(e.lastIndexOf(".")+1,e.length).toLowerCase()}function resizeImg(e,n){var t=$(e).getElementsByTagName("img");for(i=0;i<t.length;i++)t[i].onload=function(){if(this.width>n&&(this.style.width=n+"px","a"!=this.parentNode.tagName.toLowerCase())){var e=document.createElement("div");this.parentNode.insertBefore(e,this),e.appendChild(this),e.style.position="relative",e.style.cursor="pointer",this.title="点击图片,在新窗口显示原始尺寸";var t=document.createElement("img");t.src="image/zoom.gif",t.style.position="absolute",t.style.marginLeft=n-28+"px",t.style.marginTop="5px",this.parentNode.insertBefore(t,this),e.onmouseover=function(){t.src="image/zoom_h.gif"},e.onmouseout=function(){t.src="image/zoom.gif"},e.onclick=function(){window.open(this.childNodes[1].src)}}}}function zoomTextarea(e,n){zoomSize=n?10:-10,obj=$(e),obj.rows+zoomSize>0&&obj.cols+3*zoomSize>0&&(obj.rows+=zoomSize,obj.cols+=3*zoomSize)}function ischeck(e,n){form=document.getElementById(e);for(var t=0;t<form.elements.length;t++){var o=form.elements[t];if(o.name.match(n)&&o.checked)return!!confirm("您确定要执行本操作吗?")}return alert("请选择要操作的对象"),!1}function copyRow(e){var n,t=!1;for(1==$(e).rows.length&&"none"==$(e).rows[0].style.display?($(e).rows[0].style.display="",n=$(e).rows[0]):(n=$(e).rows[0].cloneNode(!0),t=!0),tags=n.getElementsByTagName("input"),i=0;i<tags.length;i++)"pics[]"==tags[i].name&&(tags[i].value="http://");t&&$(e).appendChild(n)}function delRow(e,n){if(1==$(n).rows.length){var t=e.parentNode.parentNode;for(tags=t.getElementsByTagName("input"),i=0;i<tags.length;i++)"pics[]"==tags[i].name&&(tags[i].value="http://");t.style.display="none"}else $(n).removeChild(e.parentNode.parentNode)}function insertWebImg(e){checkImage(e.value)?(insertImage(e.value),e.value="http://"):alert("图片地址不正确")}function checkFocus(e){var n=$(e);n.hasfocus||n.focus()}function insertImage(e){insertContent("message",e="\n[img]"+e+"[/img]\n")}function insertContent(e,n){var t=$(e);if(selection=document.selection,checkFocus(e),isUndefined(t.selectionStart))if(selection&&selection.createRange){var o=selection.createRange();o.text=n,o.moveStart("character",-strlen(n))}else t.value+=n;else{t.selectionStart;t.value=t.value.substr(0,t.selectionStart)+n+t.value.substr(t.selectionEnd)}}function checkImage(e){return e.match(/^http\:\/\/.{5,200}\.(jpg|gif|png)$/i)}function stopMusic(e,n){var t=e.toString()+"_"+n.toString();$(t)&&$(t).SetVariable("closePlayer",1)}function showFlash(e,n,t,o){var a={"youku.com":"http://player.youku.com/player.php/sid/FLASHVAR=/v.swf","ku6.com":"http://player.ku6.com/refer/FLASHVAR/v.swf","youtube.com":"http://www.youtube.com/v/FLASHVAR","5show.com":"http://www.5show.com/swf/5show_player.swf?flv_id=FLASHVAR","sina.com.cn":"http://vhead.blog.sina.com.cn/player/outer_player.swf?vid=FLASHVAR","sohu.com":"http://v.blog.sohu.com/fo/v4/FLASHVAR","mofile.com":"http://tv.mofile.com/cn/xplayer.swf?v=FLASHVAR",music:"FLASHVAR",flash:"FLASHVAR"},i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="480" height="400"><param name="movie" value="FLASHADDR" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed width="480" height="400" menu="false" quality="high" allowScriptAccess="never" allowNetworking="internal" src="FLASHADDR" type="application/x-shockwave-flash" /></object>',l='<object id="audioplayer_SHAREID" height="24" width="290" data="'+STATICURL+'image/common/player.swf" type="application/x-shockwave-flash"><param value="'+STATICURL+'image/common/player.swf" name="movie"/><param value="autostart=yes&bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=FLASHADDR" name="FlashVars"/><param value="high" name="quality"/><param value="false" name="menu"/><param value="#FFFFFF" name="bgcolor"/></object>',s='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="450"><param value="transparent" name="wmode"/><param value="FLASHADDR" name="movie" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="none" /><embed src="FLASHADDR" wmode="transparent" allowfullscreen="true" type="application/x-shockwave-flash" width="480" height="450" allowScriptAccess="never" allowNetworking="internal"></embed></object>',r=!0;if(""==n)return alert("音乐地址错误,不能为空"),!1;if("music"==e){var c=new RegExp(".mp3$","ig"),m=new RegExp(".swf$","ig");s='<object height="64" width="290" data="FLASHADDR" type="audio/x-ms-wma"><param value="FLASHADDR" name="src"/><param value="1" name="autostart"/><param value="true" name="controller"/></object>',r=!1,c.test(n)?(r=!0,s=l):m.test(n)&&(r=!0,s=i)}if(n=encodeURI(n),a[e]){i=a[e].replace("FLASHVAR",n);s=(s=s.replace(/FLASHADDR/g,i)).replace(/SHAREID/g,o)}if(!t)return $("flash_div_"+o).innerHTML=s,!0;if($("flash_div_"+o))return $("flash_div_"+o).style.display="",$("flash_hide_"+o).style.display="",t.style.display="none",!0;if(a[e]){var d=document.createElement("div");d.id="flash_div_"+o,t.parentNode.insertBefore(d,t),d.innerHTML=s,t.style.display="none";var p=document.createElement("div");p.id="flash_hide_"+o;var u=document.createTextNode("收起");p.appendChild(u),t.parentNode.insertBefore(p,t),p.style.cursor="pointer",p.onclick=function(){1==r?(stopMusic("audioplayer",o),d.parentNode.removeChild(d),p.parentNode.removeChild(p)):(d.style.display="none",p.style.display="none"),t.style.display=""}}}function startMarquee(e,n,t,o){var a=null,i=!1,l=$(o);function s(){a=setInterval(r,n),i||(l.scrollTop+=2)}function r(){i||(l.scrollTop%e!=0?(l.scrollTop+=2,l.scrollTop>=l.scrollHeight/2&&(l.scrollTop=0)):(clearInterval(a),setTimeout(s,t)))}l.innerHTML+=l.innerHTML,l.onmouseover=function(){i=!0},l.onmouseout=function(){i=!1},l.scrollTop=0,setTimeout(s,t)}function readfeed(e,n){if(Cookie.get("read_feed_ids"))t=n+","+(t=Cookie.get("read_feed_ids"));else var t=n;Cookie.set("read_feed_ids",t,48),e.className="feedread"}function showreward(){if(Cookie.get("reward_notice_disable"))return!1;(new Ajax).get("home.php?mod=misc&ac=ajax&op=getreward",(function(e){e&&msgwin(e,2e3)}))}function msgwin(e,n){var t;(t=$("msgwin"))||((t=document.createElement("div")).id="msgwin",t.style.display="none",t.style.position="absolute",t.style.zIndex="100000",$("append_parent").appendChild(t));t.innerHTML=e,t.style.display="",t.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)",t.style.opacity=0;var o=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;pbegin=o+document.documentElement.clientHeight/2,pend=o+document.documentElement.clientHeight/5,setTimeout((function(){showmsgwin(pbegin,pend,0,n)}),10),t.style.left=(document.documentElement.clientWidth-t.clientWidth)/2+"px",t.style.top=pbegin+"px"}function showmsgwin(e,n,t,o){step=(e-n)/10;var a=$("msgwin");newp=parseInt(a.style.top)-step,newp>n?(a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+t+")",a.style.opacity=t/100,a.style.top=newp+"px",setTimeout((function(){showmsgwin(e,n,t+=10,o)}),10)):(a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)",a.style.opacity=1,setTimeout("displayOpacity('msgwin', 100)",o))}function displayOpacity(e,n){$(e)&&(n>=0?(n-=10,$(e).style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+n+")",$(e).style.opacity=n/100,setTimeout("displayOpacity('"+e+"',"+n+")",50)):($(e).style.display="none",$(e).style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)",$(e).style.opacity=1))}function urlto(e){window.location.href=e}function explode(e,n){return n.split(e)}function selector(e,n){var t=new RegExp("([a-z0-9]*)([.#:]*)(.*|$)","ig").exec(e),o=cc=[];"#"==t[2]?o.push(["id","=",t[3]]):"."==t[2]?o.push(["className","~=",t[3]]):":"==t[2]&&o.push(["type","=",t[3]]);for(var a=t[3].replace(/\[(.*)\]/g,"$1").split("@"),i=0;i<a.length;i++)(cc=/([\w]+)([=^%!$~]+)(.*)$/.exec(a[i]))&&o.push([cc[1],cc[2],cc[3]]);var l=o[0]&&"id"==o[0][0]?[document.getElementById(o[0][2])]:(n||document).getElementsByTagName(t[1]||"*");if(!l||!l.length)return[];if(o){var s=[],r={for:"htmlFor",class:"className"};for(i=0;i<l.length;i++){for(var c=!0,m=0;m<o.length;m++){var d=r[o[m][0]]||o[m][0],p=l[i][d]||(l[i].getAttribute?l[i].getAttribute(d):"");e=null;if("="==o[m][1]?e=new RegExp("^"+o[m][2]+"$","i"):"^="==o[m][1]?e=new RegExp("^"+o[m][2],"i"):"$="==o[m][1]?e=new RegExp(o[m][2]+"$","i"):"%="==o[m][1]?e=new RegExp(o[m][2],"i"):"~="==o[m][1]&&(e=new RegExp("(^|[ ])"+o[m][2]+"([ ]|$)","i")),e&&!e.test(p)){c=!1;break}}c&&s.push(l[i])}return s}return l}function showBlock(e,n){if(parseInt(e)){var t=$(n);(new Ajax).get("portal.php?mod=cp&ac=block&operation=getblock&classid="+e,(function(e){t.innerHTML=e}))}}function resizeTx(e){var n=e.id+"_limit";BROWSER.ie||(e.style.height=0),e.style.height=e.scrollHeight+"px",$(n)&&($(n).style.display=e.scrollHeight>30?"":"none")}function showFace(e,n,t){if(null!=$(e+"_menu"))$(e+"_menu").style.display="";else{var o=document.createElement("div");o.id=e+"_menu",o.className="p_pop facel",o.style.position="absolute",o.style.zIndex=1001;var a=document.createElement("ul");for(i=1;i<31;i++){var l=document.createElement("li");l.innerHTML='<img src="'+STATICURL+"image/smiley/comcom/"+i+'.gif" onclick="insertFace(\''+e+"',"+i+", '"+n+"', '"+t+'\')" style="cursor:pointer; position:relative;" />',a.appendChild(l)}o.appendChild(a),$("append_parent").appendChild(o)}setMenuPosition(e,0),doane(),_attachEvent(document.body,"click",(function(){$(e+"_menu")&&($(e+"_menu").style.display="none")}))}function insertFace(e,n,t,o){var a="[em:"+n+":]";null!=$(t)&&(insertContent(t,a),o&&($(t).value=$(t).value.replace(o,"")))}function wall_add(e){var n=$("comment_ul"),t=document.createElement("dl");t.id="comment_"+e+"_li",t.className="bbda cl",(new Ajax).get("home.php?mod=misc&ac=ajax&op=comment&inajax=1&cid="+e,(function(e){t.innerHTML=e})),n.insertBefore(t,n.firstChild),$("comment_message")&&($("comment_message").value=""),showCreditPrompt()}function share_add(e){var n=$("share_ul"),t=document.createElement("li");t.id="share_"+e+"_li",(new Ajax).get("home.php?mod=misc&ac=ajax&op=share&inajax=1&sid="+e,(function(e){t.innerHTML=e})),n.insertBefore(t,n.firstChild),$("share_link").value="http://",$("share_general").value="",showCreditPrompt()}function comment_add(e){var n=$("comment_ul"),t=document.createElement("dl");if(t.id="comment_"+e+"_li",t.className="bbda cl",(new Ajax).get("home.php?mod=misc&ac=ajax&op=comment&inajax=1&cid="+e,(function(e){t.innerHTML=e})),$("comment_prepend")){for(n=n.firstChild;n&&1!=n.nodeType;)n=n.nextSibling;n.parentNode.insertBefore(t,n)}else n.appendChild(t);if($("comment_message")&&($("comment_message").value=""),$("comment_replynum")){var o=parseInt($("comment_replynum").innerHTML)+1;$("comment_replynum").innerHTML=o+""}showCreditPrompt()}function comment_edit(e){var n=$("comment_"+e+"_li");(new Ajax).get("home.php?mod=misc&ac=ajax&op=comment&inajax=1&cid="+e,(function(e){n.innerHTML=e;for(var t=selector("dd[class~=magicflicker]"),o=0;o<t.length;o++)magicColor(t[o])}))}function comment_delete(e){if($("comment_"+e+"_li").style.display="none",$("comment_replynum")){var n=parseInt($("comment_replynum").innerHTML)-1;$("comment_replynum").innerHTML=n+""}}function share_delete(e){$("share_"+e+"_li").style.display="none"}function friend_delete(e){var n=$("friend_"+e+"_li");null!=n&&(n.style.display="none");var t=$("friend_tbody_"+e);null!=t&&(t.style.display="none")}function friend_changegroup(e,n){if(n){var t=explode("_",e)[1],o=$("friend_group_"+t);(new Ajax).get("home.php?mod=misc&ac=ajax&op=getfriendgroup&uid="+t,(function(e){o.innerHTML=e}))}}function friend_changegroupname(e){var n=$("friend_groupname_"+e);(new Ajax).get("home.php?mod=misc&ac=ajax&op=getfriendname&inajax=1&group="+e,(function(e){n.innerHTML=e}))}function post_add(e,n){if(n){var t=$("post_ul"),o=document.createElement("div");if((new Ajax).get("home.php?mod=misc&ac=ajax&op=post",(function(e){o.innerHTML=e})),t.appendChild(o),$("message")){for($("message").value="",newnode=$("quickpostimg").rows[0].cloneNode(!0),tags=newnode.getElementsByTagName("input"),i=0;i<tags.length;i++)"pics[]"==tags[i].name&&(tags[i].value="http://");for(var a=$("quickpostimg").rows;a.length;)$("quickpostimg").removeChild(a[0]);$("quickpostimg").appendChild(newnode)}if($("post_replynum")){var l=parseInt($("post_replynum").innerHTML)+1;$("post_replynum").innerHTML=l+""}showCreditPrompt()}}function post_edit(e,n){if(n){var t=explode("_",e)[1],o=$("post_"+t+"_li");(new Ajax).get("home.php?mod=misc&ac=ajax&op=post&pid="+t,(function(e){o.innerHTML=e}))}}function post_delete(e,n){if(n){var t=explode("_",e)[1];if($("post_"+t+"_li").style.display="none",$("post_replynum")){var o=parseInt($("post_replynum").innerHTML)-1;$("post_replynum").innerHTML=o+""}}}function poke_send(e,n){if(n){var t=explode("_",e)[1];$("poke_"+t)&&($("poke_"+t).style.display="none"),showCreditPrompt()}}function myfriend_post(e){$("friend_"+e)&&($("friend_"+e).innerHTML='<p>你们现在是好友了,接下来,您还可以:<a href="home.php?mod=space&do=wall&uid='+e+'" class="xi2" target="_blank">给TA留言</a> ,或者 <a href="home.php?mod=spacecp&ac=poke&op=send&uid='+e+"&handlekey=propokehk_"+e+'" id="a_poke_'+e+"\" class=\"xi2\" onclick=\"showWindow(this.id, this.href, 'get', 0, {'ctrlid':this.id,'pos':'13'});\">打个招呼</a></p>"),showCreditPrompt()}function myfriend_ignore(e){var n=explode("_",e)[1];$("friend_tbody_"+n).style.display="none"}function mtag_join(e,n){n&&location.reload()}function resend_mail(e){e&&($("sendmail_"+e+"_li").style.display="none")}function docomment_get(e,n){var t=n+"_"+e,o=n+"_do_a_op_"+e;$(t).style.display="",$(t).className="cmt brm",ajaxget("home.php?mod=spacecp&ac=doing&op=getcomment&handlekey=msg_"+e+"&doid="+e+"&key="+n,t),$(o)&&($(o).innerHTML="收起",$(o).onclick=function(){docomment_colse(e,n)}),showCreditPrompt()}function docomment_colse(e,n){var t=n+"_"+e,o=n+"_do_a_op_"+e;$(t).style.display="none",$(t).style.className="",$(o).innerHTML="回复",$(o).onclick=function(){docomment_get(e,n)}}function docomment_form(e,n,t){var o=t+"_form_"+e+"_"+n,a=t+"_"+e,i="home.php?mod=spacecp&ac=doing&op=docomment&handlekey=msg_"+n+"&doid="+e+"&id="+n+"&key="+t;parseInt(discuz_uid)?(ajaxget(i,o),$(a)&&($(a).style.display="")):showWindow(a,i)}function docomment_form_close(e,n,t){var o=t+"_form_"+e+"_"+n,a=t+"_do_a_op_"+e;$(o).innerHTML="",$(o).style.display="none",$(t+"_"+e).getElementsByTagName("li").length||($(t+"_"+e).style.display="none",$(a)&&($(a).innerHTML="回复",$(a).onclick=function(){docomment_get(e,t)}))}function feedcomment_get(e){var n="feedcomment_"+e,t="feedcomment_a_op_"+e;$(n).style.display="",ajaxget("home.php?mod=spacecp&ac=feed&op=getcomment&feedid="+e+"&handlekey=feedhk_"+e,n),null!=$(t)&&($(t).innerHTML="收起",$(t).onclick=function(){feedcomment_close(e)})}function feedcomment_add(e,n){var t=$("comment_ol_"+n),o=document.createElement("dl");o.id="comment_"+e+"_li",o.className="bbda cl",(new Ajax).get("home.php?mod=misc&ac=ajax&op=comment&inajax=1&cid="+e,(function(e){o.innerHTML=e})),t.appendChild(o),$("feedmessage_"+n).value="",showCreditPrompt()}function feedcomment_close(e){var n="feedcomment_"+e,t="feedcomment_a_op_"+e;$(n).style.display="none",$(n).style.className="",$(t).innerHTML="评论",$(t).onclick=function(){feedcomment_get(e)}}function feed_post_result(e,n){n&&location.reload()}function feed_more_show(e){var n="feed_more_"+e,t="feed_a_more_"+e;$(n).style.display="",$(n).className="sub_doing",$(t).innerHTML="« 收起列表",$(t).onclick=function(){feed_more_close(e)}}function feed_more_close(e){var n="feed_a_more_"+e;$("feed_more_"+e).style.display="none",$(n).innerHTML="» 更多动态",$(n).onclick=function(){feed_more_show(e)}}function poll_post_result(e,n){if(n){var t=$("__"+e).getElementsByTagName("a");window.location.href=t[0].href}}function show_click(e,n,t){ajaxget("home.php?mod=spacecp&ac=click&op=show&clickid="+t+"&idtype="+e+"&id="+n,"click_div"),showCreditPrompt()}function feed_menu(e,n){var t;(t=$("a_feed_menu_"+e))&&(t.style.display=n?"block":"none"),(t=$("feedmagic_"+e))&&(t.style.display=n?"block":"none")}function showbirthday(){var e=$("birthday"),n=e.value;e.length=0,e.options.add(new Option("日",""));for(var t=0;t<28;t++)e.options.add(new Option(t+1,t+1));if("2"!=$("birthmonth").value)switch(e.options.add(new Option(29,29)),e.options.add(new Option(30,30)),$("birthmonth").value){case"1":case"3":case"5":case"7":case"8":case"10":case"12":e.options.add(new Option(31,31))}else if(""!=$("birthyear").value){var o=$("birthyear").value;(o%400==0||o%4==0&&o%100!=0)&&e.options.add(new Option(29,29))}e.value=n}function magicColor(e,n){n=n||10,(e=e&&e.constructor==String?$(e):e)?(null==window.mcHandler&&(window.mcHandler={elements:[]},window.mcHandler.colorIndex=0,window.mcHandler.run=function(){for(var e=["#CC0000","#CC6D00","#CCCC00","#00CC00","#0000CC","#00CCCC","#CC00CC"][window.mcHandler.colorIndex++%7],n=0,t=window.mcHandler.elements.length;n<t;n++)window.mcHandler.elements[n].style.color=e}),window.mcHandler.elements.push(e),null==window.mcHandler.timer&&(window.mcHandler.timer=setInterval(window.mcHandler.run,500))):setTimeout((function(){magicColor(e,n-1)}),400)}function passwordShow(e){4==e?($("span_password").style.display="",$("tb_selectgroup").style.display="none"):2==e?($("span_password").style.display="none",$("tb_selectgroup").style.display=""):($("span_password").style.display="none",$("tb_selectgroup").style.display="none")}function getgroup(e){e&&(new Ajax).get("home.php?mod=spacecp&ac=privacy&inajax=1&op=getgroup&gid="+e,(function(e){e+=" ",$("target_names").innerHTML+=e}))}function pmsendappend(){$("pm_append").style.display="",$("pm_append").id="",div=document.createElement("div"),div.id="pm_append",div.style.display="none",$("pm_ul").appendChild(div),$("replymessage").value="",showCreditPrompt()}function succeedhandle_pmsend(e,n,t){ajaxget("home.php?mod=spacecp&ac=pm&op=viewpmid&pmid="+t.pmid,"pm_append","ajaxwaitid","",null,"pmsendappend()")}function getchatpmappendmember(){var e=document.getElementsByName("users[]"),n="";if(e.length)for(var t="",o=0;o<e.length;o++)n+=t+e[o].value,t||(t=",");$("username").value&&(n=n?n+","+$("username").value:$("username").value);var a=$("a_appendmember").href+"&memberusername="+n;showWindow("a_appendmember",a,"get",0)}function markreadpm(e){var n=e.split(",");if(n.length>0)for(var t=0;t<n.length;t++)$(n[t]).className="bbda cl"}function setpmstatus(e){for(var n=new Array,t=new Array,o="",a=new Array,i=0;i<e.elements.length;i++){var l=e.elements[i];if(l.id&&l.id.match("a_delete")&&l.checked){var s=new Array;"deleteg"==(s=l.id.split("_"))[1]?(n.push(s[2]),a.push("gpmlist_"+s[2])):"delete"==s[1]&&(t.push(s[2]),a.push("pmlist_"+s[2]))}}n.length>0&&(o+="&gpmids="+n.join(",")),t.length>0&&(o+="&plids="+t.join(",")),o&&ajaxget("home.php?mod=spacecp&ac=pm&op=setpmstatus"+o,"","ajaxwaitid","","none","markreadpm('"+a.join(",")+"')")}function changedeletedpm(e){$("pmlist_"+e).style.display="none";var n=parseInt($("membernum").innerHTML);$("membernum").innerHTML=n-1}function changeOrderRange(e){if(!$(e))return!1;for(var n=window.location.href,t=$(e).getElementsByTagName("a"),o=0;o<t.length;o++)t[o].onclick=function(){return-1==n.indexOf("&orderby=")?n+="&orderby="+this.id:n=n.replace(/orderby=.*/,"orderby="+this.id),window.location=n,!1}}function addBlockLink(e,n){if(!$(e))return!1;for(var t=$(e).getElementsByTagName(n),o={A:1,INPUT:1,IMG:1},a=0,i=t.length;a<i;a++)t[a].onmouseover=function(){-1==this.className.indexOf(" hover")&&(this.className=this.className+" hover")},t[a].onmouseout=function(){this.className=this.className.replace(" hover","")},t[a].onclick=function(e){var n=(e=e||window.event).target||e.srcElement;o[n.tagName]||(window.location.href=$(this.id+"_a").href)}}function checkSynSignature(){"1"==$("to_signhtml").value?($("syn_signature").className="syn_signature",$("to_signhtml").value="0"):($("syn_signature").className="syn_signature_check",$("to_signhtml").value="1")}function searchpostbyusername(e,n){window.location.href="search.php?mod=forum&srchtxt="+e+"&srchuname="+n+"&searchsubmit=yes"}function removeVisitor(e,n){window.location="home.php?mod=space&uid="+n+"&do=index&view=admin&additional=removevlog",e.preventDefault(),e.stopPropagation()}