Files
DzzOffice/static/js/common.js
小胡 53be1fecb4 更新内容:
系统设置新增功能
1. 是否启用登录密码加密:
在许多现代系统中,登录密码加密是默认启用的,以确保用户密码的安全性。所以新增了一个系统配置项,允许管理员决定是否启用登录密码的加密传输。这一功能增强了用户密码的安全性,防止密码泄露风险。
2. UID登录(允许通过UID的方式登录验证):
引入UID(用户唯一标识符)登录方式,除了传统的用户名/邮箱/手机号登录外,用户还可以通过其UID进行登录验证,为系统访问提供另一种灵活的身份验证方式。
3. 用户在线时间更新时长:
管理员可以自定义更新用户在线时间的时间频率,这有助于更准确地反映用户的活跃状态,并对系统资源的使用进行优化。
4. 图片处理库类型:
系统新增了图片处理库类型的选择功能,允许管理员根据实际需求选择合适的图像处理库来处理缩略图和水印,以满足不同的性能和效果需求。
新增性能优化栏
1. 禁止浏览器缓冲:
通过此设置,管理员可以控制是否禁止浏览器对页面内容进行缓存。在某些场景下,禁用缓存可以提高页面的实时性和准确性。
2. 在线保持时间:
设置用户会话(session)的在线保持时间,即用户在不进行任何操作后,多久后会被视为离线。这有助于管理系统的会话资源,避免资源浪费。
3. 关闭session机制:   提供选项关闭系统的session管理机制。在某些特殊应用场景下,可能不需要使用session来跟踪用户状态,关闭session可以减少服务器负担,提高性能。
系统工具新增文件权限检查栏:    系统工具中新增了文件权限检查功能,帮助管理员快速识别和修复文件权限问题,确保系统的正常运行和数据安全。
优化提示消息框UI:
对系统的提示消息框进行了UI优化,使其更加美观、易用,提升了用户的使用体验。
压缩css、js代码优化前端性能
对前端的CSS和JS代码进行了压缩处理,减少了文件体积,加快了加载速度,从而提升了前端性能。
2024-07-21 18:38:53 +08:00

9 lines
58 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @version DzzOffice 1.1 20140705
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
var _header={init:function(e){_header.formhash=e},loging_close:function(){var e='<span style="font-size:1.28rem">您确定要注销登录?</span>';showDialog(e,"confirm","",function(){jQuery.get("user.php?mod=login&op=logging&action=logout&formhash="+_header.formhash+"&t="+(new Date).getTime(),function(e){window.location.reload()})})},leftTopmenu:function(e,t){var n=document.documentElement.clientWidth;if(t||(t=jQuery(".bs-left-container").is(":visible")?"hide":"show"),"hide"===t)jQuery(".bs-left-container").hide(),jQuery(".left-drager").hide(),jQuery(".bs-main-container").css("marginLeft",0),jQuery(e).removeClass("leftTopmenu");else if("show"===t){jQuery(".bs-left-container").show();var i=jQuery(".bs-left-container").outerWidth(!0);i<20&&(i=20,jQuery(".bs-left-container").width(i),jQuery(".left-drager").css({left:i,cursor:"w-resize"})),jQuery(".left-drager").show(),jQuery(".bs-main-container").css("marginLeft",n<768?0:i),jQuery(e).addClass("leftTopmenu")}}},BROWSER={},USERAGENT=navigator.userAgent.toLowerCase();browserVersion({ie:"msie",edge:"edge",rv:"rv",firefox:"",chrome:"",opera:"",safari:"",mozilla:"",webkit:"",maxthon:"",qq:"qqbrowser",ie11:"trident"}),BROWSER.ie11?(BROWSER.ie=11,BROWSER.rv=11):BROWSER.rv=0,BROWSER.safari&&(BROWSER.firefox=!0),BROWSER.opera=BROWSER.opera?opera.version():0,HTMLNODE=document.getElementsByTagName("head")[0].parentNode,BROWSER.ie&&(BROWSER.iemode=parseInt(void 0!==document.documentMode?document.documentMode:BROWSER.ie),HTMLNODE.className="ie_all ie"+BROWSER.iemode);var CSSLOADED=[],JSLOADED=[],JSMENU=[];JSMENU.active=[],JSMENU.timer=[],JSMENU.drag=[],JSMENU.layer=0,JSMENU.zIndex={win:11200,menu:11300,dialog:11400,prompt:11500},JSMENU.float="";var CURRENTSTYPE=null,creditnotice=isUndefined(creditnotice)?"":creditnotice,cookiedomain=isUndefined(cookiedomain)?"":cookiedomain,cookiepath=isUndefined(cookiepath)?"":cookiepath,EXTRAFUNC=[],EXTRASTR="";EXTRAFUNC.showmenu=[];var USERABOUT_BOX=!0,USERCARDST=null,CLIPBOARDSWFDATA="",NOTICETITLE=[],NOTICECURTITLE=document.title,CurrentActive;function $C(e,t,n){var i=[];if(n=n||"*",(t=t||document).getElementsByClassName){var o=t.getElementsByClassName(e);if("*"!=n)for(var a=0,r=o.length;a<r;a++)o[a].tagName.toLowerCase()==n.toLowerCase()&&i.push(o[a]);else i=o}else{o=t.getElementsByTagName(n);var c=new RegExp("(^|\\s)"+e+"(\\s|$)");for(a=0,r=o.length;a<r;a++)c.test(o[a].className)&&i.push(o[a])}return i}function _attachEvent(e,t,n,i){i=i||e,e.addEventListener?e.addEventListener(t,n,!1):i.attachEvent&&e.attachEvent("on"+t,n)}function _detachEvent(e,t,n,i){i=i||e,e.removeEventListener?e.removeEventListener(t,n,!1):i.detachEvent&&e.detachEvent("on"+t,n)}function browserVersion(types){var other=1;for(i in types){var v=types[i]?types[i]:i;if(-1!=USERAGENT.indexOf(v)){var re=new RegExp(v+"(\\/|\\s|:)([\\d\\.]+)","ig"),matches=re.exec(USERAGENT),ver=null!=matches?matches[2]:0;other=0!==ver&&"mozilla"!=v?0:other}else var ver=0;eval("BROWSER."+i+"= ver")}BROWSER.other=other}function getEvent(){if(document.all)return window.event;for(func=getEvent.caller;null!=func;){var e=func.arguments[0];if(e&&(e.constructor==Event||e.constructor==MouseEvent||"object"==typeof e&&e.preventDefault&&e.stopPropagation))return e;func=func.caller}return null}function isUndefined(e){return void 0===e}function in_array(e,t){if("string"==typeof e||"number"==typeof e)for(var n in t)if(t[n]==e)return!0;return!1}function formatSize(e){var t=-1;do{e/=1024,t++}while(e>99);return Math.max(e,0).toFixed(1)+["kB","MB","GB","TB","PB","EB"][t]}function trim(e){return(e+"").replace(/(\s+)$/g,"").replace(/^\s+/g,"")}function strlen(e){return BROWSER.ie&&-1!=e.indexOf("\n")?e.replace(/\r?\n/g,"_").length:e.length}function mb_strlen(e){for(var t=0,n=0;n<e.length;n++)t+=e.charCodeAt(n)<0||e.charCodeAt(n)>255?"utf-8"==charset?3:2:1;return t}function mb_cutstr(e,t,n){var i=0,o="";t-=(n=""==n||n?n:"...").length;for(var a=0;a<e.length;a++){if((i+=e.charCodeAt(a)<0||e.charCodeAt(a)>255?"utf-8"==charset?3:2:1)>t){o+=n;break}o+=e.substr(a,1)}return o}function strip_tags(e,t){t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return e.replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""})}function preg_replace(e,t,n,i){i=i||"ig";for(var o=e.length,a=0;a<o;a++)re=new RegExp(e[a],i),n=n.replace(re,"string"==typeof t?t:t[a]?t[a]:t[0]);return n}function htmlspecialchars(e){return preg_replace(["&","<",">",'"'],["&","<",">",'"'],e)}function display(e){var t=document.getElementById(e);t.style.visibility?t.style.visibility="visible"==t.style.visibility?"hidden":"visible":t.style.display=""==t.style.display?"none":""}function checkall(e,t,n){n=n||"chkall";count=0;for(var i=0;i<e.elements.length;i++){var o=e.elements[i];o.name&&o.name!=n&&!o.disabled&&(!t||t&&o.name.match(t))&&(o.checked=e.elements[n].checked,o.checked&&count++)}return count}function setcookie(e,t,n,i,o,a){if((""==t||n<0)&&(t="",n=-2592e3),n){var r=new Date;r.setTime(r.getTime()+1e3*n)}o=o||cookiedomain,i=i||cookiepath,document.cookie=escape(cookiepre+e)+"="+escape(t)+(r?"; expires="+r.toGMTString():"")+(i?"; path="+i:"/")+(o?"; domain="+o:"")+(a?"; secure":"")}function getcookie(e,t){e=cookiepre+e;var n=document.cookie.indexOf(e),i=document.cookie.indexOf(";",n);if(-1==n)return"";var o=document.cookie.substring(n+e.length+1,i>n?i:document.cookie.length);return t?o:unescape(o)}function Ajax(e,t){var n=new Object;return n.loading=__lang.please_wait,n.recvType=e||"XML",n.waitId=t?document.getElementById(t):null,n.resultHandle=null,n.sendString="",n.targetUrl="",n.setLoading=function(e){null!=e&&(n.loading=e)},n.setRecvType=function(e){n.recvType=e},n.setWaitId=function(e){n.waitId="object"==typeof e?e:document.getElementById(e)},n.createXMLHttpRequest=function(){var e=!1;if(window.XMLHttpRequest)(e=new XMLHttpRequest).overrideMimeType&&e.overrideMimeType("text/xml");else if(window.ActiveXObject)for(var t=["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"],n=0;n<t.length;n++)try{if(e=new ActiveXObject(t[n]))return e}catch(e){}return e},n.XMLHttpRequest=n.createXMLHttpRequest(),n.showLoading=function(){!n.waitId||4==n.XMLHttpRequest.readyState&&200==n.XMLHttpRequest.status||(n.waitId.style.display="",n.waitId.innerHTML='<span><img src="'+IMGDIR+'/loading.gif" class="vm"> '+n.loading+"</span>")},n.processHandle=function(){if(4==n.XMLHttpRequest.readyState&&200==n.XMLHttpRequest.status)if(n.waitId&&(n.waitId.style.display="none"),"HTML"==n.recvType)n.resultHandle(n.XMLHttpRequest.responseText,n);else if("XML"==n.recvType)n.XMLHttpRequest.responseXML&&n.XMLHttpRequest.responseXML.lastChild&&"parsererror"!=n.XMLHttpRequest.responseXML.lastChild.localName?n.resultHandle(n.XMLHttpRequest.responseXML.lastChild.firstChild.nodeValue,n):n.resultHandle('<a href="'+n.targetUrl+'" target="_blank" style="color:red">'+__lang.internal_error_unable_display_content+"</a>",n);else if("JSON"==n.recvType){var e=null;try{e=new Function("return ("+n.XMLHttpRequest.responseText+")")()}catch(t){e=null}n.resultHandle(e,n)}},n.get=function(e,t){e=hostconvert(e),setTimeout(function(){n.showLoading()},250),n.targetUrl=e,n.XMLHttpRequest.onreadystatechange=n.processHandle,n.resultHandle=t;var i=isUndefined(i)?0:i;window.XMLHttpRequest?(n.XMLHttpRequest.open("GET",n.targetUrl),n.XMLHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.XMLHttpRequest.send(null)):(n.XMLHttpRequest.open("GET",e,!0),n.XMLHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.XMLHttpRequest.send())},n.post=function(e,t,i){e=hostconvert(e),setTimeout(function(){n.showLoading()},250),n.targetUrl=e,n.sendString=t,n.XMLHttpRequest.onreadystatechange=n.processHandle,n.resultHandle=i,n.XMLHttpRequest.open("POST",e),n.XMLHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.XMLHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.XMLHttpRequest.send(n.sendString)},n.getJSON=function(e,t){n.setRecvType("JSON"),n.get(e+"&ajaxdata=json",t)},n.getHTML=function(e,t){n.setRecvType("HTML"),n.get(e+"&ajaxdata=html",t)},n}function getHost(e){var t="null";void 0!==e&&null!=e||(e=window.location.href);var n=e.match(/^\w+\:\/\/([^\/]*).*/);return void 0!==n&&null!=n&&(t=n[1]),t}function hostconvert(e){e.match(/^https?:\/\//)||(e=SITEURL+e);var t=getHost(e),n=getHost().toLowerCase();return t&&n!=t&&(e=e.replace(t,n)),e}function newfunction(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);return function(n){return doane(n),window[e].apply(window,t),!1}}function evalscript(e){if(-1==e.indexOf("<script"))return e;for(var t=/<script[^\>]*?>([^\x00]*?)<\/script>/gi,n=[];n=t.exec(e);){var i=/<script[^\>]*?src=\"([^\>]*?)\"[^\>]*?(reload=\"1\")?(?:charset=\"([\w\-]+?)\")?><\/script>/i,o=[];(o=i.exec(n[0]))?appendscript(o[1],"",o[2],o[3]):(o=(i=/<script(.*?)>([^\x00]+?)<\/script>/i).exec(n[0]))&&appendscript("",o[2],-1!=o[1].indexOf("reload="))}return e}BROWSER.firefox&&window.HTMLElement&&(HTMLElement.prototype.__defineGetter__("innerText",function(){for(var e="",t=this.childNodes,n=0;n<t.length;n++)1==t[n].nodeType?e+="BR"==t[n].tagName?"\n":t[n].innerText:3==t[n].nodeType&&(e+=t[n].nodeValue);return e}),HTMLElement.prototype.__defineSetter__("innerText",function(e){this.textContent=e}),HTMLElement.prototype.__defineSetter__("outerHTML",function(e){var t=this.ownerDocument.createRange();t.setStartBefore(this);var n=t.createContextualFragment(e);return this.parentNode.replaceChild(n,this),e}),HTMLElement.prototype.__defineGetter__("outerHTML",function(){for(var e,t=this.attributes,n="<"+this.tagName.toLowerCase(),i=0;i<t.length;i++)(e=t[i]).specified&&(n+=" "+e.name+'="'+e.value+'"');return this.canHaveChildren?n+">"+this.innerHTML+"</"+this.tagName.toLowerCase()+">":n+">"}),HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){switch(this.tagName.toLowerCase()){case"area":case"base":case"basefont":case"col":case"frame":case"hr":case"img":case"br":case"input":case"isindex":case"link":case"meta":case"param":return!1}return!0})),jQuery(".js-popbox").each(function(){jQuery(this).hasClass("disabled")||(jQuery(this).popbox(),jQuery("[data-bs-toggle='tooltip']").tooltip())}),"onfocusin"in document?(document.onfocusin=function(){CurrentActive=!0},document.onfocusout=function(){CurrentActive=!1}):(window.onfocus=function(){CurrentActive=!0},window.onblur=function(){CurrentActive=!1});var safescripts={},evalscripts=[];function safescript(id,call,seconds,times,timeoutcall,endcall,index){seconds=seconds||1e3,times=times||0;var checked=!0;try{"function"==typeof call?call():eval(call)}catch(e){checked=!1}if(checked)try{index=(index||1)-1,safescripts[id][index].si&&clearInterval(safescripts[id][index].si),"function"==typeof endcall?endcall():eval(endcall)}catch(e){}else safescripts[id]&&index?(index=(index||1)-1,safescripts[id][index].times++,safescripts[id][index].times>=times&&(clearInterval(safescripts[id][index].si),"function"==typeof timeoutcall?timeoutcall():eval(timeoutcall))):(safescripts[id]=safescripts[id]||[],safescripts[id].push({times:0,si:setInterval(function(){safescript(id,call,seconds,times,timeoutcall,endcall,safescripts[id].length)},seconds)}))}function appendscript(e,t,n,i){var o=dhash(e+t);if(n||!in_array(o,evalscripts)){n&&document.getElementById(o)&&document.getElementById(o).parentNode.removeChild(document.getElementById(o)),evalscripts.push(o);var a=document.createElement("script");a.type="text/javascript",a.setAttribute("ajaxappend","1"),a.id=o,a.charset=i||(BROWSER.firefox?document.characterSet:document.charset);try{e?(a.src=e,a.onloadDone=!1,a.onload=function(){a.onloadDone=!0,JSLOADED[e]=1},a.onreadystatechange=function(){"loaded"!=a.readyState&&"complete"!=a.readyState||a.onloadDone||(a.onloadDone=!0,JSLOADED[e]=1)}):t&&(a.text=t),document.getElementsByTagName("head")[0].appendChild(a)}catch(e){}}}function stripscript(e){return e.replace(/<script.*?>.*?<\/script>/gi,"")}function ajaxupdateevents(e,t){t=t||"A";var n=e.getElementsByTagName(t);for(k in n){ajaxupdateevent(n[k])}}function ajaxupdateevent(e){if("object"==typeof e&&e.getAttribute&&e.getAttribute("ajaxtarget")){e.id||(e.id=Math.random());var t=e.getAttribute("ajaxevent")?e.getAttribute("ajaxevent"):"click";_attachEvent(e,t,newfunction("ajaxget",e.getAttribute("ajaxurl")?e.getAttribute("ajaxurl"):e.href,e.getAttribute("ajaxtarget"),e.getAttribute("ajaxwaitid"),e.getAttribute("ajaxloading"),e.getAttribute("ajaxdisplay"))),e.getAttribute("ajaxfunc")&&(e.getAttribute("ajaxfunc").match(/(\w+)\((.+?)\)/),_attachEvent(e,t,newfunction(RegExp.$1,RegExp.$2)))}}function ajaxget(url,showid,waitid,loading,display,recall){waitid=null==waitid?showid:waitid;var x=new Ajax;x.setLoading(loading),x.setWaitId(waitid),x.display=void 0===display||null==display?"":display,x.showId=document.getElementById(showid),"#"==url.substr(strlen(url)-1)&&(url=url.substr(0,strlen(url)-1),x.autogoto=1);var url=url+"&inajax=1&ajaxtarget="+showid;url&&-1==url.indexOf("?")&&(url=url.replace(/&/i,"?")),x.get(url,function(s,x){var evaled=!1;-1!=s.indexOf("ajaxerror")&&(evalscript(s),evaled=!0),evaled||"undefined"!=typeof ajaxerror&&ajaxerror||x.showId&&(x.showId.style.display=x.display,ajaxinnerhtml(x.showId,s),ajaxupdateevents(x.showId),x.autogoto&&scroll(0,x.showId.offsetTop)),ajaxerror=null,recall&&"function"==typeof recall?recall():recall&&eval(recall),evaled||evalscript(s)})}function ajaxpost(formid,showid,waitid,showidclass,submitbtn,recall){var waitid=null==waitid?showid:""!==waitid?waitid:"",showidclass=showidclass||"",ajaxframeid="ajaxframe",ajaxframe=document.getElementById(ajaxframeid),curform=document.getElementById(formid),formtarget=curform.target,handleResult=function(){var s="",evaled=!1;showloading("none");try{s=document.getElementById(ajaxframeid).contentWindow.document.XMLDocument.text}catch(e){try{s=document.getElementById(ajaxframeid).contentWindow.document.documentElement.firstChild.wholeText}catch(e){try{s=document.getElementById(ajaxframeid).contentWindow.document.documentElement.firstChild.nodeValue}catch(e){s=__lang.internal_error_unable_display_content}}}""!=s&&-1!=s.indexOf("ajaxerror")&&(evalscript(s),evaled=!0),showidclass&&("onerror"!=showidclass?document.getElementById(showid).className=showidclass:(showError(s),ajaxerror=!0)),submitbtn&&(submitbtn.disabled=!1),evaled||"undefined"!=typeof ajaxerror&&ajaxerror||ajaxinnerhtml(document.getElementById(showid),s),ajaxerror=null,curform&&(curform.target=formtarget),"function"==typeof recall?recall():eval(recall),evaled||evalscript(s),ajaxframe.loading=0,!BROWSER.firefox||BROWSER.safari?document.getElementById("append_parent").removeChild(ajaxframe.parentNode):setTimeout(function(){document.getElementById("append_parent").removeChild(ajaxframe.parentNode)},100)};if(ajaxframe){if(ajaxframe.loading)return!1}else{var div=document.createElement("div");div.style.display="none",div.innerHTML='<iframe name="'+ajaxframeid+'" id="'+ajaxframeid+'" loading="1"></iframe>',document.getElementById("append_parent").appendChild(div),ajaxframe=document.getElementById(ajaxframeid)}_attachEvent(ajaxframe,"load",handleResult),showloading(),curform.target=ajaxframeid;var action=curform.getAttribute("action");action=hostconvert(action).replace(/(&|&|\?)inajax\=1/g,"");var s=-1!=action.indexOf("?")?"&":"?";return curform.action=action+s+"inajax=1",curform.submit(),submitbtn&&(submitbtn.disabled=!0),doane(),!1}function ajaxmenu(ctrlObj,timeout,cache,duration,pos,recall,idclass,contentclass){if(ctrlObj.getAttribute("mid")){var ctrlid=ctrlObj.getAttribute("mid");ctrlObj.id||(ctrlObj.id="ajaxid_"+Math.random())}else{var ctrlid=ctrlObj.id;ctrlid||(ctrlObj.id="ajaxid_"+Math.random())}var menuid=ctrlid+"_menu",menu=document.getElementById(menuid);isUndefined(timeout)&&(timeout=3e3),isUndefined(cache)&&(cache=1),isUndefined(pos)&&(pos="43"),isUndefined(duration)&&(duration=timeout>0?0:3),isUndefined(idclass)&&(idclass="p_pop"),isUndefined(contentclass)&&(contentclass="p_opt");var func=function(){showMenu({ctrlid:ctrlObj.id,menuid:menuid,duration:duration,timeout:timeout,pos:pos,cache:cache,layer:2}),"function"==typeof recall?recall():eval(recall)};if(menu)""==menu.style.display?hideMenu(menuid):func();else{menu=document.createElement("div"),menu.id=menuid,menu.style.display="none",menu.className=idclass,menu.innerHTML='<div class="'+contentclass+'" id="'+menuid+'_content"></div>',document.getElementById("append_parent").appendChild(menu);var url=isUndefined(ctrlObj.attributes.shref)?isUndefined(ctrlObj.href)?ctrlObj.attributes.href.value:ctrlObj.href:ctrlObj.attributes.shref.value;url+=(-1!=url.indexOf("?")?"&":"?")+"ajaxmenu=1",ajaxget(url,menuid+"_content","ajaxwaitid","","",func)}doane()}function dhash(e,t){t=t||32;var n=0,i=0,o="";for(filllen=t-e.length%t,i=0;i<filllen;i++)e+="0";for(;n<e.length;)o=stringxor(o,e.substr(n,t)),n+=t;return o}function stringxor(e,t){for(var n="",i=Math.max(e.length,t.length),o=0;o<i;o++){var a=e.charCodeAt(o)^t.charCodeAt(o);n+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52)}return n}function showloading(e,t){e=e||"block",t=t||__lang.please_wait;document.getElementById("ajaxwaitid").innerHTML=t,document.getElementById("ajaxwaitid").style.display=e}function ajaxinnerhtml(e,t){if("TBODY"!=e.tagName)e.innerHTML=t;else{for(;e.firstChild;)e.firstChild.parentNode.removeChild(e.firstChild);var n=document.createElement("DIV");n.id=e.id+"_div",n.innerHTML='<table><tbody id="'+e.id+'_tbody">'+t+"</tbody></table>",document.getElementById("append_parent").appendChild(n);for(var i=n.getElementsByTagName("TR"),o=i.length,a=0;a<o;a++)e.appendChild(i[0]);var r=n.getElementsByTagName("INPUT");for(o=r.length,a=0;a<o;a++)e.appendChild(r[0]);n.parentNode.removeChild(n)}}function doane(t,n,i){n=isUndefined(n)?1:n,i=isUndefined(i)?1:i;return e=t||window.event,e?(n&&(e.preventDefault?e.preventDefault():e.returnValue=!1),i&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0),e):null}function loadcss(e,t){if(!CSSLOADED[e]){if(document.getElementById("css_"+e))document.getElementById("css_"+e).href=t+"?"+VERHASH;else css=document.createElement("link"),css.id="css_"+e,css.type="text/css",css.rel="stylesheet",css.href=t+"?"+VERHASH,document.getElementsByTagName("head")[0].appendChild(css);CSSLOADED[e]=1}}function showMenu(v){var ctrlid=isUndefined(v.ctrlid)?v:v.ctrlid,showid=isUndefined(v.showid)?ctrlid:v.showid,menuid=isUndefined(v.menuid)?showid+"_menu":v.menuid,ctrlObj=document.getElementById(ctrlid),menuObj=document.getElementById(menuid);if(menuObj){var mtype=isUndefined(v.mtype)?"menu":v.mtype,evt=isUndefined(v.evt)?"mouseover":v.evt,pos=isUndefined(v.pos)?"43":v.pos,layer=isUndefined(v.layer)?1:v.layer,duration=isUndefined(v.duration)?2:v.duration,timeout=isUndefined(v.timeout)?250:v.timeout,maxh=isUndefined(v.maxh)?600:v.maxh,cache=isUndefined(v.cache)?1:v.cache,drag=isUndefined(v.drag)?"":v.drag,dragobj=drag&&document.getElementById(drag)?document.getElementById(drag):menuObj,fade=isUndefined(v.fade)?0:v.fade,cover=isUndefined(v.cover)?0:v.cover,zindex=isUndefined(v.zindex)?JSMENU.zIndex.menu:v.zindex,ctrlclass=isUndefined(v.ctrlclass)?"":v.ctrlclass,winhandlekey=isUndefined(v.win)?"":v.win;for(i in zindex=cover?zindex+500:zindex,void 0===JSMENU.active[layer]&&(JSMENU.active[layer]=[]),EXTRAFUNC.showmenu)try{eval(EXTRAFUNC.showmenu[i]+"()")}catch(e){}if("click"==evt&&in_array(menuid,JSMENU.active[layer])&&"win"!=mtype)hideMenu(menuid,mtype);else{if("menu"==mtype&&hideMenu(layer,mtype),ctrlObj&&(ctrlObj.getAttribute("initialized")||(ctrlObj.setAttribute("initialized",!0),ctrlObj.unselectable=!0,ctrlObj.outfunc="function"==typeof ctrlObj.onmouseout?ctrlObj.onmouseout:null,ctrlObj.onmouseout=function(){this.outfunc&&this.outfunc(),duration<3&&!JSMENU.timer[menuid]&&(JSMENU.timer[menuid]=setTimeout(function(){hideMenu(menuid,mtype)},timeout))},ctrlObj.overfunc="function"==typeof ctrlObj.onmouseover?ctrlObj.onmouseover:null,ctrlObj.onmouseover=function(e){if(doane(e),this.overfunc&&this.overfunc(),"click"==evt)clearTimeout(JSMENU.timer[menuid]),JSMENU.timer[menuid]=null;else for(var t in JSMENU.timer)JSMENU.timer[t]&&(clearTimeout(JSMENU.timer[t]),JSMENU.timer[t]=null)})),!menuObj.getAttribute("initialized")&&(menuObj.setAttribute("initialized",!0),menuObj.ctrlkey=ctrlid,menuObj.mtype=mtype,menuObj.layer=layer,menuObj.cover=cover,ctrlObj&&ctrlObj.getAttribute("fwin")&&(menuObj.scrolly=!0),menuObj.style.position="absolute",menuObj.style.zIndex=zindex+layer,menuObj.onclick=function(e){return doane(e,0,1)},duration<3&&(duration>1&&(menuObj.onmouseover=function(){clearTimeout(JSMENU.timer[menuid]),JSMENU.timer[menuid]=null}),1!=duration&&(menuObj.onmouseout=function(){JSMENU.timer[menuid]=setTimeout(function(){hideMenu(menuid,mtype)},timeout)})),cover)){var coverObj=document.createElement("div");coverObj.id=menuid+"_cover",coverObj.style.position="absolute",coverObj.style.zIndex=menuObj.style.zIndex-1,coverObj.style.left=coverObj.style.top="0px",coverObj.style.width="100%",coverObj.style.height=Math.max(document.documentElement.clientHeight,document.body.offsetHeight)+"px",coverObj.style.backgroundColor="#000",coverObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=50)",coverObj.style.opacity=.5,coverObj.onclick=function(){hideMenu()},document.getElementById("append_parent").appendChild(coverObj),_attachEvent(window,"load",function(){coverObj.style.height=Math.max(document.documentElement.clientHeight,document.body.offsetHeight)+"px"},document)}if(drag&&(dragobj.style.cursor="move",dragobj.onmousedown=function(e){try{dragMenu(menuObj,e,1)}catch(e){}}),cover&&(document.getElementById(menuid+"_cover").style.display=""),fade){var O=0,fadeIn=function(e){if(e>100)clearTimeout(t);else{menuObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")",menuObj.style.opacity=e/100,e+=20;var t=setTimeout(function(){fadeIn(e)},40)}};fadeIn(O),menuObj.fade=!0}else menuObj.fade=!1;menuObj.style.display="",ctrlObj&&ctrlclass&&(ctrlObj.className+=" "+ctrlclass,menuObj.setAttribute("ctrlid",ctrlid),menuObj.setAttribute("ctrlclass",ctrlclass)),"*"!=pos&&setMenuPosition(showid,menuid,pos),BROWSER.ie&&BROWSER.ie<7&&winhandlekey&&document.getElementById("fwin_"+winhandlekey)&&(document.getElementById(menuid).style.left=parseInt(document.getElementById(menuid).style.left)-parseInt(document.getElementById("fwin_"+winhandlekey).style.left)+"px",document.getElementById(menuid).style.top=parseInt(document.getElementById(menuid).style.top)-parseInt(document.getElementById("fwin_"+winhandlekey).style.top)+"px"),maxh&&menuObj.scrollHeight>maxh&&(menuObj.style.height=maxh+"px",BROWSER.opera?menuObj.style.overflow="auto":menuObj.style.overflowY="auto"),duration||setTimeout("hideMenu('"+menuid+"', '"+mtype+"')",timeout),in_array(menuid,JSMENU.active[layer])||JSMENU.active[layer].push(menuid),menuObj.cache=cache,layer>JSMENU.layer&&(JSMENU.layer=layer);var hasshow=function(e){for(;e.parentNode&&"none"!==(void 0===e.currentStyle?window.getComputedStyle(e,null):e.currentStyle).display;)e=e.parentNode;return e===document};if(!menuObj.getAttribute("disautofocus"))try{for(var focused=!1,tags=["input","select","textarea","button","a"],i=0;i<tags.length;i++){var _all=menuObj.getElementsByTagName(tags[i]);if(_all.length)for(j=0;j<_all.length;j++)if((!_all[j].type||"hidden"!=_all[j].type)&&hasshow(_all[j])){_all[j].className+=" hidefocus",_all[j].focus(),focused=!0;var cobj=_all[j];_attachEvent(_all[j],"blur",function(){cobj.className=trim(cobj.className.replace(" hidefocus",""))});break}if(focused)break}}catch(e){}}}}var delayShowST=null;function delayShow(ctrlObj,call,time){if("object"==typeof ctrlObj){var ctrlid=ctrlObj.id;call=call||function(){showMenu(ctrlid)}}var time=isUndefined(time)?500:time;delayShowST=setTimeout(function(){"function"==typeof call?call():eval(call)},time),ctrlObj.delayinit||(_attachEvent(ctrlObj,"mouseout",function(){clearTimeout(delayShowST)}),ctrlObj.delayinit=1)}var dragMenuDisabled=!1;function dragMenu(e,t,n){if(t=t||window.event,1==n){if(dragMenuDisabled||in_array(t.target?t.target.tagName:t.srcElement.tagName,["TEXTAREA","INPUT","BUTTON","SELECT"]))return;JSMENU.drag=[t.clientX,t.clientY],JSMENU.drag[2]=parseInt(e.style.left),JSMENU.drag[3]=parseInt(e.style.top),document.onmousemove=function(t){try{dragMenu(e,t,2)}catch(e){}},document.onmouseup=function(t){try{dragMenu(e,t,3)}catch(e){}},doane(t)}else if(2==n&&JSMENU.drag[0]){var i=[t.clientX,t.clientY];e.style.left=JSMENU.drag[2]+i[0]-JSMENU.drag[0]+"px",e.style.top=JSMENU.drag[3]+i[1]-JSMENU.drag[1]+"px",e.removeAttribute("top_"),e.removeAttribute("left_"),doane(t)}else 3==n&&(JSMENU.drag=[],document.onmousemove=null,document.onmouseup=null)}function setMenuPosition(e,t,n){var i=document.getElementById(e),o=t?document.getElementById(t):document.getElementById(e+"_menu");!isUndefined(n)&&n||(n="43");var a,r,c=parseInt(n.substr(0,1)),s=parseInt(n.substr(1,1)),l=-1!=n.indexOf("!")?1:0,d=0,u=0,m=0,f=0,p=0,g=0,h=0,v=0,y=0;if(!(!o||c>0&&!i)){switch(i&&(u=(d=jQuery(i).offset()).left,m=d.top,f=jQuery(i).outerWidth(!0),p=jQuery(i).outerHeight(!0)),a=o.offsetWidth,o.clientWidth,r=o.offsetHeight,o.clientHeight,c){case 1:v=u,y=m;break;case 2:v=u+f,y=m;break;case 3:v=u+f,y=m+p;break;case 4:v=u,y=m+p}switch(s){case 0:o.style.left=(document.body.clientWidth-o.clientWidth)/2+"px",h=(document.documentElement.clientHeight-o.clientHeight)/2;break;case 1:g=v-a,h=y-r;break;case 2:g=v,h=y-r;break;case 3:g=v,h=y;break;case 4:g=v-a,h=y}l||(in_array(s,[1,4])&&g<0?(g=v,in_array(c,[1,4])&&(g+=f)):g+a>0+document.body.clientWidth&&u>=a&&(g=v-a,in_array(c,[2,3])?g-=f:4==c&&(g+=f)),in_array(s,[1,2])&&h<0?(h=y,in_array(c,[1,2])&&(h+=p)):h+r>0+document.documentElement.clientHeight&&m>=r&&(h=y-r,in_array(c,[3,4])&&(h-=p))),"210"==n.substr(0,3)&&(g+=69-f/2,h-=5,"TEXTAREA"==i.tagName&&(g-=f/2,h+=p/2)),(0==s||o.scrolly)&&(BROWSER.ie&&BROWSER.ie<7?0==s&&(h+=0):(o.scrolly&&(h-=0),o.style.position="fixed")),document.body.clientWidth>0&&g>0&&g+a>document.body.clientWidth&&(g=document.body.clientWidth-a-10>0?document.body.clientWidth-a-10:0),g&&(o.style.left=g+"px"),h&&(o.style.top=h+"px"),0==s&&BROWSER.ie&&!document.documentElement.clientHeight&&(o.style.position="absolute",o.style.top=(document.body.clientHeight-o.clientHeight)/2+"px"),o.style.clip&&!BROWSER.opera&&(o.style.clip="rect(auto, auto, auto, auto)")}}function hideMenu(e,t){if(e=isUndefined(e)?"":e,t=isUndefined(t)?"menu":t,""!=e)if("number"!=typeof e){if("string"==typeof e){var n=document.getElementById(e);if(!n||t&&n.mtype!=t)return;var i="",o="";if((i=document.getElementById(n.getAttribute("ctrlid")))&&(o=n.getAttribute("ctrlclass"))){var a=new RegExp(" "+o);i.className=i.className.replace(a,"")}clearTimeout(JSMENU.timer[e]);var r=function(){n.cache?"hidden"!=n.style.visibility&&(n.style.display="none",n.cover&&(document.getElementById(e+"_cover").style.display="none")):(n.parentNode.removeChild(n),n.cover&&document.getElementById(e+"_cover").parentNode.removeChild(document.getElementById(e+"_cover")));var t=[];for(var i in JSMENU.active[n.layer])e!=JSMENU.active[n.layer][i]&&t.push(JSMENU.active[n.layer][i]);JSMENU.active[n.layer]=t};if(n.fade){var c=function(e){if(0==e)return clearTimeout(t),void r();n.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")",n.style.opacity=e/100,e-=20;var t=setTimeout(function(){c(e)},40)};c(100)}else r()}}else for(var s in JSMENU.active[e])hideMenu(JSMENU.active[e][s],t);else for(var l=1;l<=JSMENU.layer;l++)hideMenu(l,t)}function getCurrentStyle(e,t,n){if(e.style[t])return e.style[t];if(e.currentStyle)return e.currentStyle[t];if(document.defaultView.getComputedStyle(e,null)){var i=(o=document.defaultView.getComputedStyle(e,null)).getPropertyValue(n);return i||(i=o[t]),i}var o;return window.getComputedStyle?(o=window.getComputedStyle(e,"")).getPropertyValue(n):void 0}function fetchOffset(e,t){var n=0,i=0;t=t||0;if(e.getBoundingClientRect&&!t){var o=e.getBoundingClientRect(),a=Math.max(document.documentElement.scrollTop,document.body.scrollTop),r=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);"rtl"==document.documentElement.dir&&(r=r+document.documentElement.clientWidth-document.documentElement.scrollWidth),n=o.left+r-document.documentElement.clientLeft,i=o.top+a-document.documentElement.clientTop}if(n<=0||i<=0)for(n=e.offsetLeft,i=e.offsetTop;null!=(e=e.offsetParent);)position=getCurrentStyle(e,"position","position"),"relative"!=position&&(n+=e.offsetLeft,i+=e.offsetTop);return{left:n,top:i}}function showError(e){""!==(e=e.replace(/<script[^\>]*?>([^\x00]*?)<\/script>/gi,""))&&showDialog(e,"alert",__lang.db_error_message,null,!0,null,"","","",3)}function hideWindow(e,t,n){t=isUndefined(t)?1:t,n=isUndefined(n)?1:n,jQuery("#fwin_"+e).modal("hide").remove(),t&&jQuery(".modal.fwinmask").modal("hide").remove()}function AC_FL_RunContent(){var e="",t=AC_GetArgs(arguments,"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");if(BROWSER.ie&&!BROWSER.opera){for(var n in e+="<object ",t.objAttrs)e+=n+'="'+t.objAttrs[n]+'" ';for(var n in e+=">",t.params)e+='<param name="'+n+'" value="'+t.params[n]+'" /> ';e+="</object>"}else{for(var n in e+="<embed ",t.embedAttrs)e+=n+'="'+t.embedAttrs[n]+'" ';e+="></embed>"}return e}function AC_GetArgs(e,t,n){var i=new Object;i.embedAttrs=new Object,i.params=new Object,i.objAttrs=new Object;for(var o=0;o<e.length;o+=2){switch(e[o].toLowerCase()){case"classid":break;case"pluginspage":i.embedAttrs[e[o]]="http://www.macromedia.com/go/getflashplayer";break;case"src":i.embedAttrs[e[o]]=e[o+1],i.params.movie=e[o+1];break;case"codebase":i.objAttrs[e[o]]="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0";break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"id":i.objAttrs[e[o]]=e[o+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":i.embedAttrs[e[o]]=i.objAttrs[e[o]]=e[o+1];break;default:i.embedAttrs[e[o]]=i.params[e[o]]=e[o+1]}}return i.objAttrs.classid=t,n&&(i.embedAttrs.type=n),i}function simulateSelect(selectId,widthvalue){var selectObj=document.getElementById(selectId);if(selectObj)if(BROWSER.other)selectObj.getAttribute("change")&&(selectObj.onchange=function(){eval(selectObj.getAttribute("change"))});else{for(var widthvalue=widthvalue||70,defaultopt=selectObj.options[0]?selectObj.options[0].innerHTML:"",defaultv="",menuObj=document.createElement("div"),ul=document.createElement("ul"),handleKeyDown=function(e){40!=(e=BROWSER.ie?event:e).keyCode&&38!=e.keyCode||doane(e)},selectwidth=(selectObj.getAttribute("width",i)?selectObj.getAttribute("width",i):widthvalue)+"px",tabindex=selectObj.getAttribute("tabindex",i)?selectObj.getAttribute("tabindex",i):1,i=0;i<selectObj.options.length;i++){var li=document.createElement("li");li.innerHTML=selectObj.options[i].innerHTML,li.k_id=i,li.k_value=selectObj.options[i].value,selectObj.options[i].selected&&(defaultopt=selectObj.options[i].innerHTML,defaultv=selectObj.options[i].value,li.className="current",selectObj.setAttribute("selecti",i)),li.onclick=function(){if(document.getElementById(selectId+"_ctrl").innerHTML!=this.innerHTML){var lis=menuObj.getElementsByTagName("li");lis[document.getElementById(selectId).getAttribute("selecti")].className="",this.className="current",document.getElementById(selectId+"_ctrl").innerHTML=this.innerHTML,document.getElementById(selectId).setAttribute("selecti",this.k_id),document.getElementById(selectId).options.length=0,document.getElementById(selectId).options[0]=new Option("",this.k_value),eval(selectObj.getAttribute("change"))}return hideMenu(menuObj.id),!1},ul.appendChild(li)}selectObj.options.length=0,selectObj.options[0]=new Option("",defaultv),selectObj.style.display="none",selectObj.outerHTML+='<a href="javascript:;" id="'+selectId+'_ctrl" style="width:'+selectwidth+'" tabindex="'+tabindex+'">'+defaultopt+"</a>",menuObj.id=selectId+"_ctrl_menu",menuObj.className="sltm",menuObj.style.display="none",menuObj.style.width=selectwidth,menuObj.appendChild(ul),document.getElementById("append_parent").appendChild(menuObj),document.getElementById(selectId+"_ctrl").onclick=function(e){document.getElementById(selectId+"_ctrl_menu").style.width=selectwidth,showMenu({ctrlid:"loginfield"==selectId?"account":selectId+"_ctrl",menuid:selectId+"_ctrl_menu",evt:"click",pos:"43"}),doane(e)},document.getElementById(selectId+"_ctrl").onfocus=menuObj.onfocus=function(){_attachEvent(document.body,"keydown",handleKeyDown)},document.getElementById(selectId+"_ctrl").onblur=menuObj.onblur=function(){_detachEvent(document.body,"keydown",handleKeyDown)},document.getElementById(selectId+"_ctrl").onkeyup=function(e){if(e=e||window.event,value=e.keyCode,40==value||38==value)"none"==menuObj.style.display?document.getElementById(selectId+"_ctrl").onclick():(t=menuObj.getElementsByTagName("li"),selecti=selectObj.getAttribute("selecti"),t[selecti].className="",40==value?selecti=parseInt(selecti)+1:38==value&&(selecti=parseInt(selecti)-1),selecti<0?selecti=t.length-1:selecti>t.length-1&&(selecti=0),t[selecti].className="current",selectObj.setAttribute("selecti",selecti),t[selecti].parentNode.scrollTop=t[selecti].offsetTop);else if(13==value){var t=menuObj.getElementsByTagName("li");t[selectObj.getAttribute("selecti")].onclick()}else 27==value&&hideMenu(menuObj.id)}}}function ctrlEnter(e,t,n){return isUndefined(n)&&(n=0),!e.ctrlKey&&!n||13!=e.keyCode||(document.getElementById(t).click(),!1)}function updatestring(e,t,n){return t="_"+t+"_",n?e.replace(t,""):-1==e.indexOf(t)?e+t:e}function getClipboardData(){window.document.clipboardswf.SetVariable("str",CLIPBOARDSWFDATA)}function setCopy(e,t){BROWSER.ie?clipboardData.setData("Text",e)?t&&showPrompt(null,null,"<span>"+t+"</span>",1500):showDialog('<div class="" style="width: 200px; text-align: center;">'+__lang.copy_unsuccess_allow_access+"</div>","alert"):(showDialog(t='<div class="" style="border-bottom:none; width:200px;text-align: center; text-decoration:underline;">'+__lang.click_here_copy_clipboard+"</div>"+AC_FL_RunContent("id","clipboardswf","name","clipboardswf","devicefont","false","width","200","height","40","src",STATICURL+"image/common/clipboard.swf","menu","false","allowScriptAccess","sameDomain","swLiveConnect","true","wmode","transparent","style","margin-top:-20px"),"message"),e=e.replace(/[\xA0]/g," "),CLIPBOARDSWFDATA=e)}var secST=new Array;function strLenCalc(e,t,n){for(var i=e.value,o=n=n||200,a=strlen(i),r=0;r<i.length;r++)(i.charCodeAt(r)<0||i.charCodeAt(r)>255)&&(o-="utf-8"==charset?2:1);o>=a?document.getElementById(t).innerHTML=o-a:e.value=mb_cutstr(i,n,0)}if(BROWSER.ie&&BROWSER.ie<11)try{document.documentElement.addBehavior("#default#userdata")}catch(e){}function updateseccode(idhash,play){isUndefined(play)?document.getElementById("seccode_"+idhash)&&(document.getElementById("seccodeverify_"+idhash).value="",secST["code_"+idhash]&&clearTimeout(secST["code_"+idhash]),document.getElementById("checkseccodeverify_"+idhash).innerHTML="",ajaxget("misc.php?mod=seccode&action=update&idhash="+idhash,"seccode_"+idhash,null,"","",function(){secST["code_"+idhash]=setTimeout(function(){document.getElementById("seccode_"+idhash).innerHTML='<span class="btn btn-primary" onclick="updateseccode(\''+idhash+"')\">"+__lang.refresh_verification_code+"</span>"},18e4)})):eval("window.document.seccodeplayer_"+idhash+'.SetVariable("isPlay", "1")')}function checksec(e,t,n,i){n=n||0;var o=document.getElementById("sec"+e+"verify_"+t).value;if(o){var a=new Ajax("XML","checksec"+e+"verify_"+t);a.loading="",document.getElementById("checksec"+e+"verify_"+t).innerHTML='<span class="dzz dzz-autorenew dzz-spin"></span>',a.get("misc.php?mod=sec"+e+"&action=check&inajax=1&&idhash="+t+"&secverify="+(BROWSER.ie&&"utf-8"==document.charset?encodeURIComponent(o):o),function(o){var a=document.getElementById("checksec"+e+"verify_"+t);a&&(a.style.display="","succeed"==o.substr(0,7)?(a.innerHTML='<span class="dzz dzz-done"></span>',jQuery(a).closest(".seccode-wrapper").find(".help-msg").addClass("chk_right"),n&&i(1)):(jQuery(a).closest(".seccode-wrapper").find(".help-msg").removeClass("chk_right"),a.innerHTML='<span class="dzz dzz-close"></span>',n&&("code"==e&&showError(__lang.verification_error_reset),i(0))))})}}function showdistrict(e,t,n,i,o){var a=function(e){var t=e.options[e.selectedIndex];return t.did||t.getAttribute("did")||"0"},r=i>=1&&t[0]&&document.getElementById(t[0])?a(document.getElementById(t[0])):0,c=i>=2&&t[1]&&document.getElementById(t[1])?a(document.getElementById(t[1])):0,s=i>=3&&t[2]&&document.getElementById(t[2])?a(document.getElementById(t[2])):0,l=i>=4&&t[3]&&document.getElementById(t[3])?a(document.getElementById(t[3])):0;ajaxget("user.php?mod=ajax&action=district&container="+e+"&containertype="+o+"&province="+t[0]+"&city="+t[1]+"&district="+t[2]+"&community="+t[3]+"&pid="+r+"&cid="+c+"&did="+s+"&coid="+l+"&level="+n+"&handlekey="+e+"&inajax=1"+(i?"":"&showdefault=1"),e,"")}function showbirthday(){var e=document.getElementById("birthday"),t=e.value;e.length=0,e.options.add(new Option(__lang.day,""));for(var n=0;n<28;n++)e.options.add(new Option(n+1,n+1));if("2"!=document.getElementById("birthmonth").value)switch(e.options.add(new Option(29,29)),e.options.add(new Option(30,30)),document.getElementById("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(""!=document.getElementById("birthyear").value){var i=document.getElementById("birthyear").value;(i%400==0||i%4==0&&i%100!=0)&&e.options.add(new Option(29,29))}e.value=t}var tipTimer=[];function showTip(e,t,n){e.id||(e.id="tip_"+Math.random());var i="";switch(t){case"12":i="tip_4";break;case"21":i="tip_3";break;case"43":i="tip_1";break;case"34":i="tip_2";break;default:t="12",i="tip_4"}if(menuid=e.id+"_menu",!document.getElementById(menuid)){var o=document.createElement("div");o.id=e.id+"_menu",o.className="tip da "+i,o.style.display="none",o.innerHTML='<div class="tip_horn"></div><div class="tip_c">'+(n||e.getAttribute("tip"))+"</div>",document.getElementById("append_parent").appendChild(o),o.onmouseover=function(){tipTimer[this.id]&&window.clearTimeout(tipTimer[this.id])},o.onmouseout=function(){var e=this;tipTimer[this.id]=window.setTimeout(function(){hideMenu(e.id,"prompt")},200)}}document.getElementById(e.id).onmouseout=function(){var e=this;tipTimer[this.id+"_menu"]=window.setTimeout(function(){hideMenu(e.id+"_menu","prompt")},200)},showMenu({mtype:"prompt",ctrlid:e.id,pos:t+"!",duration:3,zindex:JSMENU.zIndex.prompt})}function showPrompt(e,t,n,i,o){var a=e?e+"_pmenu":"ntcwin",r=i?0:3;document.getElementById(a)&&document.getElementById(a).parentNode.removeChild(document.getElementById(a));var c=document.createElement("div");if(c.id=a,c.className=o||(e?"tip tip_js":"ntcwin"),c.style.display="none",document.getElementById("append_parent").appendChild(c),n=e?'<div id="'+e+'_prompt"><div class="tip_horn"></div><div class="tip_c">'+n+"</div>":'<table cellspacing="0" cellpadding="0" class="popupcredit"><tr><td class="pc_l">&nbsp;</td><td class="pc_c"><div class="pc_inner">'+n+'</td><td class="pc_r">&nbsp;</td></tr></table>',c.innerHTML=n,e){if(i||(t="click"),document.getElementById(e)){if(!1!==document.getElementById(e).evt){var s=function(){showMenu({mtype:"prompt",ctrlid:e,evt:t,menuid:a,pos:"210"})};"click"==t?document.getElementById(e).onclick=s:document.getElementById(e).onmouseover=s}showMenu({mtype:"prompt",ctrlid:e,evt:t,menuid:a,pos:"210",duration:r,timeout:i,zindex:JSMENU.zIndex.prompt}),document.getElementById(e).unselectable=!1}}else showMenu({mtype:"prompt",pos:"00",menuid:a,duration:r,timeout:i,zindex:JSMENU.zIndex.prompt}),document.getElementById(a).style.top=parseInt(document.getElementById(a).style.top)-100+"px"}function cardInit(){for(var e={},t=document.body.getElementsByTagName("a"),n=0;n<t.length;n++)if(t[n].getAttribute("c")){var i=t[n].getAttribute("href",1);void 0===e[i]&&(e[i]=Math.round(1e4*Math.random())),t[n].setAttribute("mid","card_"+e[i]),t[n].onmouseover=function(){var e;e=this,BROWSER.ie&&BROWSER.ie<7&&-1!=e.href.indexOf("username")||(pos="1"==e.getAttribute("c")?"43":e.getAttribute("c"),USERCARDST=setTimeout(function(){ajaxmenu(e,500,1,2,pos,null,"p_pop card")},250))},t[n].onmouseout=function(){clearTimeout(USERCARDST)}}}function mobileplayer(){var e=navigator.platform,t=navigator.userAgent,n=/iPhone|iPad|iPod/.test(e)&&t.indexOf("AppleWebKit")>-1,i=t.indexOf("Android")>-1;return!(!n&&!i)}jQuery(document).ready(function(e){jQuery(".js-popbox").each(function(){jQuery(this).popbox()}),jQuery(document).on("click","a",function(){var e=this.href,t="",n=jQuery(this).attr("title")?jQuery(this).attr("title"):strip_tags(this.innerHTML);if(-1!==e.indexOf("user.php?uid=")){t="profile";try{top.OpenWindow(t,e,__lang.subscriber_data)}catch(t){return window.open(e,n),!1}return!1}if("_dzz"==this.target){if(jQuery(this).attr("icon"))var i={img:jQuery(this).attr("icon"),name:n};else i={};try{return top._config?(top.OpenWindow("url",e,n,"",i),!1):(window.open(e,n),!1)}catch(e){}}})});var showDialogST=null;function showDialog(msg,mode,t,func,cover,funccancel,leftmsg,confirmtxt,canceltxt,closetime,locationtime){clearTimeout(showDialogST),cover=isUndefined(cover)?"info"==mode||"icon"==mode?0:1:cover,leftmsg=isUndefined(leftmsg)?"":leftmsg,mode||(mode="alert");var menuid="fwin_dialog",menuObj=document.getElementById(menuid),showconfirm=1;confirmtxtdefault="确定",closetime=isUndefined(closetime)?"":closetime,closefunc=function(){"function"==typeof func?func():eval(func),hideMenu(menuid,"dialog")},closetime&&(leftmsg=closetime+__lang.message_closetime,showDialogST=setTimeout(closefunc,1e3*closetime)),locationtime=isUndefined(locationtime)?"":locationtime,locationtime&&(leftmsg=locationtime+__lang.message_locationtime,showDialogST=setTimeout(closefunc,1e3*locationtime)),confirmtxt=confirmtxt||confirmtxtdefault,canceltxt=canceltxt||"取消",menuObj&&hideMenu("fwin_dialog","dialog"),menuObj=document.createElement("div"),menuObj.style.display="none",menuObj.className="fwinmask",menuObj.id=menuid,document.getElementById("append_parent").appendChild(menuObj);var hidedom="";BROWSER.ie||(hidedom='<style type="text/css">object{visibility:hidden;}</style>');var shadow="",s="";if(t?(s=hidedom+shadow+'<div class="modal-header"><h4 class="modal-title">',s+=t,s+='</h4><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" onclick="hideMenu(\'fwin_dialog\', \'dialog\')" ></button></div>'):(s=hidedom+shadow+'<div class="modal-header"><h4 class="modal-title">',s+="提示信息",s+='</h4><button id="fwin_dialog_close" type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" onclick="hideMenu(\'fwin_dialog\', \'dialog\')" ></button></div>'),-1!==mode.indexOf("alert_icon_")){var icon=decodeURIComponent(mode.replace("alert_icon_",""));s+=icon?'<div class="modal-body"><div class="alert_icon"><img class="alert_icon_img" src="'+icon+'"><p>'+msg+"</p></div></div>":'<div class="modal-body"><div class="alert_info"><p>'+msg+"</p></div></div>",s+='<div class="modal-footer">'+(leftmsg?'<span class=" muted pull-left">'+leftmsg+"</span>":"")+(showconfirm?'<button id="fwin_dialog_submit" value="true" class="btn btn-primary"><strong>'+confirmtxt+"</strong></button>":""),s+="</div>"}else"message"==mode?(s+=leftmsg?'<div class="modal-body"><div class="alert_info"><p>'+msg+"</p></div></div>":'<div class="modal-body">'+msg+"</div>",s+='<div class="modal-footer">'+(leftmsg?'<span class=" muted pull-left">'+leftmsg+"</span>":"")+(showconfirm?'<button id="fwin_dialog_submit" value="true" class="btn btn-primary"><strong>'+confirmtxt+"</strong></button>":""),s+="</div>"):(s+='<div class="modal-body"><div class="'+("alert"==mode?"alert_error":"right"==mode?"alert_right":"info"==mode?"alert_info":"")+'">'+msg+"</div></div>",s+='<div class="modal-footer">'+(leftmsg?'<span class="muted pull-left">'+leftmsg+"</span>":"")+(showconfirm?'<button id="fwin_dialog_submit" value="true" class="btn btn-outline-primary">'+confirmtxt+"</button>":""),s+="confirm"==mode?'<button id="fwin_dialog_cancel" value="true" class="btn btn-outline-danger" onclick="hideMenu(\'fwin_dialog\', \'dialog\')">'+canceltxt+"</button>":"",s+="</div>");s+="",menuObj.innerHTML=s,document.getElementById("fwin_dialog_submit")&&(document.getElementById("fwin_dialog_submit").onclick=function(){"function"==typeof func?func():eval(func),hideMenu(menuid,"dialog")}),document.getElementById("fwin_dialog_cancel")&&(document.getElementById("fwin_dialog_cancel").onclick=function(){"function"==typeof funccancel?funccancel():eval(funccancel),hideMenu(menuid,"dialog")}),showMenu({mtype:"dialog",menuid:menuid,duration:3,pos:"00",zindex:JSMENU.zIndex.dialog,drag:"drag_"+menuid,cache:0,cover:cover})}function Alert(e,t,n,i,o){o||(o="alert"),showDialog(e,o,__lang.board_message,n,1,n,"",i||__lang.i_see,"",t)}function Confirm(e,t){showDialog(e,"confirm",__lang.confirm_message,t,1)}function showWindow(e,t,n,i,o,a){n=isUndefined(n)?"get":n,i=isUndefined(i)?1:i;var r="fwin_"+e,c=document.getElementById(r),s=null;if(disallowfloat&&-1!=disallowfloat.indexOf(e))return BROWSER.ie&&(t+=(-1!=t.indexOf("?")?"&":"?")+"referer="+escape(location.href)),location.href=t,void doane();var l=function(){"get"==n?(c.url=t,t+=(t.search(/\?/)>0?"&":"?")+"infloat=yes&handlekey="+e,t+=-1==i?"&t="+ +new Date:"",BROWSER.ie&&t.indexOf("referer=")<0&&(t=t+"&referer="+encodeURIComponent(location)),ajaxget(t,"fwin_content_"+e,null,"","",function(){d(),u()})):"post"==n&&(c.act=document.getElementById(t).action,ajaxpost(t,"fwin_content_"+e,"","","",function(){d(),u()})),6!=parseInt(BROWSER.ie)&&(s=setTimeout(function(){showDialog("","info",'<img src="'+IMGDIR+'/loading.gif"> '+__lang.please_wait)},500)),"html"==n&&(document.getElementById("fwin_content_"+e).innerHTML=t,d(),u())},d=function(){clearTimeout(s)},u=function(){hideMenu("fwin_dialog","dialog"),jQuery(c).modal("show")};if(c)"get"==n&&(t!=c.url||1!=i)||"post"==n&&document.getElementById(t).action!=c.act||"html"==n&&1!=i?l():u();else{var m='<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">\t<div class="modal-content" id="fwin_content_'+e+'">\t</div></div>';(c=document.createElement("div")).id=r,c.className=" modal ",a&&(c.setAttribute("data-backdrop","static"),c.setAttribute("data-keyboard","false")),c.style.display="none",document.body.appendChild(c),c.innerHTML=m,"html"==n?(document.getElementById("fwin_content_"+e).innerHTML=t,d(),u()):l()}"function"==typeof o&&(window.showWindow_callback=o),doane()}var messageTimer=null;function showmessage(e,t,n,i,o,a,r,c,s){var l;if(c||(c=300),r||(r=300),s||(s=300),document.getElementById("message_tip_box"))l=jQuery("#message_tip_box");else{l=jQuery('<div id="message_tip_box" class="toast fade show message_tip_box"><div id="message_tip_alert" class="alert"></div></div>').appendTo(document.body)}var d=jQuery("#message_tip_alert");l.attr("sytle","").attr("class","toast fade show message_tip_box"),l.css({height:"auto","max-height":c,width:r,margin:"0,auto",overflow:"hidden"}),"error"==t&&(t="danger");if(jQuery.inArray(t,["danger","info","success","warning"])<0&&(t="info"),t){if(jQuery("#message_tip_alert").attr("class","alert alert-"+t),"info"==t)var u='<i class="dzz dzz-info-outline me-2 fs-5 text-info"></i>';else if("success"==t)u='<i class="dzz dzz-notification-success me-2 fs-5 text-success"></i>';else if("danger"==t)u='<i class="dzz dzz-clear me-2 fs-5 text-danger"></i>';else if("warning"==t)u='<i class="dzz dzz-error me-2 fs-5 text-warning"></i>'}else jQuery("#message_tip_alert").attr("class","alert alert-warning");if("success"==t)var m="成功";else if("danger"==t)m="错误";else if("warning"==t)m="警告";else m="信息";e=i?'<div class="toast-header">'+u+'<strong class="me-auto">'+m+'</strong><button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button></div><div class="toast-body">'+e+"</div></div>":'<div class="toast-header">'+u+'<strong class="me-auto">'+m+'</strong></div><div class="toast-body">'+e+"</div></div>",jQuery("#message_tip_alert").html(e);var f=l.outerWidth(!0),p=l.outerHeight(!0);switch(messageTimer&&window.clearTimeout(messageTimer),o){case"left-top":l.css({right:"auto",top:0,left:-f,bottom:"auto"}).animate({left:0},s),n&&(messageTimer=window.setTimeout(function(){l.animate({left:-f},s,function(){l.remove()}),"function"==typeof a&&a()},n)),d.find("button.close").off("click").on("click",function(){l.animate({left:-f},s,function(){l.remove()}),"function"==typeof a&&a()});break;case"right-top":l.css({right:-f,top:0,left:"auto",bottom:"auto"}).animate({right:0},s),n&&(messageTimer=window.setTimeout(function(){l.animate({right:-f},s,function(){l.remove()}),"function"==typeof a&&a()},n)),d.find("button.close").off("click").on("click",function(){l.animate({right:-f},s,function(){l.remove()}),"function"==typeof a&&a()});break;case"right-bottom":l.css({right:-f,top:"auto",left:"auto",bottom:0}).animate({right:0},s),n&&(messageTimer=window.setTimeout(function(){l.animate({right:-f},s,function(){l.remove()}),"function"==typeof a&&a()},n)),d.find("button.close").off("click").on("click",function(){l.animate({left:-f},s,function(){l.remove()}),"function"==typeof a&&a()});break;case"left-bottom":l.css({right:"auto",top:"auto",left:-f,bottom:0}).animate({left:0},s),n&&(messageTimer=window.setTimeout(function(){l.animate({left:-f},s,function(){l.remove()}),"function"==typeof a&&a()},n)),d.find("button.close").off("click").on("click",function(){l.animate({left:-f},s,function(){l.remove()}),"function"==typeof a&&a()});break;case"center":var g=f/2,h=p/2;l.css({left:"50%",top:"50%",right:"auto",bottom:"auto","margin-left":-g,"margin-top":-h,opacity:0}).animate({opacity:1},s),n&&(messageTimer=window.setTimeout(function(){l.animate({opacity:0},s,function(){l.remove()}),"function"==typeof a&&a()},n)),d.find("button.close").off("click").on("click",function(){l.animate({opacity:0},s,function(){l.remove()}),"function"==typeof a&&a()});break;default:l.css({left:"50%",marginLeft:-f/2,top:-p,right:"auto",bottom:"auto"}).animate({top:0},s),n&&(messageTimer=window.setTimeout(function(){l.animate({top:-p},s,function(){l.remove()}),"function"==typeof a&&a()},n)),d.find("button.close").off("click").on("click",function(){l.animate({top:-p},s,function(){l.remove()}),"function"==typeof a&&a()})}n||"function"!=typeof a||a()}var jcLoader=function(){var e=document;return{load:function(t,n){var i="",o="",a="",r=n;switch(t.type&&(i=t.type),t.url&&(o=t.url),t.ids&&(a=t.ids),i){case"js":case"javascript":!function(t,n,i){for(var o=t.replace(/[,]\s*$/gi,"").split(","),a=n.replace(/[,]\s*$/gi,"").split(","),r=[],c=0,s=0;s<o.length;s++)a[s]&&document.getElementById(a[s])?++c>=o.length&&"function"==typeof i&&i():(r[s]=e.createElement("script"),r[s].type="text/javascript",r[s].src=o[s],a[s]&&(r[s].id=a[s]),e.getElementsByTagName("head")[0].appendChild(r[s]),"function"==typeof i&&(r[s].readyState?r[s].onreadystatechange=function(){"loaded"!=this.readyState&&"complete"!=this.readyState||(this.onreadystatechange=null,++c>=o.length&&"function"==typeof i&&i())}:r[s].onload=function(){++c>=o.length&&"function"==typeof i&&i()}))}(o,a,r);break;case"css":!function(t,n,i){for(var o=t.replace(/[,]\s*$/gi,"").split(","),a=n.replace(/[,]\s*$/gi,"").split(","),r=[],c=0,s=0;s<o.length;s++)a[s]&&document.getElementById(a[s])?++c>=o.length&&"function"==typeof i&&i():(r[s]=e.createElement("link"),a[s]&&(r[s].id=a[s]),r[s].rel="stylesheet",r[s].href=o[s],e.getElementsByTagName("head")[0].appendChild(r[s]),"function"==typeof i&&(r[s].readyState?r[s].onreadystatechange=function(){"loaded"!=this.readyState&&"complete"!=this.readyState||(this.onreadystatechange=null,++c>=o.length&&"function"==typeof i&&i())}:r[s].onload=function(){++c>=o.length&&"function"==typeof i&&i()}))}(o,a,r)}return this}}};function checkeURL(e){var t=e;if("about:blank"==t)return!0;return 1==new RegExp(/[a-zA-z]+:\/\/[^\s]*/).test(t)}function parseURL(e){var t=document.createElement("a");return t.href=e,{source:e,protocol:t.protocol.replace(":",""),host:t.hostname,port:t.port,query:t.search,params:function(){for(var e,n={},i=t.search.replace(/^\?/,"").split("&"),o=i.length,a=0;a<o;a++)i[a]&&(n[(e=i[a].split("="))[0]]=e[1]);return n}(),file:(t.pathname.match(/\/([^\/?#]+)$/i)||[,""])[1],hash:t.hash.replace("#",""),path:t.pathname.replace(/^([^\/])/,"/$1"),relative:(t.href.match(/tps?:\/\/[^\/]+(.+)/)||[,""])[1],segments:t.pathname.replace(/^\//,"").split("/")}}function getUrlParam(e,t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=e.match(n);return null!=i&&unescape(i[2])}function toggleFullScreen(e){document.fullscreen||document.mozFullScreen||document.webkitFullScreen?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen():e.requestFullScreen?e.requestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}var onousermove=onmouseup=onselectstart=null,DetachEvent=function(e,t){try{document.onmousemove=onmousemove,document.onmouseup=onmouseup,document.onselectstart=onselectstart,t.releaseCapture&&t.releaseCapture()}catch(e){}},AttachEvent=function(e,t){try{onmousemove=document.onmousemove,onmouseup=document.onmouseup,onselectstart=document.onselectstart,document.onselectstart=function(){return!1},e.preventDefault?e.preventDefault():t.setCapture&&t.setCapture()}catch(e){}};function dfire(e){jQuery(document).trigger(e)}function correcturl(e){return e&&-1===e.indexOf("?")&&(e=e.replace(/&/i,"?")),e}function dbind(id,ev,recall){jQuery(document).on("mousedown."+id,function(e){e=e||window.event;var obj=e.srcElement?e.srcElement:e.target;0==checkInDom(obj,id)&&(jQuery(document).off("."+id),jQuery("#"+id).trigger(ev),recall&&"function"==typeof recall?recall():recall&&eval(recall))})}function checkInDom(e,t){return!!e&&(e.id==t||"BODY"!=e.tagName&&checkInDom(e.parentNode,t))}function contains(e,t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}function checkHover(e,t){return"mouseover"==getEvent(e).type?!(contains(t,getEvent(e).relatedTarget||getEvent(e).fromElement)||(getEvent(e).relatedTarget||getEvent(e).fromElement)===t):!(contains(t,getEvent(e).relatedTarget||getEvent(e).toElement)||(getEvent(e).relatedTarget||getEvent(e).toElement)===t)}function setMouseDownHide(e){jQuery(document).bind("mousedown."+e,function(t){0==checkInDom((t=t||window.event).srcElement?t.srcElement:t.target,e)&&(jQuery("#"+e).hide(),jQuery(document).unbind("mousedown."+e))})}function nowTime(e,t){var n,i,o,a,r,c,s;function l(e){return e<10&&(e="0"+e),e}!function(){var d=new Date,u=[__lang.Sunday,__lang.Monday,__lang.Tuesday,__lang.Wednesday,__lang.Thursday,__lang.Friday,__lang.Saturday];n=d.getFullYear(),i=l(d.getMonth()+1),o=l(d.getDate()),a=u[d.getDay()],r=l(d.getHours()),c=l(d.getMinutes()),s=l(d.getSeconds()),t&&12==t&&(r<=12?r="上午 "+r:r>12&&r<24?r="下午 "+l(r-=12):24==r&&(r="下午 00")),e.innerHTML=n+__lang.year+i+__lang.month+o+__lang.day+" "+a+" "+r+":"+c+":"+s,setTimeout(arguments.callee,1e3)}()}function serialize(e){var t,n=function(e){var t,n,i=typeof e;if("object"===i&&!e)return"null";if("object"===i){if(!e.constructor)return"object";var o=e.constructor.toString();(t=o.match(/(\w+)\(/))&&(o=t[1].toLowerCase());var a=["boolean","number","string","array"];for(n in a)if(o==a[n]){i=a[n];break}}return i},i=n(e);switch(i){case"function":t="";break;case"boolean":t="b:"+(e?"1":"0");break;case"number":t=(Math.round(e)==e?"i":"d")+":"+e;break;case"string":t="s:"+function(e){var t=0,n=0,i=e.length,o="";for(n=0;n<i;n++)t+=(o=e.charCodeAt(n))<128?1:o<2048?2:3;return t}(e)+':"'+e+'"';break;case"array":case"object":t="a";var o,a,r=0,c="";for(a in e)if(e.hasOwnProperty(a)){if("function"===n(e[a]))continue;o=a.match(/^[0-9]+$/)?parseInt(a,10):a,c+=this.serialize(o)+this.serialize(e[a]),r++}t+=":"+r+":{"+c+"}";break;case"undefined":default:t="N"}return"object"!==i&&"array"!==i&&(t+=";"),t}function array_merge(){var e,t=Array.prototype.slice.call(arguments),n=t.length,i={},o="",a=0,r=0,c=0,s=0,l=Object.prototype.toString,d=!0;for(c=0;c<n;c++)if("[object Array]"!==l.call(t[c])){d=!1;break}if(d){for(d=[],c=0;c<n;c++)d=d.concat(t[c]);return d}for(c=0,s=0;c<n;c++)if(e=t[c],"[object Array]"===l.call(e))for(r=0,a=e.length;r<a;r++)i[s++]=e[r];else for(o in e)e.hasOwnProperty(o)&&(parseInt(o,10)+""===o?i[s++]=e[o]:i[o]=e[o]);return i}function htmlspecialchars_decode(e,t){var n=0,i=0,o=!1;void 0===t&&(t=2),e=e.toString().replace(/</g,"<").replace(/>/g,">");var a={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(0===t&&(o=!0),"number"!=typeof t){for(t=[].concat(t),i=0;i<t.length;i++)0===a[t[i]]?o=!0:a[t[i]]&&(n|=a[t[i]]);t=n}return t&a.ENT_HTML_QUOTE_SINGLE&&(e=e.replace(/&#0*39;/g,"'")),o||(e=e.replace(/"/g,'"')),e=e.replace(/&/g,"&")}function dzzNotification(){var e=new Object;return e.issupport=function(){return"Notification"in window},e.shownotification=function(e,t,n,i,o){function a(){new Notification(i,{tag:e,icon:n,body:o}).onclick=function(e){e.preventDefault(),window.open(t,"_blank")}}"granted"===Notification.permission?a():"denied"!==Notification.permission&&Notification.requestPermission().then(function(e){"granted"===e&&a()})},e}Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),"S+":this.getMilliseconds()};for(var n in/(y+)/i.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};