String.prototype.contains=function(a){return-1>2)+this.charCodeAt(b++);return a}; String.format=function(){for(var a=arguments[0],b=1;bc)b="",c=-2592E3;d.setTime(d.getTime()+1E3*c);document.cookie=escape(this.prefix+a)+"="+escape(b)+(d?"; expires="+d.toGMTString():"")+(this.path?"; path="+this.path:"/")+(this.domain?"; domain="+this.domain:"")},getCookie:function(a,b){a=this.prefix+a;var c=document.cookie.indexOf(a),d=document.cookie.indexOf(";",c);if(-1==c)return"";a=document.cookie.substring(c+ a.length+1,d>c?d:document.cookie.length);return b?a:unescape(a)},delCookie:function(a){a=this.prefix+a;var b=new Date;b.setTime(b.getTime()-1);document.cookie=a+"=; expires="+b.toGMTString()+(this.path?"; path="+this.path:"/")+(this.domain?"; domain="+this.domain:"")},addEvent:function(a,b,c,d){a=d?d:a;a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)},delEvent:function(a,b,c,d){a=d?d:a;a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+ b,c)},endEvent:function(a){(a=a?a:window.event)||(a=getEvent());if(!a)return null;a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;return a}};function getId(a){return a?"object"==typeof a?a:document.getElementById(a):null}function getTag(a){return"string"==typeof a?document.getElementsByTagName(a):null}function display(a){phpcom.$(a).style.display=""==phpcom.$(a).style.display?"none":""} function isUndefined(a){return"undefined"==typeof a||null==a?!0:!1}function undef(a,b){return"undefined"==typeof a||null==a?b:a}function preg_replace(a,b,c,d){d=d?d:"ig";for(var e=a.length,g=0;g",'"'],["&","<",">","""],a)}function strlen(a){return phpcom.isIE&&-1!=a.indexOf("\n")?a.replace(/\r?\n/g,"_").length:a.length} function empty(a){if(""===a||0===a||"0"===a||null===a||!1===a||"undefined"===typeof a)return!0;if("object"==typeof a){for(var b in a)return!1;return!0}return!1}function str_repeat(a,b){for(var c=[];0([^\x00]*?)<\/script>/ig,function(a,c,d){a=charset="";c.match(/\s*src\s*=\"([^\"]+?)\"/i)&&(a=RegExp.$1,d="");c.match(/\s*charset\s*=\"([^\"]+?)\"/i)&&(charset=RegExp.$1);c=-1!=c.indexOf("reload=");appendscript(a,d,c,charset);return""})} function appendscript(a,b,c,d){var e="Ajax"+(a+b).hashCode();if(c||!evalscripts.contains(e)){c&&phpcom.$(e)&&phpcom.$(e).parentNode.removeChild(phpcom.$(e));evalscripts.push(e);var g=document.createElement("script");g.type="text/javascript";g.id=e;try{a?(g.src=a,d&&(g.charset=d),g.onloadDone=!1,g.onload=function(){g.onloadDone=!0},g.readyState&&(g.onreadystatechange=function(){"loaded"!=g.readyState&&"complete"!=g.readyState||g.onloadDone||(g.onloadDone=!0)})):b&&(g.text=b),document.getElementsByTagName("head")[0].appendChild(g)}catch(f){}return!0}} var loadRecord={};function loadscript(a,b){if("undefined"==typeof loadRecord[a]){var c=document.createElement("script");c.type="text/javascript";try{c.src=a,b&&(c.charset=b),c.onloadDone=!1,c.onload=function(){c.onloadDone=!0},c.readyState&&(c.onreadystatechange=function(){"loaded"!=c.readyState&&"complete"!=c.readyState||c.onloadDone||(c.onloadDone=!0)}),document.getElementsByTagName("head")[0].appendChild(c),loadRecord[a]=!0}catch(d){}return!0}} function loadScript(a,b,c){var d=document.createElement("script");d.type="text/javascript";"undefined"!=typeof c&&c&&(d.charset=c);d.readyState?d.onreadystatechange=function(){if("loaded"==d.readyState||"complete"==d.readyState)d.onreadystatechange=null,b()}:d.onload=function(){b()};d.src=a;document.getElementsByTagName("head")[0].appendChild(d)} function loadcss(a){if("undefined"==typeof loadRecord[a]){var b=document.createElement("link");b.rel="stylesheet";b.type="text/css";try{b.href=a,document.getElementsByTagName("head")[0].appendChild(b),loadRecord[a]=!0}catch(c){}return!0}} function ajaxObject(a){var b={createXMLHttpRequest:function(){var a=!1;if(window.XMLHttpRequest)a=new XMLHttpRequest,a.overrideMimeType&&a.overrideMimeType("text/xml");else if(window.ActiveXObject)for(var b="Microsoft.XMLHTTP MSXML.XMLHTTP Microsoft.XMLHTTP Msxml2.XMLHTTP.7.0 Msxml2.XMLHTTP.6.0 Msxml2.XMLHTTP.5.0 Msxml2.XMLHTTP.4.0 MSXML2.XMLHTTP.3.0 MSXML2.XMLHTTP".split(" "),e=0;e/.exec(b.responseText);a&&a[1]&&(b.responseText= a[1].replace(/^\s+|\s+$/g,""))}catch(d){b.responseText='\u53d1\u751f\u5185\u90e8\u9519\u8bef\uff0c\u65e0\u6cd5\u663e\u793a\u5185\u5bb9'}else"JSON"==b.recvType&&(b.responseText=b.xmlhttp.responseText);b.waitId&&(b.waitId.style.display="none");"function"==typeof b.data&&b.data(b.responseText,b.xmlhttp.status);"function"==typeof b.callback&&b.callback(b.responseText,b.xmlhttp.status);delete b.xmlhttp}};b.loading=function(){!b.waitId||4==b.xmlhttp.readyState&& 200==b.xmlhttp.status||(b.waitid.style.display="",b.waitid.innerHTML='')};return b}function phpcomMenu(){this.active=[];this.timeouts=[];this.dragOffset=[];this.layer=0;this.zindex={window:1E4,menu:2E4,dialog:3E4,message:4E4};this.ie=phpcom.isIE;this.ie6=phpcom.isIE6;this.firefox=phpcom.isFirefox;this.opera=phpcom.isOpera;this.safari=phpcom.isSafari} phpcomMenu.prototype={show:function(a){var b=menu,c=isUndefined(a.ctrlid)?"object"==typeof a?null:a:a.ctrlid,d=isUndefined(a.showid)?c:a.showid,e=isUndefined(a.menuid)?d+"_menu":a.menuid,g=phpcom.$(c),f=phpcom.$(e);if(f){var h=isUndefined(a.type)?"menu":a.type,k=isUndefined(a.event)?"mouseover":a.event,n=isUndefined(a.pos)?"43":a.pos,m=isUndefined(a.layer)?1:a.layer,l=isUndefined(a.maxh)?600:a.maxh,p=isUndefined(a.duration)?2:a.duration,q=isUndefined(a.timeout)?500:a.timeout,t=isUndefined(a.cache)? 1:a.cache,r=isUndefined(a.drag)?"":a.drag,v=r&&phpcom.$(r)?phpcom.$(r):f,w=isUndefined(a.fade)?0:a.fade,u=isUndefined(a.mask)?0:a.mask;a=isUndefined(a.zindex)?this.zindex.menu:a.zindex;a=u?a+3E4:a;"undefined"==typeof b.active[m]&&(b.active[m]=[]);if("click"==k&&b.active[m].contains(e)&&"win"!=h)b.hide(e,h);else{"menu"==h&&this.hide(m,h);g&&!g.getAttribute("initialized")&&(g.setAttribute("initialized",!0),g.unselectable=!0,g.outfunc="function"==typeof g.onmouseout?g.onmouseout:null,g.onmouseout=function(){this.outfunc&& this.outfunc();3>p&&!b.timeouts[e]&&(b.timeouts[e]=setTimeout("menu.hide('"+e+"', '"+h+"')",q))},g.overfunc="function"==typeof g.onmouseover?g.onmouseover:null,g.onmouseover=function(a){b.cancel(a);this.overfunc&&this.overfunc();if("click"==k)clearTimeout(b.timeouts[e]),b.timeouts[e]=null;else for(var c in b.timeouts)b.timeouts[c]&&(clearTimeout(b.timeouts[c]),b.timeouts[c]=null)});if(!f.getAttribute("initialized")&&(f.setAttribute("initialized",!0),f.ctrlkey=c,f.mtype=h,f.layer=m,f.mask=u,f.style.position= "absolute",f.style.zIndex=a+m,f.style.direction="ltr",f.onclick=function(a){if(!a||b.ie)return window.event.cancelBubble=!0,window.event;a.stopPropagation();return a},3>p&&(1c?g:c)+"px";a.style.backgroundColor="#fff";a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=55)";a.style.opacity=.55}r&&(v.style.cursor="move",v.onmousedown=function(a){try{b.dragMenu(f,a,1)}catch(z){}});f.style.display= "";u&&(phpcom.$(e+"_mask").style.display="");if(w){var x=function(a){if(100==a)clearTimeout(b);else{f.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")";f.style.opacity=a/100;a+=10;var b=setTimeout(function(){x(a)},50)}};x(0);f.fade=!0}else f.fade=!1;"*"!=n&&this.setPosition(d,e,n);l&&f.scrollHeight>l&&(f.style.height=l+"px",b.opera?f.style.overflow="auto":f.style.overflowY="auto");p||setTimeout("menu.hide('"+e+"', '"+h+"')",q);if("menu"!=h&&b.ie6&&"IFRAME"==f.lastChild.tagName){b.ie6Mask(f); d=f.getElementsByTagName("*");n=!1;for(l=0;lb.layer&&(b.layer=m)}}},ie6Mask:function(a){var b=a.firstChild;a.lastChild.style.height=b.offsetHeight+"px";a.lastChild.style.width=b.offsetWidth+"px"},dragMenu:function(a,b,c){var d=menu;b=b?b:window.event;1==c?["TEXTAREA","INPUT","BUTTON","SELECT"].contains(d.ie?b.srcElement.tagName: b.target.tagName)||(d.dragOffset=[b.clientX,b.clientY],d.dragOffset[2]=parseInt(a.style.left),d.dragOffset[3]=parseInt(a.style.top),document.onmousemove=function(b){try{d.dragMenu(a,b,2)}catch(g){}},document.onmouseup=function(b){try{d.dragMenu(a,b,3)}catch(g){}},d.cancel(b)):2==c&&d.dragOffset[0]?(c=[b.clientX,b.clientY],a.style.left=d.dragOffset[2]+c[0]-d.dragOffset[0]+"px",a.style.top=d.dragOffset[3]+c[1]-d.dragOffset[1]+"px",d.cancel(b)):3==c&&(d.dragOffset=[],document.onmousemove=null,document.onmouseup= null)},hide:function(a,b){var c=menu;a=isUndefined(a)?"":a;b=isUndefined(b)?"menu":b;if(""==a)for(var d=1;d<=c.layer;d++)this.hide(d,b);else if("number"==typeof a)for(d in c.active[a])this.hide(c.active[a][d],b);else if("string"==typeof a){var e=phpcom.$(a);if(e&&(!b||e.mtype==b)){clearTimeout(c.timeouts[a]);var g=function(){e.cache?(e.style.display="none",e.mask&&(phpcom.$(a+"_mask").style.display="none")):(e.parentNode.removeChild(e),e.mask&&phpcom.$(a+"_mask").parentNode.removeChild(phpcom.$(a+ "_mask")));var b=[],d;for(d in c.active[e.layer])a!=c.active[e.layer][d]&&b.push(c.active[e.layer][d]);c.active[e.layer]=b};if(e.fade){var f=function(a){if(0==a)clearTimeout(b),g();else{e.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")";e.style.opacity=a/100;a-=10;var b=setTimeout(function(){f(a)},50)}};f(100)}else g()}}},cancel:function(a){(a=a?a:window.event)||(a=getEvent());if(!a)return null;a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation(): a.cancelBubble=!0;return a},setPosition:function(a,b,c){var d=menu,e=phpcom.$(a);a=b?phpcom.$(b):phpcom.$(a+"o");isUndefined(c)&&(c="43");b=parseInt(c.substr(0,1));var g=parseInt(c.substr(1,1)),f,h=0,k=f=0,n=0,m=0,l=0,p=0,q=0;if(!(!a||0m?(m=p,[1,4].contains(b)&&(m+=k)):m+t>x+ v&&h>=t&&(m=p-t,[2,3].contains(b)&&(m-=k));[1,2].contains(g)&&0>l?(l=q,[1,2].contains(b)&&(l+=n)):l+r>u+w&&f>=r&&(l=q-r,[3,4].contains(b)&&(l-=n));"210"==c&&(m+=69-k/2,l-=5,"TEXTAREA"==e.tagName&&(m-=k/2,l+=n/2));if(0==g||a.scrolly)d.ie6?0==g&&(l+=u):(a.scrolly&&(l-=u),a.style.position="fixed");m&&(a.style.left=m+"px");l&&(a.style.top=l+"px");0==g&&d.ie&&!document.documentElement.clientHeight&&(a.style.position="absolute",a.style.top=(document.body.clientHeight-a.clientHeight)/2+"px");a.style.clip&& !d.opera&&(a.style.clip="rect(auto, auto, auto, auto)")}},offsetPos:function(a){var b=0,c=0;if(a.getBoundingClientRect){a=a.getBoundingClientRect();var c=Math.max(document.documentElement.scrollTop,document.body.scrollTop),b=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),d=document.documentElement&&document.documentElement.clientWidth||document.body.clientWidth;"rtl"==document.documentElement.dir&&(b=b+d-d);b=a.left+b-document.documentElement.clientLeft;c=a.top+c-document.documentElement.clientTop}return{x:b, y:c}},initTable:function(a,b,c,d,e,g,f){d=d?d:"dialog";e=e?e:"fdrag_ctrl";g=g?g:"fbox_message_close";events=' style="cursor:move" onmousedown="menu.dragMenu(phpcom.$(\''+b+"'), event, 1)\"";f='';isUndefined(c)||(f=f+('
  • '+ c+"
  • ")+('
  • x
'));f=f+a+('
');this.ie6&&(f+=''); return f}};var menu=new phpcomMenu;function showMenu(a){menu.show(a)}function hideMenu(a,b){menu.hide(a,b)}function hideDialog(a){menu.hide(a,"dialog")}function hideWindow(a,b,c){b=isUndefined(b)?1:b;a="fbox_"+a;c=isUndefined(c)?1:c;menu.hide(a,"window");c&&phpcom.$(a)&&document.body.removeChild(phpcom.$(a));b&&hideMenu()} function checkall(a,b,c){b=b?b:"chkall";for(var d=0,e=0;e
\u70b9\u8fd9\u91cc\u590d\u5236\u5230\u526a\u8d34\u677f
', "\u590d\u5236\u4ee3\u7801","cancel");clip.glue("clipboard_button","clipboard_container")};b=isUndefined(b)?"/":b;if(window.clip)c();else{var d=document.createElement("script");d.src=b+"misc/js/ZeroClipboard.js";d.onloadDone=!1;d.onload=function(){d.onloadDone=!0;ZeroClipboard.setMoviePath(b+"misc/js/ZeroClipboard.swf");c()};d.onreadystatechange=function(){"loaded"!=d.readyState&&"complete"!=d.readyState||d.onloadDone||(d.onloadDone=!0,ZeroClipboard.setMoviePath(b+"misc/js/ZeroClipboard.swf"),c())}; document.body.appendChild(d)}}return!1}function thumbimg(a,b){}function zoomimg(a){} function showMessage(a,b,c,d,e){c=isUndefined(c)?"alert":c;b=isUndefined(b)?"\u8b66\u544a\u4fe1\u606f":b;a=isUndefined(a)?"\u51fa\u9519\u5566!":a;var g=1,f="",h=phpcom.$("fbox_message");h&&hideDialog("fbox_message");h=document.createElement("div");h.style.display="none";h.id="fbox_message";h.className="fwrap";try{document.body.insertBefore(h,null)}catch(n){}a=a.replace(/]*?>([^\x00]*?)<\/script>/ig,"");var k='
';"success"==c||"succeed"==c?(g=0,k+='
 '+ a+"
"):"error"==c?k+='
 '+a+"
":"info"==c?k+='
 '+a+"
":"alert"==c||"confirm"==c?k+='
 '+a+"
":(g=0,k+=a);k+="
";"none"!=c&&(k=k+("cancel"!=c?'
': '
')+("confirm"==c||"cancel"==c?'
':"
"));phpcom.isIE||(f='');a=menu.initTable(k+'
',"fbox_message",b,"dialog",null,null,"mcontent");h.innerHTML=f+a;phpcom.$("dialog_submit_button")&&(phpcom.$("dialog_submit_button").onclick=function(){"function"==typeof d?d():eval(d);hideDialog("fbox_message")},phpcom.$("dialog_cancel_button")|| (phpcom.$("fbox_message_close")&&(phpcom.$("fbox_message_close").onclick=phpcom.$("dialog_submit_button").onclick),phpcom.$("fdrag_ctrl")&&(phpcom.$("fdrag_ctrl").ondblclick=phpcom.$("dialog_submit_button").onclick)));phpcom.$("dialog_cancel_button")&&(phpcom.$("dialog_cancel_button").onclick=function(){"function"==typeof e?e():eval(e);hideDialog("fbox_message")},phpcom.$("fbox_message_close")&&(phpcom.$("fbox_message_close").onclick=phpcom.$("dialog_cancel_button").onclick),phpcom.$("fdrag_ctrl")&& (phpcom.$("fdrag_ctrl").ondblclick=phpcom.$("dialog_cancel_button").onclick));menu.show({cache:0,menuid:"fbox_message",type:"dialog",pos:"00",zindex:menu.zindex.message,duration:3,drag:"fdrag_ctrl",mask:g});try{phpcom.$("dialog_submit_button")&&phpcom.$("dialog_submit_button").focus()}catch(n){}return!1} function showDialog(a,b,c){c=isUndefined(c)?!1:c;var d=phpcom.$("fbox_dialog");d&&menu.hide("fbox_dialog","dialog");d=document.createElement("div");d.style.display="none";d.id="fbox_dialog";d.className="fwrap";try{document.body.insertBefore(d,null)}catch(e){}a=menu.initTable(a,"fbox_dialog",b,"dialog","fbox_dialog_drag","fbox_dialog_close");d.innerHTML=a;menu.show({cache:0,menuid:"fbox_dialog",type:"dialog",pos:"00",zindex:menu.zindex.dialog,duration:3,drag:"show_dialog_drag",mask:c});return!1} function openDialog(a,b,c,d,e,g,f){b=isUndefined(b)?"frmae":b;c=isUndefined(c)?"":c;g=isUndefined(g)?0:g;f=isUndefined(f)?0:f;f="fbox_dialog_"+b;var h="dialog_ifrmae_"+b;d=isUndefined(d)?300:d;e=isUndefined(e)?200:e;var k=phpcom.$(f);k&&menu.hide(f,"dialog");k=document.createElement("div");k.style.display="none";k.id=f;k.className="fwrap";try{document.body.insertBefore(k,null)}catch(m){}c=menu.initTable('
',f,c,"dialog","fbox_drag_"+b,"fbox_close_"+b);k.innerHTML=c;var n=phpcom.$(h);n.src=a;phpcom.addEvent(n,"load",function(){phpcom.$("dialog_frame_loader").style.display="none";n.style.display=""});menu.show({cache:0,menuid:f,type:"dialog",pos:"00",zindex:menu.zindex.dialog,duration:3,drag:"dialog_drag_"+b,mask:g});return!1} function showWindow(a,b,c,d,e){c=isUndefined(c)?"get":c;d=isUndefined(d)?1:d;b=isUndefined(b)?c:b;e=isUndefined(e)?0:e;var g="fbox_"+b,f=phpcom.$(g),h="ajax_content_"+b,k=null,n=null,m=function(){"get"==c?(f.url=a,a+=(0')},100))},l=function(){clearTimeout(n);phpcom.$("fdrag_"+ b)&&(k="fdrag_"+b);for(var a=f.getElementsByTagName("*"),c=0;c',g,null,"window",null,null,h);f.innerHTML=q;"html"==c?(phpcom.$(h).innerHTML=a,l(),p()):m()}phpcom.endEvent()} function ajaxpost(a,b,c,d){c=phpcom.$(c);var e=phpcom.$("ajaxpostframe");phpcom.$(a);var g=function(){var a="";try{a=phpcom.$("ajaxpostframe").contentWindow.document.XMLDocument.text}catch(m){try{a=phpcom.$("ajaxpostframe").contentWindow.document.documentElement.firstChild.wholeText;if("undefined"==typeof a){var f=phpcom.$("ajaxpostframe").contentDocument.documentElement;f.firstChild&&f.removeChild(f.firstChild);a=f.textContent}if("undefined"==typeof a){var a=phpcom.$("ajaxpostframe").contentWindow.document.documentElement.innerText, n=//.exec(a);n&&n[1]&&(a=n[1].replace(/^\s+|\s+$/g,""))}}catch(l){try{a=phpcom.$("ajaxpostframe").contentWindow.document.documentElement.firstChild.nodeValue}catch(p){a="\u5185\u90e8\u9519\u8bef\uff0c\u65e0\u6cd5\u663e\u793a\u6b64\u5185\u5bb9"}}}c&&(c.disabled=!1);""!=a&&(a=parsescript(a));a&&b&&("onerror"==b?(a=msg.replace(/]*?>([^\x00]*?)<\/script>/ig,""),""!==a&&showMessage(a,"\u9519\u8bef\u4fe1\u606f","alert")):"onerror"!=b&&phpcom.$(b)&&(phpcom.$(b).innerHTML= a));"function"==typeof d?d(a):d&&eval(d);e.loading=0;phpcom.delEvent(e,"load",g);setTimeout(function(){document.body.removeChild(e.parentNode)},200)};if(!e){var f=document.createElement("div");f.style.display="none";f.innerHTML='';try{document.body.insertBefore(f,document.body.firstChild)}catch(h){}e=phpcom.$("ajaxpostframe")}else if(e.loading)return!1;f=phpcom.$(a).getAttribute("action").replace(/\&inajax\=1/g, "");phpcom.$(a).setAttribute("action",f+(0<=f.indexOf("?")?"&inajax=1":"?inajax=1"));phpcom.$(a).target="ajaxpostframe";phpcom.$(a).submit();phpcom.addEvent(e,"load",g);c&&(c.disabled=!0);phpcom.endEvent();return!1} function ajaxget(a,b,c,d){c=ajaxObject();var e=(new Date).getTime();a+=0<=a.indexOf("?")?"&t="+e:"?t="+e;a=a.replace(/\&inajax\=1/g,"")+"&inajax=1";c.get(a,function(a){var c="";!isUndefined(b)&&phpcom.$(b)?(c=parsescript(a),""!=c&&(phpcom.$(b).innerHTML=c,phpcom.$(b).style.display="")):""!=a&&(c=parsescript(a));isUndefined(d)||"function"!=typeof d?isUndefined(d)||eval(d):d(c)});return!1} function getJSON(a,b,c){return"undefined"!=typeof jQuery?jQuery.ajax({url:a,type:"GET",data:"function"===typeof b?null:b,dataType:"json",contentType:"application/json",success:"function"===typeof b?b:c}):ajaxJSON(a,b,c)}function getJSONP(a,b,c){return"undefined"!=typeof jQuery?jQuery.ajax({url:a,type:"GET",data:"function"===typeof b?null:b,dataType:"jsonp",jsonp:"callback",contentType:"application/json",success:"function"===typeof b?b:c}):ajaxJSON(a,b,c)} function ajaxJSON(a,b,c){var d=ajaxObject("JSON"),e=(new Date).getTime();a+=0<=a.indexOf("?")?"&t="+e:"?t="+e;a=a.replace(/\&inajax\=1/g,"")+"&inajax=1";d.get(a,function(a){a=parseJSON(a);"function"===typeof b&&b(a);"function"===typeof c&&c(a)});return!1} function parseJSON(a){if(window.JSON&&window.JSON.parse)return window.JSON.parse(a);var b=/^[\],:{}\s]*$/,c=/(?:^|:|,)(?:\s*\[)+/g,d=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,e=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g;return"string"===typeof a&&(a=(a+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))&&b.test(a.replace(d,"@").replace(e,"]").replace(c,""))?(new Function("return "+a))():a} function ctrlEnter(a,b,c){isUndefined(c)&&(c=0);return(a.ctrlKey||c)&&13==a.keyCode?(phpcom.$(b).click(),!1):!0}function checkUserInput(a){-1!=a.className.indexOf("gray")?(a.value="",a.className=a.className.replace("gray","black")):""==a.value&&(a.value=a.defaultValue="\u8bf7\u8f93\u7528\u6237\u540d",-1==a.className.indexOf("black")?a.className+=" gray":a.className=a.className.replace("black","gray"))} function checkSearchFocus(a){a=phpcom.$(a);"\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u5b57"==a.value&&(a.value="")}function checkSearchInput(a){""==a.value?a.value="\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u5b57":"\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u5b57"==a.value&&(a.value="")}function updateCaptcha(a,b){b||(b="");a.src=b+"apps/misc.php?action=captcha&t="+(new Date).getTime()} function checkCaptcha(a,b,c){var d=phpcom.$(a).value.trim();b||(b="");c||(c="checkCaptcha");if(""!=d){var e=phpcom.$(c);e.style.display="";var g=e.getElementsByTagName("IMG")[0];4!=d.length?g?g.src=b+"misc/images/common/chkerr.gif":e.className="chkerr":(c=b+"apps/misc.php?action=captcha&inajax=1&token=captcha&check=yes&verifycode="+(phpcom.isIE&&"utf-8"==document.charset?encodeURIComponent(d):d),d=ajaxObject(),d.setWaiting(a),d.get(c,function(a){"succeed"==a.substr(0,7)?g?g.src=b+"misc/images/common/chksuc.gif": e.className="chksuc":g?g.src=b+"misc/images/common/chkerr.gif":e.className="chkerr"}))}}function updateQuestionAnswer(a){ajaxObject().get("apps/misc.php?action=questions&inajax=1&update=yes",function(b){phpcom.$(a).innerHTML=b})}var fixedLayerIndex=99900; function displayFixedAdLayer(a,b,c,d){fixedLayerIndex++;var e=document.createElement("div");setTimeout(function(){try{document.body.insertBefore(e,null)}catch(g){}},100);e.style.position=phpcom.isIE6?"absolute":"fixed";e.style.zIndex=fixedLayerIndex;0==d?(e.style.bottom="0px",e.style.left="0px"):1==d?(e.style.bottom="0px",e.style.right="0px"):2==d?(e.style.top="120px",e.style.left="5px"):(e.style.top="120px",e.style.right="5px");b&&(e.style.width=b+"px");c&&(e.style.height=c+"px");e.innerHTML=a} var browser={trident:-1c)b="",c=-2592E3;e.setTime(e.getTime()+ 1E3*c);d=d?d:this.domain;document.cookie=escape(this.prefix+a)+"="+escape(b)+(e?"; expires="+e.toGMTString():"")+"; path=/"+(d?"; domain="+d:"")},get:function(a){a=this.prefix+a;var b="";if(a=document.cookie.match("(?:^| )"+a+"(?:(?:=([^;]*))|;|$)"))b=a[1]?unescape(a[1]):"";return b},del:function(a,b){this.set(a,"",-1,b)}}}()}; function getMobileAgentUrl(){if("undefined"!=typeof document.querySelector){var a;if(a=document.querySelector("link[rel=alternate]")){if(a=a.getAttribute("href"))return a}else if(a=document.querySelector("meta[name=mobile-agent], meta[http-equiv=mobile-agent]"))if(a=a.getAttribute("content"))if(a=/url=(.+)$/ig.exec(a))return a[1]}return!1}(function(){if(!browser.iPad&&browser.mobile&&"OK"!=browser.cookie.get("request")){var a=getMobileAgentUrl();a&&(window.location.href=a)}})(); (function(){var a=document.createElement("script");"https"===window.location.protocol.split(":")[0]?a.src="http://zz.bdstatic.com/linksubmit/push.js":a.src="http://push.zhanzhang.baidu.com/push.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();