var __bIsCallBack=true;var __bIsIE=false;var __nDx=0;var __nDy=0;var stroldFnName=null;var __oBodyObjToPopup=null;function NewXmlDoc(){var a=null;if(window.ActiveXObject){a=new ActiveXObject("MSXML2.DOMDocument.3.0");if(a!=null){a.async=false;a.preserveWhiteSpace=true}}else{if(document.implementation&&document.implementation.createDocument){a=document.implementation.createDocument("","",null)}}return a}if(window.ActiveXObject){__bIsIE=true}var __oWaitMessage=null;var __nWaitTimeID=0;function __fnWaitMessage(a){if(a){__oWaitMessage=GetMessageBox();if(__oWaitMessage!=null){__oWaitMessage.ShowMessageBox("�����Ժ�","���ڴ�����...","window.clearInterval(__nWaitTimeID);");__nWaitTimeID=window.setInterval(__fnChangeWaitMessage,1000)}}else{if(__oWaitMessage!=null){__oWaitMessage.fnClose();__oWaitMessage=null;window.clearInterval(__nWaitTimeID);__nWaitTimeID=0}}}function __fnChangeWaitMessage(){if(_getObj("__oWaitFont")!=null){var a=_getObj("__oWaitFont").innerHTML;if(a.length<12){_getObj("__oWaitFont").innerHTML=a+"."}else{_getObj("__oWaitFont").innerHTML="���ڴ�����..."}}}function fnGetPointValue(b){var a=parseInt(b);var c=null;switch(a){case 0:alert("�����ѳɹ�");break;case 1:alert("�Բ��𣬴��û�������");break;case 2:alert("�Բ�����ѡ���˴��������!");break;case 3:alert("�Բ�������ǰ������!");break;default:alert("����IJ���");break}}function fnReplaceBadChar(d){var c=_getObj(d);if(c!=null){var a=c.elements.length;for(var b=0;b`!#$=\\\"]/g,"");c.elements[b].value=c.elements[b].value.replace(/^\s{0,}|\s{0,}$/g,"")}}}}function fnClearFormValue(d){var c=_getObj(d);if(c!=null){var a=c.elements.length;for(var b=0;b`!;#$=\"]/g,"");return a.replace(/^\s{1,}|\s{1,}$/g,"+")}function btnClickOnOpenWindow(){var b=false;if(typeof(ifrOpenMain.SetOutParams)=="undefined"){b=null}else{b=ifrOpenMain.SetOutParams()}if(b==false){return}if(window.dialogArguments.InParam!=null){try{window.returnValue=window.dialogArguments.InParam.ToString()}catch(a){}}else{window.returnValue=null}window.close()}function Call(c,a,b,d){if(a==null){a=new ParamClass()}a.__XmlDoc.documentElement.setAttribute("FunctionName",c);var e=GethttpRequest();d="/transfer.aspx";e.open("POST",d,false);e.send(a.ToString());if(e.responseText==null||e.responseText==""){alert(b);return false}a=new ParamClass(e.responseText);return a.GetValue("Result")}var __xmlHttp=null;var __fnCallBack=null;var __fnArray=new Array();var __nWaitCallBack=0;function __fnWaitCallBack(){if(__fnArray.length==0){window.clearInterval(__nWaitCallBack);__nWaitCallBack=0}else{fnCallEx(__fnArray[0][0],__fnArray[0][1],__fnArray[0][2],__fnArray[0][3],true)}}function fnPushWaitArray(c,b,d,a){__fnArray[__fnArray.length]=new Array();__fnArray[__fnArray.length-1][0]=c;__fnArray[__fnArray.length-1][1]=b;__fnArray[__fnArray.length-1][2]=d;__fnArray[__fnArray.length-1][3]=a;if(__nWaitCallBack==0){__nWaitCallBack=window.setInterval("__fnWaitCallBack();",500,"javascript")}}function fnCallEx(f,e,g,c,b){if(navigator.appName=="Microsoft Internet Explorer"&&document.readyState!="complete"){var a=false;for(var d=0;d<__fnArray.length;d++){if(__fnArray[d][0]==f&&__fnArray[d][1]==e&&__fnArray[d][2]==g&&__fnArray[d][3]==c){a=true;break}}if(!a){fnPushWaitArray(f,e,g,c)}return}if(__fnCallBack!=null&&__fnCallBack!=c&&(typeof(b)=="undefined")){fnPushWaitArray(f,e,g,c);return}if((typeof(b)!="undefined")&&b&&__fnCallBack!=null){return}else{if(b){if(__fnArray.length>0){__fnArray.shift()}}}if(e==null){e=new ParamClass()}__xmlHttp=GethttpRequest();__xmlHttp.onreadystatechange=fnHandleStateChange;e.__XmlDoc.documentElement.setAttribute("FunctionName",f);__fnCallBack=c;__xmlHttp.open("POST",g,true);__xmlHttp.send(e.ToString())}function GethttpRequest(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){return new ActiveXObject("MsXml2.XmlHttp")}}}function fnHandleStateChange(){if(__xmlHttp.readyState==4){if(__xmlHttp.status==200&&__fnCallBack!=null){if(__oWaitMessage!=null){__fnWaitMessage(false)}var a=new ParamClass(__xmlHttp.responseText);__fnCallBack(a.GetValue("Result"))}__fnCallBack=null}}function ParamClass(d){var c=NewXmlDoc();var b=null;if(d&&typeof(d)=="string"){if(window.ActiveXObject&&typeof(c.loadXML)!="undefined"){if(!c.loadXML(d)){b=c.createElement("Root");c.appendChild(b)}}else{var a=new DOMParser();c=a.parseFromString(d,"text/xml")}}else{b=c.createElement("Root");c.appendChild(b)}this.__XmlDoc=c;this.SearchNode=function(g){b=null;if(window.ActiveXObject){b=c.selectSingleNode("//Root/Node[@ParamName='"+g+"']")}else{var f=c.documentElement;for(var e=0;e-1){return"http://bbs.coal.com.cn"}else{return window.location.href}}}function serializeXml(a){var b=new XMLSerializer();return b.serializeToString(a)}function fnOK(){if(parent.document.getElementById("ifrUserInfo")!=null){if(parent.location.href.indexOf("member_wrong")>-1&&parent.location.search.length>0){parent.fnOK()}else{parent.location.reload()}}else{window.location.reload()}}function fnExitCallBack(d){__bIsCallBack=true;if(d=="1"){if(window.location.search!=""&&window.location.search!=null){window.location.href=window.location.search.substring(1);return}try{if(parent.location.search!=""&&parent.location.search!=null){parent.location.href=parent.location.search.substring(1);return}}catch(b){}}var a=new Cookie();a.SetValue("__IsOpen__","",-1);a.SetValue("CookiePath","",-1);var c=new ParamClass(d);if(parent.document.getElementById("ifrUserInfo")!=null){parent.location.href=c.GetValue("UrlStr")}else{window.location.href=c.GetValue("UrlStr")}}function fnExit(){parent.location.href="http://www.coal.com.cn/quit.aspx?BackUrl="+parent.location.href}function fnReSetPage(a){switch(a.keyCode){case 37:if(typeof(strPrePage)!="undefined"&&strPrePage!=""){window.location.href=strPrePage}else{if(_getObj("ifrMain")!=null&&typeof(_getObj("ifrMain").contentWindow.strPrePage)!="undefined"&&_getObj("ifrMain").contentWindow.strPrePage!=""){_getObj("ifrMain").contentWindow.location.href=_getObj("ifrMain").contentWindow.strPrePage}}break;case 39:if(typeof(strNextPage)!="undefined"&&strNextPage!=""){window.location.href=strNextPage}else{if(_getObj("ifrMain")!=null&&typeof(_getObj("ifrMain").contentWindow.strNextPage)!="undefined"&&_getObj("ifrMain").contentWindow.strNextPage!=""){_getObj("ifrMain").contentWindow.location.href=_getObj("ifrMain").contentWindow.strNextPage}}break}}function __fnSetPageAction(){AttachEvent(document,"keydown",fnReSetPage)}function fnGetEvent(a){var b=null;if(a==null){b=__bIsIE?window.event:fnSearchEvent()}else{b=a}return b}function IsNumber(a){return/^[0-9]+$/ig.test(a)}function IsFloat(a){return/^[0-9\.]+$/ig.test(a)}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.lefttrim=function(){return this.replace(/^\s+/g,"")};String.prototype.righttrim=function(){return this.replace(/\s+$/g,"")};String.prototype.alltrim=function(){return this.replace(/[ ]/g,"")};AttachEvent(window,"load",__fnSetPageAction);