var singleAllPairs=new Array();function getTheName(A,C){if(C==1){for(var B=0;B<singleAllPairs.length;B++){if(singleAllPairs[B][0]==A){return singleAllPairs[B][1]}}throw new Error("The element which name is "+A+" does not exist!")}else{for(var B=0;B<singleAllPairs.length;B++){if(singleAllPairs[B][1]==A){return singleAllPairs[B][0]}}throw new Error("The element which name is "+A+" does not exist!")}}function getSelectAllFlag(B){var C=document.getElementsByName(B);for(var A=0;A<C.length;A++){if(C[A].checked==false){return false}}return true}function selectAll(B){var C=document.getElementsByName(B);for(var A=0;A<C.length;A++){C[A].checked=true}}function deSelectAll(B){var C=document.getElementsByName(B);for(var A=0;A<C.length;A++){C[A].checked=false}}function clickSingle(){var D;if(isMinIE5){D=window.event.srcElement}else{var A=arguments[0];D=A.target}if(D.checked==true){if(getSelectAllFlag(D.name)==true){var B=document.getElementsByName(getTheName(D.name,1));for(var C=0;C<B.length;C++){B[C].checked=true}}}else{var B=document.getElementsByName(getTheName(D.name,1));for(var C=0;C<B.length;C++){B[C].checked=false}}}function clickAll(){var B;if(isMinIE5){B=window.event.srcElement}else{var A=arguments[0];B=A.target}if(B.checked==true){selectAll(getTheName(B.name,2))}else{deSelectAll(getTheName(B.name,2))}}function attachEventOnCheckBox(A,C){var E=document.getElementsByName(A);var D=document.getElementsByName(C);if(isMinIE5){for(var B=0;B<E.length;B++){E[B].attachEvent("onclick",clickSingle)}for(var B=0;B<D.length;B++){D[B].attachEvent("onclick",clickAll)}}else{for(var B=0;B<E.length;B++){E[B].addEventListener("click",clickSingle,true)}for(var B=0;B<D.length;B++){D[B].addEventListener("click",clickAll,true)}}}function linkSingleAllCheckBox(A,B){singleAllPairs[singleAllPairs.length]=new Array(A,B);attachEventOnCheckBox(A,B)}function isValidPageNum(B){var C="^\\d{1,5}$";if(arguments.length>1){C="^\\d{1,"+arguments[1]+"}$"}var A=new RegExp(C);return A.test(B)}String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};String.prototype.trimAll=function(){return this.replace(/<p>/g,"").replace(/&nbsp;/g,"").replace(/<\/p>/g,"").replace(/^\s*/,"").replace(/\s*$/,"")};String.prototype.Rtrim=function(){return this.replace(/(\s*$)/g,"")};String.prototype.trimLocation=function(){var A;if(this.indexOf("#")==-1){A=this}else{A=this.substr(0,this.indexOf("#"))}return A};function specailCharacterFilter(){this.defaultSpecailCharacterList=new Array("&","<",">","#","%","@","$","?",'"',"'");this.specailCharacterList=this.defaultSpecailCharacterList}specailCharacterFilter.prototype.add=function(C){if(!C){return }var A=C.split(",");for(var B=0;B<A.length;B++){if(containChar(this.specailCharacterList,A[B])<0){this.specailCharacterList.push(A[B])}}};specailCharacterFilter.prototype.remove=function(D){if(!D){return }var B=D.split(",");for(var C=0;C<B.length;C++){var A=containChar(this.specailCharacterList,B[C]);if(A>=0){this.specailCharacterList.splice(A,1)}}};specailCharacterFilter.prototype.define=function(B){if(!B){return }var A=B.split(",");this.specailCharacterList=A};specailCharacterFilter.prototype.replace=function(C,A){if(!C){return }var B=new RegExp(createRegStr(this.specailCharacterList),"gi");return C.replace(B,A)};specailCharacterFilter.prototype.test=function(B){if(!B){return }var A=new RegExp(createRegStr(this.specailCharacterList),"gi");return !A.test(B)};specailCharacterFilter.prototype.print=function(){alert(this.specailCharacterList)};function containChar(C,B){var A=C.length;for(var D=0;D<A;D++){if(C[D]==B){return D}}return -1}var regKeywordList=new Array("(","[","{","\\","^","$","|",")","]","}","?","*","+",".");function createRegStr(D){if(!D){return }var B="";var A=D.length;for(var C=0;C<A;C++){if(containChar(regKeywordList,D[C])>=0){if(C!=A-1){B+="\\"+D[C]+"|"}else{B+="\\"+D[C]}}else{if(C!=A-1){B+=D[C]+"|"}else{B+=D[C]}}}return B}function getSelectCondition(E,G){var C=document.getElementsByName(E);var B=C.length;var A=0;var F;if(G){for(var D=0;D<B;D++){if(C[D].checked==true){F=C[D].value;return F}}}else{for(var D=0;D<B;D++){if(C[D].checked==true){A++}}}return A}function initMozTextOverflow(B){function A(){doMozTextOverflow(B)}setTimeout(A,0)}function doMozTextOverflow(C){function B(E){var D=E.currentTarget;D.className="_textOverflow"}function A(E){var D=E.currentTarget;D.className="_textUnderflow"}C.className="_textUnderflow";C.addEventListener("overflow",B,false);C.addEventListener("underflow",A,false);C.ins=document.createElement("ins");C.ins.innerHTML="&hellip;";C.appendChild(C.ins)}function isYear(C,B){if(B==null||(B!=null&&isNaN(B))){B=4}if(C!=null&&C.trim().length==B){var A=/^\d+$/;if((A.test(C.trim()))){return true}}return false}function checkTagLength(E,D,C){if(E!=null){var A=E.split(D);if(A!=null&&A.length>0){for(var B=0;B<A.length;B++){if(A[B].length>C){return false}}}else{if(E.length>C){return false}}}return true}var _popedomAlert_message;function popedomAlert(B){var A="/pages/common/jsp/popedomPageAlert.jsp";if(document.all){if(window.showModalDialog){window.showModalDialog(A,B,"dialogHeight:320px;dialogWidth:380px;center:yes;help:No;resizable:No;status:No;scroll:No")}else{alert(B)}}else{_popedomAlert_message=B;window.open(A,B,"modal=yes,height=320px,width=380px,cener=yes,help=no,resizable=No,status=No,scroll=No")}}var _WJWX_UPLOADFILE_MAXSIZE=2*1024*1000;function isOverUploadFileMaxSize(A){return false}function _SetUploadImgSize(){if(this.fileSize>_WJWX_UPLOADFILE_MAXSIZE){alert("\u4e0a\u4f20\u7167\u7247\u7684\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc72M\uff01")}this.relObj.setAttribute("fileSize",this.fileSize)}function CheckUploadImgSize(A){if(isIE){if(isMinIE7){}else{if(isMinIE6){if(A.value.trim()!=""){var B=new Image();B.setAttribute("relObj",A);B.onload=_SetUploadImgSize;B.onerror=function(){this.relObj.setAttribute("fileSize",0)};B.src=A.value}}}}}function CheckFileUploadType(){}CheckFileUploadType.acceptType="jpg,gif,png";CheckFileUploadType.add=function(A){CheckFileUploadType.acceptType=CheckFileUploadType.acceptType.concat(","+A.toLowerCase())};CheckFileUploadType.typeArray=function(){return CheckFileUploadType.acceptType.split(",")};CheckFileUploadType.failMessage="\u4e0a\u4f20\u6587\u4ef6\u683c\u5f0f\u9519\u8bef!";CheckFileUploadType.failHandle=function(){alert(CheckFileUploadType.failMessage)};CheckFileUploadType.checkAccept=function(F,D){if(F.trim()==""){return true}var C=function(){if(D){D()}else{if(CheckFileUploadType.failHandle){CheckFileUploadType.failHandle()}}return false};var A=F.lastIndexOf(".");if(A<0){return C()}A+=1;if(A>F.length){return C()}var B=F.substring(A).toLowerCase();for(var E=0;E<CheckFileUploadType.typeArray().length;E++){if(B==CheckFileUploadType.typeArray()[E]){return true}}return C()};function OpenWindow(G,I,H,C,F,K,D){var B=top.document.getElementById("blinkDiv");var J=top.document.getElementById("openWindow");var E=top.document.getElementById("openWindowMain");if(!J){J=top.document.createElement("div");J.id="openWindow";J.className="openWindow";top.document.body.appendChild(J);J.innerHTML='<iframe id="openWindowMain" frameborder="0" scrolling="no" />';E=top.document.getElementById("openWindowMain")}E.src=G;if(K!=null&&D!=null){E.width=K+"px";E.height=D+"px"}J.style.display="";if(I!=null&&H!=null){J.style.top=I+"px";J.style.left=H+"px"}else{J.style.top=(top.document.documentElement.scrollTop+top.document.documentElement.clientHeight/2-250)+"px";J.style.left=(top.document.documentElement.scrollLeft+top.document.documentElement.clientWidth/2-200)+"px"}if(!F){J.innerHTML+='<div id="closeDiv" class="closeDiv" />';var A=top.document.getElementById("closeDiv");A.innerHTML='<a href="javascript:CloseWindow();"  title="关闭"><img src="/pages/common/image/close3.gif" width="13" height="13" border="0"></a>'}if(C){if(B){B.style.display=""}else{B=top.document.createElement("div");B.id="blinkDiv";B.className="opacityDiv";B.style.width=top.document.body.clientWidth+"px";if(top.document.documentElement.clientHeight>top.document.body.scrollHeight){B.style.height=top.document.documentElement.clientHeight+"px"}else{B.style.height=top.document.body.scrollHeight+"px"}top.document.body.appendChild(B)}}}var _statu;function CloseWindow(){if(top.document.getElementById("blinkDiv")){top.document.getElementById("blinkDiv").style.display="none"}if(top.document.getElementById("openWindow")){top.document.getElementById("openWindow").style.display="none";top.document.getElementById("openWindowMain").src=""}if(_statu){try{_statu=false;top.reloadWindow()}catch(A){}}}function changeStatu(){_statu=true}function closed(){CloseWindow()}function showDiv(B,A){if(B==null){return }window.location.href="/person/"+B}function emptyImpl(C,B){var A=document.all?true:false;if(A){top.showDiv(C,null,B)}}function showAll(){var D=document.all?true:false;if(D){var C=top.document.body.scrollWidth/2-300/2;var A=top.document.body.scrollHeight/2-300/2;if(A<=0){A=top.document.documentElement.scrollTop+top.document.documentElement.clientHeight/2-150;C=top.document.documentElement.scrollLeft+top.document.documentElement.clientWidth/2-150}}else{var C=top.document.body.clientWidth/2-300/2;var A=top.document.body.clientHeight/2-300/2;if(A<0){A=(top.document.documentElement.clientHeight/2-150);C=(top.document.documentElement.clientWidth/2-150)}}var B="/messageShow.do?method=show";OpenWindow(B,A,C,true)}function getPosLeft(el){obj1=eval(el);var iPos=0;while(obj1!=null){if(obj1.offsetLeft){iPos+=obj1.offsetLeft}obj1=obj1.offsetParent}return iPos}function getPosHeight(el,endobj){obj=eval(el);var iPos=0;while(obj!=null){if(obj.offsetTop){iPos+=obj.offsetTop}obj=obj.offsetParent;if(endobj){if(obj==endobj){break}}}return iPos}function changeIMG(A){A.src="/pages/common/image/touxiang1_02.gif"}function restore(A){A.src="/pages/common/image/touxiang_02.gif"}function setHomePage(){var A=document.createElement("A");A.style.behavior="url(#default#homepage)";A.setHomePage("http://www.5j5x.com")}function addFavorite(){window.external.addFavorite("http://www.5j5x.com","?????????????????????????????????????????????????????????")}var _wjwx_tour_win=null;function showTour(){if(_wjwx_tour_win!=null){if(!_wjwx_tour_win.closed){_wjwx_tour_win.focus();return }}var A="Height=657px,Width=900px,top=0px,left=0px,center=yes,help=No,resizable=No,status=No,scroll=No";_wjwx_tour_win=window.open("/pages/tour/jsp/tour.jsp","wjwxTour",A)}function replaceFlashImageAll(A){try{wjwxAutoFormatImg.changeAreaObj(document.getElementById(A))}catch(B){}}function flushWotalkStatu(){try{wotalk.filterUserImg()}catch(A){}}function setSecValue(A){A.value=document.getElementsByName("secOfSecurityPage")[0].value}function resetSecValue(A){if(A.value){document.getElementsByName("secOfSecurityPage")[0].value=A.value}else{document.getElementsByName("secOfSecurityPage")[0].value=A}}function resetInputStyle(){var B=document.getElementsByTagName("input");for(var A=0;A<B.length;A++){if(B[A].type=="password"||B[A].type=="text"||B[A].type=="file"){B[A].style.border="#cccccc 1px solid"}}}function b_strlen(A){var C=0;for(var B=0;B<A.length;B++){if((A.charCodeAt(B)<0)||(A.charCodeAt(B)>255)){C=C+2}else{C=C+1}}return C}function showJoinPk(B,F,A,D,C,E){OpenWindow("/editor/pk/op.do?pktype="+B+"&type=div&contentId="+F+"&userId="+A+"&familyName="+D+"&description="+C+"&param="+E)}function setCookie(A,C,D){var B=new Date();B.setTime(B.getTime()+D);document.cookie=A+"="+escape(C)+"; expires="+B.toGMTString()}function getCookie(C){var B=document.cookie;var F=B.indexOf(C+"=");var D;if(F!=-1){var E=F+C.length+1;var A=B.indexOf(";",E);if(A==-1){A=B.length}D=B.substring(E,A);D=unescape(D);return D}return D}function isEmptyforRadioOrCheckBox(B){var C=document.getElementsByName(B);if(!C){return false}for(var A=0;A<C.length;A++){if(C[A].checked){return false}}return true}if(typeof wjwxevent=="undefined"){var wjwxevent={addEventListener:function(C,B,A){if(C.addEventListener){C.addEventListener(B,A,false)}else{if(C.attachEvent){if(A.refFun!=null){alert("同一方法不允许多次注入！");return }A.refFun=function(D){A.call(C,D)};C.attachEvent("on"+B,A.refFun)}else{C["on"+B]=A}}},removeEventListener:function(C,B,A){if(C.removeEventListener){C.removeEventListener(B,A,false)}else{if(C.detachEvent){if(A.refFun!=null){C.detachEvent("on"+B,A.refFun);A.refFun=null}else{C.detachEvent("on"+B,A)}}else{C["on"+B]=null}}},getEvent:function(A){return window.event?window.event:A}}}Array.prototype.contains=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return true}}return false};Array.prototype.remove=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){this[A]=null}}};Array.prototype.isEmpty=function(){if(this.length<1){return true}for(var A=0;A<this.length;A++){if(this[A]!=null&&this[A]!=""){return false}}return true};function killError(){return true}var _5j5x_help_win;function reloadWindow(){alert("warn:reloadWindow");return ;reloadFlashWindow();try{reloadAll()}catch(A){}}function reloadFlashWindow(){alert("warn:reloadFlashWindow");return ;if(document.getElementById("login")){window.login.location.reload()}}function reloadAll(){alert("warn:reloadAll");return ;top.window.location.reload()}function showHelp(){if(_5j5x_help_win!=null&&!_5j5x_help_win.closed){_5j5x_help_win.focus()}else{var C=0;var B=screen.width-390;var A="Height=608px,Width=386px,top="+C+"px,left="+B+"px,center=yes,help=No,resizable=No,status=No,scroll=No";_5j5x_help_win=window.open("/pages/help/","????????????",A)}return }document.onhelp=function(){showHelp();return false};var _timeId=null;function showInfo(A,B){_timeId=window.setTimeout("hide('"+B+"');",0)}function hide(A){document.getElementById(A).style.display="none"}function cancelBu(){if(_timeId!==null){window.clearTimeout(_timeId);_timeId=null}}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}};