/*file:ajax*/ function loadXMLDoc(g,c,e,b){var f=null,d;if(window.XMLHttpRequest){f=new XMLHttpRequest()}else{if(window.ActiveXObject){f=new ActiveXObject("Microsoft.XMLHTTP")}}var a=b==null?false:true;if(e==null){f.open("GET",g,a)}else{f.open("POST",g,a);f.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded")}f.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT");f.setRequestHeader("Programer","Jawin");if(a){f.onreadystatechange=function(){if(f.readyState!=4){return}if(c){b(f.responseXML,f.status)}else{b(f.responseText,f.status)}};f.send(e);return true}f.send(e);if(c){d=f.responseXML}else{d=f.responseText}return d}function GetHtml(c){var a=new Date;var b=loadXMLDoc(c,false,null,null);return b}function AsynGetHtml(b,a){return loadXMLDoc(b,false,null,a)}function AsynGetXML(c,b){var a=new Date;var d=loadXMLDoc(c,true,null,b);return d}function GetXML(b){var a=new Date;var c=loadXMLDoc(b,true,null,null);return c}function GetXMLPost(c,b){var a=new Date;var d=loadXMLDoc(c,true,b,null);return d}function simpleXMlParse(f){var c=new Object();c.OwnerXML=f;c.state=null;c.message=null;c.ExtXml=null;c.DataArray=new Array();var d=null;var a=null;if(f==null||(d=f.documentElement)==null){c.state="XMLError";c.message="\u670D\u52A1\u54CD\u5E94\u7684XML\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!\n\u9519\u8BEF\u539F\u56E0\u53EF\u80FD\u662F\u670D\u52A1\u5668\u5904\u7406\u7A0B\u5E8F\u51FA\u9519\u6216\u7E41\u5FD9!";return c}for(var b=0;b0){c.DataArray.push(a.childNodes[e].childNodes[0].data)}else{c.DataArray.push(null)}}break;default:}}a=null;d=null;return c}function CheckerSelect(c,a){var e=document.getElementsByName(c);var d;for(var b=0;b0){d.checked=true}else{d.checked=!d.checked}}}}function cbool(b){var a=parseInt(b);if(!isNaN(a)){return a!=0}b=b.toLowerCase();switch(b){case"true":case"t":return true;default:return false}return false}var DialogResult={OK:1,Cancel:0,YES:1,NO:0};function Alert(){this.frmDiv=null;this.width=350;this.height=100;this.hTimer=null;this.onscroll=function(){this.frmDiv.style.left=(document.documentElement.clientWidth-this.width)/2;this.frmDiv.style.top=(document.documentElement.clientHeight-this.height)/2};this.show=function(e,d){if(this.frmDiv==null){this.frmDiv=document.createElement("DIV");document.body.appendChild(this.frmDiv);this.frmDiv.className="alert";var c=document.createElement("DIV");this.frmDiv.appendChild(c);c.className="title";c.innerHTML=e;c=document.createElement("DIV");this.frmDiv.appendChild(c);c.className="Message";c.innerHTML=d;c=document.createElement("CENTER");this.frmDiv.appendChild(c);var b=document.createElement("BUTTON");c.appendChild(b);b.className="OKButton";b.innerHTML="\u786E\u5B9A";var a=this;b.onclick=function(){a.dispose(1)};this.hTimer=window.setInterval(function(){a.onscroll()},10)}};this.dispose=function(b){if(this.hTimer!=null){window.clearInterval(this.hTimer)}this.hTimer=null;if(this.frmDiv!=null){document.body.removeChild(this.frmDiv)}this.frmDiv=null;if(this.pfUnloadCallBack!=null){try{this.pfUnloadCallBack(this,b)}catch(a){alert("Unload\u4E8B\u4EF6\u56DE\u8C03\u4EE3\u51FD\u51FA\u9519\n"+a.message)}}this.pfUnloadCallBack=null};this.pfUnloadCallBack=null}function writeCookie(c,d,b){var a="";if(b!=null){a=new Date((new Date()).getTime()+b*3600000);a="; expires="+a.toGMTString()}document.cookie=c+"="+escape(d)+a}function readCookie(b){var a="";var c=b+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(c);if(offset!=-1){offset+=c.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}a=unescape(document.cookie.substring(offset,end))}}return a}function InstallTextSelecter(){var b=document.getElementsByTagName("INPUT");for(var a=0;a0){offset=document.cookie.indexOf(c);if(offset!=-1){offset+=c.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}a=unescape(document.cookie.substring(offset,end))}else{offset=document.cookie.indexOf(b);if(offset!=-1){a=""}}}return a}function ClaerTag(){var a=document.createElement("div");a.className="c";return a}function log(a){if(typeof console=="undefined"){return}console.log(a)}function getElementsByNameFromObj(f,a){var c=document.getElementsByName(f);if(typeof a=="undefined"){return c}if(c.length==0||a==null||a.tagName=="body"){return c}var d=[];var e;for(var b=0;bc){c=a;a=screen.width}if(c<800||a<600){strTip="Goto Mobile? http://m.gkong.com";if(!confirm(strTip)){return}else{}location="page2mobile.ashx?"+document.URL}}checkExplorer();function WindowScroll(){}WindowScroll.prototype._ptr={isRuning:false,objs:[]};WindowScroll.prototype._init=function(){if(this._ptr.isRuning){return false}var a=this;if(typeof(window.addEventListener)=="undefined"){window.attachEvent("onscroll",function(){a._onscroll()})}else{window.addEventListener("scroll",function(){a._onscroll()})}this._ptr.isRuning=true};WindowScroll.prototype.addMonitor=function(c,a){for(var b=0;b0)||(e.bottom>-100&&e.bottom<0)){if(!a(c)){return}}if(e.bottom-e.top<0){return}this._init();this._ptr.objs.push({obj:c,callback:a})};WindowScroll.prototype._onscroll=function(){if(this._ptr.objs.length==0){return}var c=document.documentElement.clientHeight;for(var b=this._ptr.objs.length-1;b>=0;b--){var d=this._ptr.objs[b].obj.getBoundingClientRect();var a=this._ptr.objs[b].callback?this._ptr.objs[b].callback:this._defaultCallbackProc;if((d.top0)||(d.bottom>-100&&d.bottom<0)){if(!a(this._ptr.objs[b].obj)){this._ptr.objs.splice(b,1)}}}};WindowScroll.prototype._defaultCallbackProc=function(a){if(a.tagName!="IMG"){alert("\u672A\u77E5\u5BF9\u50CF\x21");return}var b=a.getAttribute("lazysrc");if(b==null||b==""){return}a.src=b;a.removeAttribute("lazysrc");a.onload=new Function('this.removeAttribute("class");this.onload=null;')};var _czc=[]; /*file:floatIFrame*/ function FloatIFrame(b,a){this.url=b;this.eventObj=a;this.close={callback:null};this.title=b;this.CSS="dvNs";this.Tags={main:null,title:null,body:null};this.algin="left";this.show=function(){var d=document.createElement("div");this.Tags.main=d;d.className=this.CSS;var c=document.createElement("div");this.Tags.title=c;c.innerHTML=this.title+" - [\u5173\u95ED]";d.appendChild(c);c.onclick=this.close.callback;c.title="\u5173\u95ED";var e=document.createElement("iframe");this.Tags.body=e;e.allowTransparency=true;e.frameBorder=0;var g=new Date()-new Date(1983,10,12);e.id="ff"+g;d.appendChild(e);document.body.appendChild(d);var f=this.getPosition();if(this.algin=="right"){f.x+=this.eventObj.offsetWidth-d.clientWidth}d.style.left=f.x+"px";d.style.top=f.y+"px";setTimeout(new Function("document.getElementById('"+e.id+"').src='"+this.url+"';"),10)};this.getPosition=function(){var c=this.eventObj;var d=0,e=0;do{d+=c.offsetLeft||0;e+=c.offsetTop||0}while(c=c.offsetParent);return{x:d,y:e}};this.dispose=function(){if(this.Tags.main==null){return}this.Tags.body.src="about:blank";this.Tags.main.removeChild(this.Tags.title);this.Tags.main.removeChild(this.Tags.body);var c=this.Tags.main.parentNode;var d=c.removeChild(this.Tags.main);this.Tags.main=null;this.Tags.title=null;this.Tags.body=null}}; /*file:Notices*/ var ff=null;function shownotices(b,a){if(ff==null){ff=new FloatIFrame("Notices/nsList.aspx?mini=1&callback=nsCallback&"+a,b.parentNode.parentNode);ff.title="\u6D88\u606F\u901A\u77E5";ff.close.callback=new Function("ff.dispose();ff=null; hideNotices('"+b.parentNode.getAttribute("name")+"');");ff.algin="right";ff.show()}else{ff.Close.Callback()}return true}function hideNotices(a){var b=document.getElementById("newmessagetips");var d=b.getElementsByTagName("div");for(var c=d.length-1;c>=0;c--){if(a==d[c].getAttribute("name")){b.removeChild(d[c])}}if(b.children.length==0){b.style.display="none"}}function nsCallback(b,a){if(ff==null){return}if(a.h