function AJAX(k){var g=[],a=this,f=AJAX.__pool__||(AJAX.__pool__=[]);(function(t){var u=function(){};t=t?t:{};var v=["url","content","method","async","encode","timeout","ontimeout","onrequeststart","onrequestend","oncomplete","onexception"],s=["","","GET",true,i("GBK"),3600000,u,u,u,u,u],w=v.length;while(w--){a[v[w]]=r(t[v[w]],s[w])}if(!d()){return false}})(k);function r(s,t){return s!=undefined?s:t}function d(){var s,u=[window.XMLHttpRequest,"MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var v=0;v<f.length;v+=1){if(f[v].readyState==0||f[v].readyState==4){return f[v]}}for(v=0;v<u.length;v+=1){try{s=(u[v]&&typeof(u[v])=="function"?new u[v]:new ActiveXObject(u[v]));break}catch(t){s=false;continue}}if(!s){throw"Cannot init XMLHttpRequest object!";return false}else{f[f.length]=s;return s}}function m(s){return document.getElementById(s)}function o(t){var s=t*1;return(isNaN(s)?0:s)}function n(s){return(typeof(s)=="string"?(s=m(s))?s:false:s)}function l(){return((new Date)*1)}function e(t,s){g[t+""]=s}function j(s){return(g[s+""])}function h(t,u,v){return(function s(y){y=y.replace(/([^\u0080-\u00FF]+)/g,function(A,z){return t(z)}).replace(/([\u0080-\u00FF])/g,function(A,z){return escape(z).replace("%","%u00")});for(var w=0,x=u.length;w<x;w+=1){y=y.replace(u[w],v[w])}return(y)})}function i(s){if(s.toUpperCase()=="UTF-8"){return(encodeURIComponent)}else{return(h(escape,[/\+/g],["%2B"]))}}function c(s,v){if(!s.nodeName){return}var t="|"+s.nodeName.toUpperCase()+"|";if("|INPUT|TEXTAREA|OPTION|".indexOf(t)>-1){s.value=v}else{try{s.innerHTML=v}catch(u){}}}function b(s){if(typeof(s)=="function"){return s}else{s=n(s);if(s){return(function(t){c(s,t.responseText)})}else{return a.oncomplete}}}function p(t,s,u){var v=0,w=[];while(v<t.length){w[v]=t[v]?(u[v]?u[v](t[v]):t[v]):s[v];v+=1}while(v<s.length){w[v]=s[v];v+=1}return w}function q(){var Q,t=false,y=d(),z=p(arguments,[a.url,a.content,a.oncomplete,a.method,a.async,null],[null,null,b,null,null,null]),P=z[0],B=z[1],x=z[2],w=z[3],N=z[4],u=z[5],v=w.toUpperCase()=="POST"?true:false;if(!P){throw"url is null";return false}var F={url:P,content:B,method:w,params:u};if(!v){P+=(P.indexOf("?")>-1?"&":"?")+"timestamp="+l()}y.open(w,P,N);a.onrequeststart(F);if(v){y.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}y.setRequestHeader("X-Request-With","XMLHttpRequest");Q=setTimeout(function(){t=true;y.abort()},a.timeout);var s=function(){if(t){a.ontimeout(F);a.onrequestend(F)}else{if(y.readyState==4){clearTimeout(Q);F.status=y.status;try{if(y.status==200){x(y,u)}else{a.onexception(F)}}catch(A){a.onexception(F)}a.onrequestend(F)}}};y.onreadystatechange=s;if(v){y.send(B)}else{y.send("")}if(N==false){s()}return true}this.setcharset=function(s){if(!a.encode){a.encode=i(s)}};this.get=function(t,u,s){return q(t,"",u,"GET",a.async,s)};this.update=function(v,s,u,y,x){u=o(u);y=o(y);if(u<1){y=1}var z=function(){q(s,"",v,"GET",a.async,x)},w=l(),t=function(A){z();A--;if(A>0){e(w,setTimeout(function(){t(A)},u))}};t(y);return w};this.stopupdate=function(s){clearTimeout(j(s))};this.post=function(t,s,u,v){return q(t,s,u,"POST",a.async,v)};this.postf=function(u,z,t){var D=[],x,P,Q,A,w,y=arguments.length,s=arguments;u=u?n(u):false;if(!u||u.nodeName!="FORM"){return false}validfoo=u.getAttribute("onvalidate");validfoo=validfoo?(typeof(validfoo)=="string"?new Function(validfoo):validfoo):null;if(validfoo&&!validfoo()){return false}var S=u.getAttribute("action"),v=u.getAttribute("method"),R=a.formToStr(u);if(R.length==0){return false}if(v.toUpperCase()=="POST"){return q(S,R,z,"POST",true,t)}else{S+=(S.indexOf("?")>-1?"&":"?")+R;return q(S,"",z,"GET",true,t)}};this.formToStr=function(w){var x="",u="",t,s;for(var v=0;v<w.length;v+=1){t=w[v];if(t.name!=""){switch(t.type){case"select-one":if(t.selectedIndex>-1){s=t.options[t.selectedIndex].value}else{s=""}break;case"checkbox":case"radio":if(t.checked==true){s=t.value}break;default:s=t.value}s=a.encode(s);x+=u+t.name+"="+s;u="&"}}return x}}function $(a){return document.getElementById(a)}function checkAll(a,d,b){var e;e=getElementsByName(d,b);for(var c=0;c<e.length;c++){e[c].checked=a}}function checkOthers(c,a){var d;d=getElementsByName(c,a);for(var b=0;b<d.length;b++){if(d[b].checked==false){d[b].checked=true}else{if(d[b].checked==true){d[b].checked=false}}}}function textareasize(a){if(a.scrollHeight>70){a.style.height=a.scrollHeight+"px"}}function set(b,a){b.innerHTML=a}function view(a){$(a).style.display="inline"}function hide(a){$(a).style.display="none"}function getScroll(){var a;if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}return(a)}function HtmlEncode(b){var a="";if(b.length==0){return""}a=b.replace(/&/g,"&amp;");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");a=a.replace(/ /g,"&nbsp;");a=a.replace(/\'/g,"&#39;");a=a.replace(/\"/g,"&quot;");return a}function getElementsByName(a,c){var b=new Array();var e=document.getElementsByTagName(a);for(var d=0;d<e.length;d++){if(e[d].name==c){b.push(e[d])}}return b}function closeWin(){document.body.removeChild($("bg"));document.body.removeChild($("msg"));if($("searchtype")){$("searchtype").style.display=""}}function openWindow(b,d,a,f){var e=document.documentElement.scrollWidth;var g=document.documentElement.clientHeight;var h=document.createElement("div");h.id="bg";h.style.cssText="top:0;width:"+e+"px;height:"+document.documentElement.scrollHeight+"px;filter:Alpha(Opacity="+f+");opacity:0.3;z-index:"+b+";";document.body.appendChild(h);var c=document.createElement("div");c.id="msg";c.style.cssText="z-index:"+(b+1)+";width:"+d+"px; height:"+(parseInt(a)-0+29+16)+"px;left:"+((e-d-2)/2)+"px;top:"+(getScroll()+(a=="auto"?150:(g>(parseInt(a)+29+2+16+30)?(g-a-2-29-16-30)/2:0)))+"px";c.innerHTML="<div class='msgtitle'><div id='msgtitle'></div><img onclick='closeWin()' src='/"+sitePath+"pic/btn_close.gif' /></div><div id='msgbody' style='height:"+a+"px'></div>";document.body.appendChild(c)}function openWindow2(b,d,a,f){var e=document.documentElement.scrollWidth;var g=document.createElement("div");g.id="bg";g.style.cssText="top:0;width:"+e+"px;height:"+document.documentElement.scrollHeight+"px;filter:Alpha(Opacity="+f+");opacity:0.3;z-index:"+b+";";document.body.appendChild(g);var c=document.createElement("div");c.id="msg";c.style.cssText="position: absolute;z-index:"+(b+1)+";width:"+d+"px; height:"+(a=="auto"?a:(a+"px"))+";";document.body.appendChild(c)}function selectTogg(){var b=document.getElementsByTagName("select");for(var a=0;a<b.length;a++){b[a].style.display=(b[a].style.display=="none"?"":"none")}}function checkInput(b,a){switch(a){case"mail":if(!/^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/gi.test(b)){alert("\u90ae\u7bb1\u586b\u5199\u9519\u8bef");return false}break;case"num":if(isNaN(b)){alert("QQ\u586b\u5199\u9519\u8bef");return false}break}return true}function copyToClipboard(a){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",a);alert("\u590d\u5236\u6210\u529f\uff01")}else{alert("\u8bf7\u624b\u52a8\u590d\u5236\uff01")}}function getUrlArgs(){return location.pathname};