﻿var RowsCount=0;var PageCount=0;var PageSize=10;var CurrentPage=1;var lType="all";var lClassID=0;var lChapterID=0;var lNodeID=0;var FBrowser={};var ajaxErrmsg="数据请求失败,请重试!";FBrowser.isIE=(navigator.userAgent.indexOf('MSIE')==-1)?false:true;FBrowser.isIE7=(FBrowser.isIE&&window.XMLHttpRequest)?true:false;FBrowser.isIE6=(FBrowser.isIE&&!window.XMLHttpRequest&&window.ActiveXObject)?true:false;FBrowser.isFirefox=(navigator.userAgent.indexOf('Firefox')==-1)?false:true;FBrowser.isOpera=(navigator.userAgent.indexOf('Opera')==-1)?false:true;FBrowser.isSafari=(navigator.userAgent.toLowerCase().indexOf('webkit')==-1)?false:true;String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')};String.prototype.lTrim=function(){return this.replace(/^\s*/,"")};String.prototype.between=function(b,e){var bp=this.indexOf(b);if(bp==-1){return("")}bp+=b.length;var ep=this.indexOf(e,bp);if(ep==-1){return("")}return this.substr(bp,ep-bp)};String.prototype.replaceAll=function(s,t){return this.split(s).join(t)};function Fid(id){return document.getElementById(id)}function Ftag(name){return document.getElementsByTagName(name)}function Fempty(v){if(v!=null&&(typeof(v)=='object'||typeof(v)=='function')){return false}return((""==v||undefined==v||null==v)?true:false)}function chkradio(Obj,Val){if(Obj){for(var i=0;i<Obj.length;i++){if(Obj[i].value==Val){Obj[i].checked=true;break}}}}function ajaCreateData(_form){var data="";if(_form){for(var i=0;i<_form.elements.length;i++){if(data==""){data=_form.elements[i].name+"="+escape(_form.elements[i].value)}else{data+="&"+_form.elements[i].name+"="+escape(_form.elements[i].value)}}}return data}function SetHome(obj,vrl){try{obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl)}catch(e){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(e){alert("抱歉！您的浏览器不支持直接设为首页。")}var prefs=Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);prefs.setCharPref('browser.startup.homepage',vrl)}}}function AjaxUserFormRefresh(type,outObj){$.ajax({type:"post",url:"/ShowLogin.aspx",data:"Ajax=1&Type="+type,success:function(data){outObj.innerHTML=data},error:function(){outObj.innerHTML=ajaxErrmsg}})}function NewsSpanBar(id){if(!id){id="s1"}this.f=0;this.event="click";this.titleid="news_"+id;this.bodyid="newsbody_"+id;this.class_hiton="tabgroup_on_"+id;this.class_hitno="tabgroup_up_"+id;this.class_dis="dis";this.class_undis="undis";var Tags,TagsCnt,len,flag;var BClassName;this.load=function(){if(!Fid(this.titleid)||!Fid(this.bodyid)){return false}flag=this.f;BClassName=[this.class_dis,this.class_undis,this.class_hiton,this.class_hitno];Tags=Fid(this.titleid).getElementsByTagName('p');TagsCnt=Fid(this.bodyid).getElementsByTagName('dl');len=Tags.length;for(var i=0;i<len;i++){Tags[i].value=i;if(this.event!='mouseover'){Tags[i].onmouseover=function(){changeNav(this.value)}}else{Tags[i].onclick=function(){changeNav(this.value)}}TagsCnt[i].className=BClassName[1]}Tags[flag].className=BClassName[3];TagsCnt[flag].className=BClassName[0]};function changeNav(v){Tags[flag].className=BClassName[2];TagsCnt[flag].className=BClassName[1];flag=v;Tags[v].className=BClassName[3];TagsCnt[v].className=BClassName[0]}}function FgetWindowSize(){if(FBrowser.isOpera){return{width:document.body.clientWidth,height:document.body.clientHeight}}else if(FBrowser.isIE6){return{width:document.body.clientWidth,height:document.body.clientHeight}}else{return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}}

