var HXWWW501;if(!HXWWW501){HXWWW501={}}HXWWW501.HXWebPageGlobalVariables={GetCurrentPageName:function(){var strPageName;if(typeof(mstrCurrentWebPageName)=="string"){strPageName=mstrCurrentWebPageName}else{var i=location.pathname.lastIndexOf("/");strPageName=location.pathname.substr(i+1)}return strPageName},GetWebRootPath:function(){if(typeof(gstrWebRootPath)!="string"){var strPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();alert("Internal Error: The Parameter for WebRootPath do not be specified in web page "+strPageName+"! Please make sure hxwww.Utility.RegisterWebPageGlobalJavaScriptVariables() is called on Page_Load() server side function.");return null}return gstrWebRootPath},GetCurrentCultureName:function(){if(typeof(mstrCurrentWebLanguageCulture)!="string"){var strPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();alert("Internal Error: The Parameter for Current Language Culture do not be specified in web page "+strPageName+"! Please make sure hxwww.Utility.RegisterWebPageGlobalJavaScriptVariables() is called on Page_Load() server side function.");return null}return mstrCurrentWebLanguageCulture},GetHXPageParamUUID:function(){if(typeof(mstrHXPageParamUUID)!="string"){var strPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();alert("Internal Error: The Parameter for Page Parameter UUID do not be specified in web page "+strPageName+"! Please make sure hxwww.Utility.RegisterWebPageGlobalJavaScriptVariables() is called on Page_Load() server side function.");return null}return mstrHXPageParamUUID},GetPageXmlSvcAssemblyName:function(PageXmlSvcAssemblyName){var strAssemblyName;if(PageXmlSvcAssemblyName!=null&&PageXmlSvcAssemblyName!=""){strAssemblyName=PageXmlSvcAssemblyName}else{if(typeof(mstrPageXmlServiceAssemblyName)!="string"){var strPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();alert("Internal Error: The Parameter for PageXmlServiceAssemblyName do not be specified in web page "+strPageName+"! Please make sure hxwww.Utility.RegisterWebPageGlobalJavaScriptVariables() is called on Page_Load() server side function.");return null}strAssemblyName=mstrPageXmlServiceAssemblyName}return strAssemblyName},GetPageXmlSvcClassName:function(PageXmlSvcClassName){var strSvcClassName;if(PageXmlSvcClassName!=null&&PageXmlSvcClassName!=""){strSvcClassName=PageXmlSvcClassName}else{if(typeof(mstrPageXmlServiceClassName)!="string"){var strPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();alert("Internal Error: The Parameter for PageXmlServiceClassName do not be specified in web page "+strPageName+"! Please make sure hxwww.Utility.RegisterWebPageGlobalJavaScriptVariables() is called on Page_Load() server side function.");return null}strSvcClassName=mstrPageXmlServiceClassName}return strSvcClassName}};HXWWW501._BrowserIndependent={};HXWWW501._BrowserIndependent.XML={};HXWWW501._BrowserIndependent.XML.parse=function(text){if(typeof DOMParser!="undefined"){var xmldoc=(new DOMParser()).parseFromString(text,"application/xml")}else{if(typeof ActiveXObject!="undefined"){var xmldoc=new ActiveXObject("Microsoft.XMLDOM");xmldoc.async=false;xmldoc.loadXML(text)}else{alert("safari");throw"不支持的浏览器！"}}return xmldoc};HXWWW501._BrowserIndependent.XML.getDataIsland=function(id){var doc;if(!HXWWW501._BrowserIndependent.XML.cache){HXWWW501._BrowserIndependent.XML.cache={}}doc=HXWWW501._BrowserIndependent.XML.cache[id];if(doc){return doc}doc=document.getElementById(id);if(!doc.documentElement){var docelt=doc.firstChild;while(docelt!=null){if(docelt.nodeType==1){break}docelt=docelt.nextSibling}if(docelt==null){return null}var strXmlData=HXWWW501._BrowserIndependent.XML._build_html_elment_xmlstring(docelt);doc=HXWWW501._BrowserIndependent.XML.parse(strXmlData)}HXWWW501._BrowserIndependent.XML.cache[id]=doc;return doc};HXWWW501._BrowserIndependent.XML._build_html_elment_xmlstring=function(docelt){var sb=new HXWWW501.StringBuilder();var attr;sb.append("<"+docelt.nodeName.toUpperCase());for(var i=0;i<docelt.attributes.length;i++){attr=docelt.attributes[i];sb.append(" "+attr.nodeName.toUpperCase()+'="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(attr.nodeValue)+'"')}sb.append(">");var childNode;for(var i=0;i<docelt.childNodes.length;i++){childNode=docelt.childNodes[i];if(childNode.nodeType==1){sb.append(HXWWW501._BrowserIndependent.XML._build_html_elment_xmlstring(childNode))}}sb.append("</"+docelt.nodeName.toUpperCase()+">");return sb.toString()};HXWWW501._BrowserIndependent.XML.getNodeXmlString=function(node){if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(node)}else{if(node.xml!=null){return node.xml}else{throw"XML.serialize() can't serialize: "+node}}};HXWWW501._BrowserIndependent.XML.getNodeTextString=function(node){if(node==null){return""}if(typeof node.text!="undefined"){return node.text}if(typeof node.textContent!="undefined"){return node.textContent}throw"Invalid xml node: "+node};HXWWW501._BrowserIndependent.XML.XPathExpression=function(xpathText,namespaces){this.xpathText=xpathText;this.namespaces=namespaces;if(document.createExpression){this.xpathExpr=document.createExpression(xpathText,function(prefix){return namespaces[prefix]})}else{this.namespaceString="";if(namespaces!=null){for(var prefix in namespaces){if(this.namespaceString){this.namespaceString+=" "}this.namespaceString+="xmlns:"+prefix+'="'+namespaces[prefix]+'"'}}}};HXWWW501._BrowserIndependent.XML.XPathExpression.prototype.getNodes=function(context){if(this.xpathExpr){var result=this.xpathExpr.evaluate(context,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var a=new Array(result.snapshotLength);for(var i=0;i<result.snapshotLength;i++){a[i]=result.snapshotItem(i)}return a}else{try{var doc=context.ownerDocument;if(doc==null){doc=context}doc.setProperty("SelectionLanguage","XPath");doc.setProperty("SelectionNamespaces",this.namesapceString);if(context==doc){context=doc.documentElement}return context.selectNodes(this.xpathText)}catch(e){throw"当前浏览器不支持 XPath"}}};HXWWW501._BrowserIndependent.XML.XPathExpression.prototype.getNode=function(context){if(this.xpathExpr){var result=this.xpathExpr.evaluate(context,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return result.singleNodeValue}else{try{var doc=context.ownerDocument;if(doc==null){doc=context}doc.setProperty("SelectionLanguage","XPath");doc.setProperty("SelectionNamespaces",this.namesapceString);if(context==doc){context=doc.documentElement}return context.selectSingleNode(this.xpathText)}catch(e){throw"当前浏览器不支持 XPath"}}};HXWWW501._BrowserIndependent.XML.getNodes=function(context,xpathExpr,namespaces){return(new HXWWW501._BrowserIndependent.XML.XPathExpression(xpathExpr,namespaces)).getNodes(context)};HXWWW501._BrowserIndependent.XML.getNode=function(context,xpathExpr,namespaces){return(new HXWWW501._BrowserIndependent.XML.XPathExpression(xpathExpr,namespaces)).getNode(context)};HXWWW501.XmlService={HXUtil_SayToServer:function(SubsystemID,XMLCmdCode,xmlCmdContent){var httpOb;if(typeof ActiveXObject!="undefined"){httpOb=new ActiveXObject("Microsoft.XMLHTTP")}else{httpOb=new XMLHttpRequest()}var aspFile=gstrWebRootPath+"hxpublic/hxxmlservice.aspx";httpOb.open("POST",aspFile,false);httpOb.send(HXWWW501.XmlService._InternalFunctions.HXInternal_WebSayToServer_HXBOD205_Build(SubsystemID,XMLCmdCode,xmlCmdContent));if(HXWWW501._BrowserIndependent.XML.getNodeXmlString(httpOb.responseXML)==""){var intBeginIndex_FriendMsgString=httpOb.responseText.indexOf("trusthx_app_offline_html_page_flag__used_for_hxxmlservice_friend_notice");if(intBeginIndex_FriendMsgString!=-1){intBeginIndex_FriendMsgString=httpOb.responseText.indexOf(">",intBeginIndex_FriendMsgString+1);if(intBeginIndex_FriendMsgString==-1){alert(httpOb.responseText)}else{var intEndIndex_FriendMsgString=httpOb.responseText.indexOf("</span>",intBeginIndex_FriendMsgString+1);var strMsgText=(intEndIndex_FriendMsgString==-1?httpOb.responseText.substr(intBeginIndex_FriendMsgString+1):httpOb.responseText.substring(intBeginIndex_FriendMsgString+1,intEndIndex_FriendMsgString));strMsgText=strMsgText.replace(/<br \/>/g,"\r\n");alert(strMsgText)}return null}alert("Xml Service Processing Class Load Failed. Detail Message:\r\n"+httpOb.responseText);return null}return HXWWW501.XmlService._InternalFunctions.HXInternal_WebSayToServer_HXBOD205_ErrorHandle(httpOb.responseXML)},HXUtil_SayToServerAsync:function(SubsystemID,XMLCmdCode,xmlCmdContent,strMsgForSuccess,ResponseFunction){var httpOb;if(typeof ActiveXObject!="undefined"){httpOb=new ActiveXObject("Microsoft.XMLHTTP")}else{httpOb=new XMLHttpRequest()}httpOb.onreadystatechange=HXWWW501.XmlService._InternalFunctions.HXInternal_GetResponseProcessHandlerFunction(httpOb,strMsgForSuccess,ResponseFunction);var aspFile=gstrWebRootPath+"hxpublic/hxxmlservice.aspx";httpOb.open("POST",aspFile,true);httpOb.send(HXWWW501.XmlService._InternalFunctions.HXInternal_WebSayToServer_HXBOD205_Build(SubsystemID,XMLCmdCode,xmlCmdContent))},HXUtil_CallPageXmlService:function(PageXmlSvcCode,PageXmlSvcCnt,PageXmlSvcAssemblyName,PageXmlSvcClassName){var strAssemblyName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcAssemblyName(PageXmlSvcAssemblyName);if(strAssemblyName==null){return null}var strSvcClassName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcClassName(PageXmlSvcClassName);if(strSvcClassName==null){return null}var xmlCmdContent=HXWWW501.XmlService._InternalFunctions.HXInternal_BuildPageXmlSvcXmlCmdContent(PageXmlSvcCode,PageXmlSvcCnt,strAssemblyName,strSvcClassName);return HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_PAGE_XML_SERVICE",xmlCmdContent)},HXUtil_CallPageXmlServiceAsync:function(PageXmlSvcCode,PageXmlSvcCnt,ResponseFunction,PageXmlSvcAssemblyName,PageXmlSvcClassName){var strAssemblyName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcAssemblyName(PageXmlSvcAssemblyName);if(strAssemblyName==null){return null}var strSvcClassName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcClassName(PageXmlSvcClassName);if(strSvcClassName==null){return null}var xmlCmdContent=HXWWW501.XmlService._InternalFunctions.HXInternal_BuildPageXmlSvcXmlCmdContent(PageXmlSvcCode,PageXmlSvcCnt,strAssemblyName,strSvcClassName);HXWWW501.XmlService.HXUtil_SayToServerAsync("HXSM","HXSM_PAGE_XML_SERVICE",xmlCmdContent,null,ResponseFunction)},HXUtil_CallPageXmlServiceAsyncWithProgressBar:function(PageXmlSvcCode,PageXmlSvcCnt,fnResponseCallback,blnFastOrSlow,PageXmlSvcAssemblyName,PageXmlSvcClassName){var strAssemblyName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcAssemblyName(PageXmlSvcAssemblyName);if(strAssemblyName==null){return null}var strSvcClassName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcClassName(PageXmlSvcClassName);if(strSvcClassName==null){return null}if(blnFastOrSlow==null){blnFastOrSlow=true}HXWWW501.Utility._InternalFunctions.HXUtil_ShowProgressBar();var fnTemp=function(strXmlResult){HXWWW501.Utility._InternalFunctions.HXUtil_HideProgressBar();if(fnResponseCallback!=null){fnResponseCallback(strXmlResult)}};HXWWW501.XmlService.HXUtil_CallPageXmlServiceAsync(PageXmlSvcCode,PageXmlSvcCnt,fnTemp,strAssemblyName,strSvcClassName)},HXUtil_RegisterParameterValueToServer:function(strParamName1,strParamValue1){var numArgs=arguments.length;if(numArgs<2){alert("parameters error when calling HXUtil_RegisterParameterValueToServer() function");return""}var sb_AllParamInfo=new HXWWW501.StringBuilder();sb_AllParamInfo.append("<RS_DATA>");for(var i=0;i<numArgs;i+=2){sb_AllParamInfo.append('<RS_ROW PARAM_NAME="');sb_AllParamInfo.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i]).toUpperCase());sb_AllParamInfo.append('" PARAM_VALUE="');sb_AllParamInfo.append(arguments[i+1]==null?"":HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i+1]));sb_AllParamInfo.append('" />')}sb_AllParamInfo.append("</RS_DATA>");var strReturnValue=HXWWW501.XmlService._InternalFunctions.HXInternal_RegisterServerSessionValue("HXPARAM",sb_AllParamInfo.toString(),true);if(strReturnValue==null){return""}return strReturnValue},HXUtil_GetUITextOnServer:function(strTextCode){return HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_UTILITY_GET_HXEIMS_CORE_UI_TEXT",strTextCode)},HXUtil_CallObjectXmlService:function(strObjectCode,strObjectXmlSvcCode,strObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,strObjectXmlSvcAssemblyName,strObjectXmlSvcClassName){var strAssemblyName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcAssemblyName(strObjectXmlSvcAssemblyName);if(strAssemblyName==null){return null}var strSvcClassName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcClassName(strObjectXmlSvcClassName);if(strSvcClassName==null){return null}var xmlCmdContent=HXWWW501.XmlService._InternalFunctions.HXInternal_BuildObjectXmlSvcXmlCmdContent(strObjectCode,strObjectXmlSvcCode,strObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,strAssemblyName,strSvcClassName);return HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_OBJECT_XML_SERVICE",xmlCmdContent)},HXUtil_CallObjectXmlServiceAsync:function(strObjectCode,strObjectXmlSvcCode,strObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,ResponseFunction,strObjectXmlSvcAssemblyName,strObjectXmlSvcClassName){var strAssemblyName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcAssemblyName(strObjectXmlSvcAssemblyName);if(strAssemblyName==null){return null}var strSvcClassName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcClassName(strObjectXmlSvcClassName);if(strSvcClassName==null){return null}var xmlCmdContent=HXWWW501.XmlService._InternalFunctions.HXInternal_BuildObjectXmlSvcXmlCmdContent(strObjectCode,strObjectXmlSvcCode,strObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,strAssemblyName,strSvcClassName);HXWWW501.XmlService.HXUtil_SayToServerAsync("HXSM","HXSM_OBJECT_XML_SERVICE",xmlCmdContent,null,ResponseFunction)},HXUtil_CallObjectXmlServiceAsyncWithProgressBar:function(strObjectCode,strObjectXmlSvcCode,strObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,fnResponseCallback,blnFastOrSlow,strObjectXmlSvcAssemblyName,strObjectXmlSvcClassName){var strAssemblyName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcAssemblyName(strObjectXmlSvcAssemblyName);if(strAssemblyName==null){return null}var strSvcClassName=HXWWW501.HXWebPageGlobalVariables.GetPageXmlSvcClassName(strObjectXmlSvcClassName);if(strSvcClassName==null){return null}if(blnFastOrSlow==null){blnFastOrSlow=true}HXWWW501.Utility._InternalFunctions.HXUtil_ShowProgressBar();var fnTemp=function(strXmlResult){HXWWW501.Utility._InternalFunctions.HXUtil_HideProgressBar();if(fnResponseCallback!=null){fnResponseCallback(strXmlResult)}};HXWWW501.XmlService.HXUtil_CallObjectXmlServiceAsync(strObjectCode,strObjectXmlSvcCode,strObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,fnTemp,strAssemblyName,strSvcClassName)}};HXWWW501.XmlService._InternalFunctions={HXInternal_WebSayToServer_HXBOD205_ErrorHandle:function(xmldoc){var status=HXWWW501._BrowserIndependent.XML.getNodeTextString(HXWWW501._BrowserIndependent.XML.getNode(xmldoc,"/HXBOD205_CONFIRM/STATUSLVL"));var msg=HXWWW501._BrowserIndependent.XML.getNodeTextString(HXWWW501._BrowserIndependent.XML.getNode(xmldoc,"/HXBOD205_CONFIRM/DESCRIPTN"));var result=HXWWW501._BrowserIndependent.XML.getNodeTextString(HXWWW501._BrowserIndependent.XML.getNode(xmldoc,"/HXBOD205_CONFIRM/CONFIRM_DATA"));if(status==0){return(result)}if(status==1){alert(msg);return(result)}if(status==2){alert(msg);return(null)}if(status==3){alert("error happened. "+msg);return(null)}},HXInternal_WebSayToServer_HXBOD205_Build:function(SubsystemID,XMLCmdCode,xmlCmdContent){var sb_xmlcmd_content=new HXWWW501.StringBuilder();sb_xmlcmd_content.append("<HXBOD205><CNTROLAREA>");sb_xmlcmd_content.append("<SYSTEM/><SUBSYSTEM>");sb_xmlcmd_content.append(SubsystemID);sb_xmlcmd_content.append("</SUBSYSTEM>");sb_xmlcmd_content.append("<TASK>");sb_xmlcmd_content.append(XMLCmdCode);sb_xmlcmd_content.append("</TASK></CNTROLAREA>");sb_xmlcmd_content.append("<DATAAREA>");sb_xmlcmd_content.append(xmlCmdContent);sb_xmlcmd_content.append("</DATAAREA></HXBOD205>");return sb_xmlcmd_content.toString()},HXInternal_GetResponseProcessHandlerFunction:function(httpob,strMsgForSuccess,ResponseFunction){return function(){if(httpob.readyState!=4){return}if(HXWWW501._BrowserIndependent.XML.getNodeXmlString(httpob.responseXML)==""){alert("Xml Service Processing Class Load Failed. Detail Message:\r\n"+httpob.responseText);if(ResponseFunction!=null){ResponseFunction(null)}return}var strReturnValue=HXWWW501.XmlService._InternalFunctions.HXInternal_WebSayToServer_HXBOD205_ErrorHandle(httpob.responseXML);if(strReturnValue!=null){if(strMsgForSuccess!=null&&strMsgForSuccess!=""){alert(strMsgForSuccess)}}if(ResponseFunction!=null){ResponseFunction(strReturnValue)}}},HXInternal_BuildPageXmlSvcXmlCmdContent:function(PageXmlSvcCode,PageXmlSvcCnt,PageXmlSvcAssemblyName,PageXmlSvcClassName){var strHXPageParamUUID="";if(typeof(mstrHXPageParamUUID)=="string"){strHXPageParamUUID=mstrHXPageParamUUID}var strHXPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();if(PageXmlSvcCnt==null){PageXmlSvcCnt=""}var sb_xmlcmd=new HXWWW501.StringBuilder();sb_xmlcmd.append('<PAGE_XML_SERVICE ASSEMBLY="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(PageXmlSvcAssemblyName));sb_xmlcmd.append('" CLASS_NAME="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(PageXmlSvcClassName));sb_xmlcmd.append('" HX_PAGE_NAME="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strHXPageName));sb_xmlcmd.append('" HX_PAGE_PARAM_UUID="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strHXPageParamUUID));sb_xmlcmd.append('" PAGE_XML_SERVICE_CODE="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(PageXmlSvcCode));sb_xmlcmd.append('" >');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(PageXmlSvcCnt));sb_xmlcmd.append("</PAGE_XML_SERVICE>");return sb_xmlcmd.toString()},HXInternal_BuildObjectXmlSvcXmlCmdContent:function(ObjectCode,ObjectXmlSvcCode,ObjectXmlSvcCnt,intUseDefaultProcessForBasicOperation,ObjectXmlSvcAssemblyName,ObjectXmlSvcClassName){var strHXPageParamUUID="";if(typeof(mstrHXPageParamUUID)=="string"){strHXPageParamUUID=mstrHXPageParamUUID}var strHXPageName=HXWWW501.HXWebPageGlobalVariables.GetCurrentPageName();if(ObjectXmlSvcCode==null){ObjectXmlSvcCode=""}if(intUseDefaultProcessForBasicOperation==null){intUseDefaultProcessForBasicOperation=1}var sb_xmlcmd=new HXWWW501.StringBuilder();sb_xmlcmd.append('<OBJECT_XML_SERVICE ASSEMBLY="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(ObjectXmlSvcAssemblyName));sb_xmlcmd.append('" CLASS_NAME="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(ObjectXmlSvcClassName));sb_xmlcmd.append('" HX_PAGE_NAME="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strHXPageName));sb_xmlcmd.append('" HX_PAGE_PARAM_UUID="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strHXPageParamUUID));sb_xmlcmd.append('" OBJECT_CODE="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(ObjectCode));sb_xmlcmd.append('" OBJECT_XML_SERVICE_CODE="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(ObjectXmlSvcCode));sb_xmlcmd.append('" USE_DEFAULT_PROCESS_FOR_BASIC_OPERATION="');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(intUseDefaultProcessForBasicOperation));sb_xmlcmd.append('" >');sb_xmlcmd.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(ObjectXmlSvcCnt));sb_xmlcmd.append("</OBJECT_XML_SERVICE>");return sb_xmlcmd.toString()},HXUtil_AppendParameterValueToServer:function(strHXPageParamUUID,strParamName1,strParamValue1){var numArgs=arguments.length;if(numArgs<3){alert("parameters error when calling HXUtil_AppendParameterValueToServer() function");return""}var sb_AllParamInfo=new HXWWW501.StringBuilder();sb_AllParamInfo.append("<RS_DATA>");for(var i=1;i<numArgs;i+=2){sb_AllParamInfo.append('<RS_ROW PARAM_NAME="');sb_AllParamInfo.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i]).toUpperCase());sb_AllParamInfo.append('" PARAM_VALUE="');sb_AllParamInfo.append(arguments[i+1]==null?"":HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i+1]));sb_AllParamInfo.append('" />')}sb_AllParamInfo.append("</RS_DATA>");var strAllXmlData=HXWWW501.Utility.HXUtil_BuildAllXmlDatas("hx_page_param_uuid",strHXPageParamUUID,"appended_param_values",sb_AllParamInfo.toString());var strReturnValue=HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_UTILITY_APPEND_SERVER_PARAMETER_VALUE",strAllXmlData);if(strReturnValue==null){return""}return strReturnValue},HXUtil_RemoveParameterValueToServer:function(strHXPageParamUUID,strParamName1){var numArgs=arguments.length;if(numArgs<2){alert("parameters error when calling HXUtil_RemoveParameterValueToServer() function");return""}var sb_AllParamInfo=new HXWWW501.StringBuilder();sb_AllParamInfo.append("<RS_DATA>");for(var i=1;i<numArgs;i++){sb_AllParamInfo.append('<RS_ROW PARAM_NAME="');sb_AllParamInfo.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i]).toUpperCase());sb_AllParamInfo.append('" />')}sb_AllParamInfo.append("</RS_DATA>");var strAllXmlData=HXWWW501.Utility.HXUtil_BuildAllXmlDatas("hx_page_param_uuid",strHXPageParamUUID,"removed_param_name",sb_AllParamInfo.toString());var strReturnValue=HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_UTILITY_REMOVE_SERVER_PARAMETER_VALUE",strAllXmlData);if(strReturnValue==null){return""}return strReturnValue},HXInternal_RegisterServerSessionValue:function(strSessionVariableName,strVariableValue,blnIsCreateSuffix){strSessionVariableName=HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSessionVariableName);strVariableValue=HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strVariableValue);var intIsCreateSuffix;if(blnIsCreateSuffix==null||blnIsCreateSuffix!=true){intIsCreateSuffix=0}else{intIsCreateSuffix=1}var strXml='<RS_ROW VARIABLE_NAME="'+strSessionVariableName+'" VARIABLE_VALUE="'+strVariableValue+'" IS_CREATE_SUFFIX="'+intIsCreateSuffix+'" />';var xmlresult=HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_UTILITY_REGISTER_SERVER_SESSION_VALUE",strXml);return(xmlresult)}};HXWWW501.StringBuilder=function(){this._strings_=new Array()};HXWWW501.StringBuilder.prototype.append=function(str){this._strings_.push(str)};HXWWW501.StringBuilder.prototype.toString=function(){return this._strings_.join("")};HXWWW501.HXTimer=function(){this._interval=500;this._enabled=false;this._uniqueID=null;this._timer=null;this._tickhandler=null};HXWWW501.HXTimer.prototype={get_uniqueID:function(){return this._uniqueID},set_uniqueID:function(a){this._uniqueID=a},get_enabled:function(){return this._enabled},set_enabled:function(blnNewEnabledStatus){var blnOldEnabledStatus=this._enabled;if(blnOldEnabledStatus!=blnNewEnabledStatus){if(blnOldEnabledStatus==true){this._stopTimer()}this._enabled=blnNewEnabledStatus;if(blnNewEnabledStatus==true){this._startTimer()}}},get_interval:function(){return this._interval},set_interval:function(intInterval){if(this._interval!=intInterval){this._interval=intInterval;if(this._enabled){this._stopTimer();this._startTimer()}}},set_tickhandler:function(f){this._tickhandler=f},_startTimer:function(){this._timer=window.setTimeout(HXWWW501.Utility._InternalFunctions.CreateDelegate(this,this._raisetick),this.get_interval())},_stopTimer:function(){if(this._timer!==null){window.clearTimeout(this._timer);this._timer=null}},_raisetick:function(){this._tickhandler();this._startTimer()}};HXWWW501.Utility={};HXWWW501.Utility.HXUtil_Login=function(strUserCode,strPassword,strVerifyCode,strCultureName,strCustomizedData){if(strUserCode==null){strUserCode=""}if(strPassword==null){strPassword=""}if(strCultureName==null){strCultureName=""}if(strCustomizedData==null){strCustomizedData=""}if(strVerifyCode==null){strVerifyCode=""}var strXmlLoginData='<RS_DATA><RS_ROW CULTURE_NAME="" USER_CODE="" PASSWORD="" USER_ID="" ID_TYPE="2" CUSTOMIZED_DATA="" VERIFY_CODE="" /></RS_DATA>';var xmlLoginData=HXWWW501._BrowserIndependent.XML.parse(strXmlLoginData);var objXmlNodeOfRSRow=xmlLoginData.getElementsByTagName("RS_ROW").item(0);objXmlNodeOfRSRow.setAttribute("USER_CODE",strUserCode);objXmlNodeOfRSRow.setAttribute("PASSWORD",strPassword);objXmlNodeOfRSRow.setAttribute("CULTURE_NAME",strCultureName);objXmlNodeOfRSRow.setAttribute("CUSTOMIZED_DATA",strCustomizedData);objXmlNodeOfRSRow.setAttribute("VERIFY_CODE",strVerifyCode);var xmlresult=HXWWW501.XmlService.HXUtil_SayToServer("HXSM","HXSM_USER_LOGIN",HXWWW501._BrowserIndependent.XML.getNodeXmlString(xmlLoginData));if(xmlresult!=null){if(xmlresult.indexOf("HXSM_LOGIN_FIRST_AND_NEED_RESET_PASSWORD")==0){}top.location.href=gstrWebRootPath+"default.aspx"}};HXWWW501.Utility.HXUtil_Logout=function(strLogoutWebPageName){var strHintMessage=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_GENERAL__LOGOUT_CONFIRM");if(strHintMessage!=null){if(confirm(strHintMessage)==false){return}}if(strLogoutWebPageName==null||strLogoutWebPageName==""){strLogoutWebPageName="common/logout.aspx"}var pgName=gstrWebRootPath+strLogoutWebPageName;top.location.href=pgName};HXWWW501.Utility._InternalFunctions={HXUtil_ShowProgressBar:function(blnShowFastOrSlow,strCustomizedAnimationImageFileName){HXWWW501.Utility._InternalFunctions._show_window_cover_div_layer("hxwww501_progessbar_cover_div_to_disable_mouse_input");var objWin=window.top;if(objWin.document.all("hxwww501_progessbar_img_for_animation")==null){if(strCustomizedAnimationImageFileName==null||strCustomizedAnimationImageFileName==""){strCustomizedAnimationImageFileName=(blnShowFastOrSlow?"hxpub_waiting_hint_fast.gif":"hxpub_waiting_hint_slow.gif")}var _img=objWin.document.createElement("img");_img.id="hxwww501_progessbar_img_for_animation";_img.style.position="absolute";_img.style.zIndex=10001;_img.src=gstrWebRootPath+"images/"+strCustomizedAnimationImageFileName;_img.style.left=(objWin.document.body.offsetWidth-160)/2;_img.style.top=(objWin.document.body.offsetHeight-16)/2;objWin.document.body.appendChild(_img);if(_img.setActive){_img.setActive()}}objWin.document.body.disabled=true},HXUtil_HideProgressBar:function(){var objWin=window.top;var objDiv=objWin.document.getElementById("hxwww501_progessbar_cover_div_to_disable_mouse_input");if(objDiv!=null){objWin.document.body.removeChild(objDiv)}var objImg=objWin.document.getElementById("hxwww501_progessbar_img_for_animation");if(objImg!=null){objWin.document.body.removeChild(objImg)}objWin.document.body.disabled=false},CreateDelegate:function(objElement,CallbackFunction){var args=[];for(var i=2;i<arguments.length;i++){args.push(arguments[i])}return function(){return CallbackFunction.apply(objElement,args)}},is_js_function_defined:function(str_callback_func_name){if(str_callback_func_name==null){return false}if(str_callback_func_name==""){return false}try{if(typeof(eval(str_callback_func_name))!="function"){return false}}catch(e){return false}return true},_get_element_top:function(el){var et=0,st=0;while(el){if(el.tagName!="BODY"){st+=el.scrollTop}et+=el.offsetTop;el=el.offsetParent}return et-st},_get_element_left:function(el){var et=0,st=0;while(el){if(el.tagName!="BODY"){st+=el.scrollLeft}et+=el.offsetLeft;el=el.offsetParent}return et-st},_show_window_cover_div_layer:function(str_div_name){var objWin=window.top;if(objWin.document.all(str_div_name)==null){var _div=objWin.document.createElement("div");_div.id=str_div_name;_div.style.position="absolute";_div.style.zIndex=10000;_div.style.top=0;_div.style.left=0;_div.style.backgroundColor="#ffffff";_div.style.opacity=0.75;_div.style.filter="Alpha(Opacity=80)";_div.style.width=(objWin.document.body.scrollWidth>objWin.document.body.offsetWidth?objWin.document.body.scrollWidth:objWin.document.body.offsetWidth)+"px";_div.style.height=(objWin.document.body.offsetHeight>objWin.document.body.scrollHeight?objWin.document.body.offsetHeight:objWin.document.body.scrollHeight)+"px";objWin.document.body.appendChild(_div);if(_div.setActive){_div.setActive()}}else{objWin.document.all(str_div_name).style.visibility="visible"}}};HXWWW501.Utility.HXUtil_GetDateTime=function(dt){if(dt==null){dt=new Date();return dt}if(dt instanceof Date){return new Date(dt.getFullYear(),dt.getMonth(),dt.getDate(),dt.getHours(),dt.getMinutes(),dt.getSeconds(),dt.getMilliseconds())}var strDate=dt.toString();strDatePartArray=strDate.split(/\D/);strDatePartArray[1]--;eval("var dt = new Date("+strDatePartArray.join(",")+")");if(isNaN(dt)){return null}return dt};HXWWW501.Utility.HXUtil_GetDateAsInteger=function(dt){dt=HXWWW501.Utility.HXUtil_GetDateTime(dt);if(dt==null){return null}return dt.getFullYear()*10000+(dt.getMonth()+1)*100+dt.getDate()};HXWWW501.Utility.HXUtil_GetDateAsString=function(dt){var intdate=HXWWW501.Utility.HXUtil_GetDateAsInteger(dt);if(intdate==null){return null}var str=intdate.toString();str=str.substr(0,4)+"-"+str.substr(4,2)+"-"+str.substr(6,2);return str};HXWWW501.Utility.HXUtil_GetDateTimeAsString=function(dt){dt=HXWWW501.Utility.HXUtil_GetDateTime(dt);if(dt==null){return null}var strDatePart=HXWWW501.Utility.HXUtil_GetDateAsString(dt);var strTimePart=dt.getHours().toString()+":"+dt.getMinutes().toString()+":"+dt.getSeconds().toString();return strDatePart+" "+strTimePart};HXWWW501.Utility.HXUtil_IsDate=function(strDate){if(strDate==null){return false}if(typeof(strDate)!="string"){return false}var re=/^(\d{4})[\-\/]([01])?(\d)[\-\/]([0123])?(\d)$/;if(!re.test(strDate)){return false}var ss=strDate.split(/[\-\/ ]/);var intYear=parseInt(ss[0],10);var intMonth=parseInt(ss[1],10);var intDay=parseInt(ss[2],10);if(intMonth<1||intMonth>12){return false}if(intDay>31){return false}if(intDay==31&&(intMonth==2||intMonth==4||intMonth==6||intMonth==9||intMonth==11)){return false}if(intMonth==2&&intDay>29){return false}return true};HXWWW501.Utility.HXUtil_IsTime=function(strTime){if(strTime==null){return false}if(typeof(strTime)!="string"){return false}var re=new RegExp("^\\d{1,2}:\\d{1,2}(:\\d{1,2})?$");if(!re.test(strTime.toString())){return false}var ss=strTime.split(/[:]/);var intHour=parseInt(ss[0],10);var intMinute=parseInt(ss[1],10);var intSecond=0;if(ss.length==3){intSecond=parseInt(ss[2],10)}if(intHour>=24){return false}if(intMinute>=60||intSecond>=60){return false}return true};HXWWW501.Utility.HXUtil_IsIntegerDate=function(val){if(val==null){return false}if(isNaN(val)){return false}var strTemp=val.toString();if(strTemp.toString().length!=8){return false}var strDate=strTemp.substr(0,4)+"-"+strTemp.substr(4,2)+"-"+strTemp.substr(6,2);return HXWWW501.Utility.HXUtil_IsDate(strDate)};HXWWW501.Utility.HXUtil_IsDateTime=function(strDateTime){if(strDateTime==null){return false}if(typeof(strDateTime)!="string"){return false}var intIndexOfFirstSpaceChar=strDateTime.indexOf(" ");var strDatePart=strDateTime.substr(0,intIndexOfFirstSpaceChar);if(!HXWWW501.Utility.HXUtil_IsDate(strDatePart)){return false}var strTimePart=strDateTime.substring(intIndexOfFirstSpaceChar+1);if(!HXWWW501.Utility.HXUtil_IsTime(strTimePart)){return false}return true};HXWWW501.Utility.HXUtil_DateAdd=function(strIntervalType,number,dtOrginal){dt=HXWWW501.Utility.HXUtil_GetDateTime(dtOrginal);if(dt==null){return null}number=parseFloat(number);var intFirstLevelNum=parseInt(number);var dblSecondLevelNum=number-intFirstLevelNum;dblSecondLevelNum=Math.round(dblSecondLevelNum*Math.pow(10,3))/Math.pow(10,3);switch(strIntervalType){case"y":dt.setFullYear(dt.getFullYear()+intFirstLevelNum,dt.getMonth()+dblSecondLevelNum*12);break;case"m":var dtTemp=new Date(dt.getFullYear(),dt.getMonth()+intFirstLevelNum+1,0);if(dtTemp.getDate()<dt.getDate()){dt=dtTemp}else{dt.setMonth(dt.getMonth()+intFirstLevelNum,dt.getDate()+dblSecondLevelNum*30)}break;case"d":dt.setDate(dt.getDate()+intFirstLevelNum);break;case"w":dt.setDate(dt.getDate()+7*intFirstLevelNum);break;case"h":dt.setHours(dt.getHours()+intFirstLevelNum,dt.getMinutes()+dblSecondLevelNum*60);break;case"n":dt.setMinutes(dt.getMinutes()+intFirstLevelNum,dt.getSeconds()+dblSecondLevelNum*60);break;case"s":dt.setSeconds(dt.getSeconds()+intFirstLevelNum,dt.getMilliseconds()+dblSecondLevelNum*1000);break;case"l":dt.setMilliseconds(dt.getMilliseconds()+intFirstLevelNum);break}return dt};HXWWW501.Utility.HXUtil_MarkXMLSpecialChars=function(strText){if(strText==null){return null}if(typeof(strText)!="string"){strText=strText.toString()}var strTemp=strText.replace(/&/g,"&amp;");strTemp=strTemp.replace(/</g,"&lt;");strTemp=strTemp.replace(/>/g,"&gt;");strTemp=strTemp.replace(/"/g,"&quot;");return strTemp};HXWWW501.Utility.HXUtil_MarkSingleQuoteChars=function(strText){if(strText==null){return null}if(typeof(strText)!="string"){strText=strText.toString()}var strTemp=strText.replace(/'/g,"''");return strTemp};HXWWW501.Utility.HXUtil_Round=function(val,scale){if(scale==null||scale<=0){return Math.round(val)}return Math.round(val*Math.pow(10,scale))/Math.pow(10,scale)};HXWWW501.Utility.HXUtil_WebInputBox=function(strTitle,strDefaultValue){var obj=new Object();obj.title=strTitle;obj.default_value=strDefaultValue;return HXWWW501.Navigation.HXUtil_OpenWebDialog(gstrWebRootPath+"hxsm/hxwebinputbox.aspx",obj,400,250,"no")};HXWWW501.Utility.HXUtil_Trim=function(strText){if(strText==null){return null}if(typeof(strText)!="string"){strText=strText.toString()}return strText.replace(/(^\s*)|(\s*$)/g,"")};HXWWW501.Utility.HXUtil_IsNumeric=function(val){return(isNaN(val)?false:true)};HXWWW501.Utility.HXUtil_AttachEvent=function(HtmlElementId,sEvent,fpNotify){var objHtmlElement=(typeof(HtmlElementId)=="string"?document.all(HtmlElementId):HtmlElementId);if(objHtmlElement==null){return}if(objHtmlElement.length==null){if(window.attachEvent){objHtmlElement.attachEvent(sEvent,fpNotify)}else{objHtmlElement.addEventListener(sEvent,fpNotify,false)}}else{for(var i=0;i<objHtmlElement.length;i++){if(window.attachEvent){objHtmlElement[i].attachEvent(sEvent,fpNotify)}else{objHtmlElement[i].addEventListener(sEvent,fpNotify,false)}}}};HXWWW501.Utility.HXUtil_BuildAllXmlDatas=function(strDataBlockCode1,strDataBlockContent1){var i,numArgs=arguments.length;if(numArgs<4){alert("parameters error when calling HXWWW501.Utility.HXUtil_BuildAllXmlDatas() function");return}var sb_all=new HXWWW501.StringBuilder();sb_all.append("<HX_ALL_DATAS>");for(i=0;i<numArgs;i+=2){sb_all.append('<HX_DATA_BLOCK CODE="');sb_all.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i].toLowerCase()));sb_all.append('">');sb_all.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i+1]));sb_all.append("</HX_DATA_BLOCK>")}sb_all.append("</HX_ALL_DATAS>");return sb_all.toString()};HXWWW501.Utility.HXUtil_BoundDataTableCheck=function(objXmlDataList,objTable,blnShowTBody,blnRebindData){if(blnRebindData!=null&&blnRebindData==true){objTable.dataSrc="";objTable.dataSrc="#"+objXmlDataList.id;objTable.refresh()}if(objTable.tBodies.length>0){if(objXmlDataList.xml==""||objXmlDataList.xml.indexOf("<RS_ROW")==-1){objTable.tBodies[0].style.display=(blnShowTBody!=null&&blnShowTBody==true?"":"none")}else{objTable.tBodies[0].style.display=""}}};HXWWW501.Utility.HXUtil_IsInputStringValid=function(strInput,blnAllowSpaceChar){if(strInput==null||strInput==""){return false}if(blnAllowSpaceChar==null||blnAllowSpaceChar!=true){blnAllowSpaceChar=false}if(blnAllowSpaceChar==false){if(strInput.indexOf(" ")!=-1){return false}}var re=new RegExp("[.,:'`/*|?\\\\\"&%$!+\\-[\\]=(){}\\f\\n\\r\\t\\v]");return(!re.test(strInput))};HXWWW501.Utility.HXUtil_IsPopupBlockerOpened=function(){var objWin=window.open("","_blank","width=1,height=1,left=0,top=0,scrollbars=no");if(objWin==null){return true}else{objWin.close();return false}};HXWWW501.Utility.HXUtil_WritieDebugLogOnPage=function(strDebugMessage){if(document.all("hxdiv_debug_log_message_display_area")==null){var strHtmlForDebugLogArea='<div id="hxdiv_debug_log_message_display_area" style="z-index:99999;color:red;"></div>';document.body.insertAdjacentHTML("beforeEnd",strHtmlForDebugLogArea)}var objDiv=document.all("hxdiv_debug_log_message_display_area");var strHtmlForDebug="<div>"+HXWWW501.Utility.HXUtil_GetDateTimeAsString()+"<div>";objDiv.insertAdjacentHTML("beforeEnd",strHtmlForDebug)};HXWWW501.Utility.HXUtil_CheckInputValidation=function(objDoc,strValidGroupName){if(objDoc==null){objDoc=document}var blnIsMustInput,strInputGroup,strInputDataType,strInputCustomRule;var strInputInvalidMsg,strInputInvalidMsgCode;var it=objDoc.all.tags("input");for(var i=0;i<it.length;i++){if(it[i].offsetHeight<=0){continue}strInputGroup=it[i].getAttribute("hx_input_group");if(strValidGroupName==null||(strValidGroupName!=null&&strInputGroup!=null&&strInputGroup.indexOf(strValidGroupName)!=-1)){strInputInvalidMsgCode=it[i].getAttribute("hx_input_invalid_msg_code");strInputInvalidMsg=it[i].getAttribute("hx_input_invalid_msg");if(strInputInvalidMsgCode!=null&&document.all("hxxml_ui_text")!=null){var objxmlnodetemp=document.all("hxxml_ui_text").documentElement.selectSingleNode("//@"+strInputInvalidMsgCode.toUpperCase());if(objxmlnodetemp!=null){strInputInvalidMsg=objxmlnodetemp.text}}blnIsMustInput=it[i].getAttribute("hx_input_is_must")==null?false:true;strInputDataType=it[i].getAttribute("hx_input_data_type")==null?"normal_str":it[i].getAttribute("hx_input_data_type").toLowerCase();strInputCustomRule=it[i].getAttribute("hx_input_custom_rule");if(blnIsMustInput==true&&it[i].value==""){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__VALUE_CANNOT_EMPTY")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}if(strInputDataType=="word_str"&&it[i].value!=""){var re=new RegExp("^[\\w]+$");if(!re.test(it[i].value)){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__WORDSTR_LIMITATION")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType=="key_str"&&it[i].value!=""){if(!HXWWW501.Utility.HXUtil_IsInputStringValid(it[i].value)){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__KEYSTR_LIMITATION")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType=="date"&&it[i].value!=""){if(HXWWW501.Utility.HXUtil_IsDate(it[i].value)==false){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__INVALID_DATE")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType=="time"&&it[i].value!=""){if(HXWWW501.Utility.HXUtil_IsTime(it[i].value)==false){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__INVALID_TIME")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType=="datetime"&&it[i].value!=""){if(HXWWW501.Utility.HXUtil_IsDateTime(it[i].value)==false){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__INVALID_DATETIME")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType=="intdate"&&it[i].value!=""){if(HXWWW501.Utility.HXUtil_IsIntegerDate(it[i].value)==false){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__INVALID_INTDATE")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType.indexOf("number")!=-1&&it[i].value!=""){var strNumberSign,strNumberPrecision,strNumberScale;var re1,re;strNumberSign=(strInputDataType.substr(strInputDataType.length-1,1));if(strNumberSign!="+"&&strNumberSign!="-"){strNumberSign=""}if(strInputDataType.indexOf("(")==-1||strInputDataType.indexOf(")")==-1){strNumberPrecision="";strNumberScale=""}else{var strTemp=strInputDataType.substring(strInputDataType.indexOf("(")+1,strInputDataType.indexOf(")"));strTemp=strTemp.replace(/ /g,"");if(strTemp.indexOf(",")==-1){strNumberPrecision=strTemp;strNumberScale=""}else{strNumberPrecision=strTemp.substr(0,strTemp.indexOf(","));strNumberScale=strTemp.substr(strTemp.indexOf(",")+1)}re1=new RegExp("^\\d{1,2}$");if(re1.test(strNumberPrecision)==false){strNumberPrecision=""}if(re1.test(strNumberScale)==false){strNumberScale=""}if(strNumberPrecision!=""&&strNumberScale!=""){if(parseInt(strNumberScale)>=parseInt(strNumberPrecision)){strNumberScale=parseInt(strNumberPrecision)-1}}}var strRegExpContent;if(strNumberSign==""){strRegExpContent="^[+-]?"}else{if(strNumberSign=="+"){strRegExpContent="^[+]?"}else{strRegExpContent="^-"}}if(strNumberPrecision==""){strRegExpContent+="\\d*[.]?\\d*$"}else{if(strNumberScale==""){strRegExpContent+="\\d{1,"+strNumberPrecision+"}$"}else{strRegExpContent+="\\d{1,"+(parseInt(strNumberPrecision)-parseInt(strNumberScale))+"}([.]\\d{0,"+strNumberScale+"})?$"}}re=new RegExp(strRegExpContent);var strTempValue=it[i].value;strTempValue=strTempValue.replace(/,/g,"");if(strTempValue!=null&&strTempValue!=""&&strTempValue.substr(strTempValue.length-1)=="%"){strTempValue=strTempValue.substr(0,strTempValue.length-1);if(HXWWW501.Utility.HXUtil_IsNumeric(strTempValue)){strTempValue=(parseFloat(strTempValue)/100).toString()}}if(HXWWW501.Utility.HXUtil_IsNumeric(strTempValue)==false||re.test(strTempValue)==false){if(strInputInvalidMsg==null){if(HXWWW501.Utility.HXUtil_IsNumeric(strTempValue)==false){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__INVALID_NUMBER")}else{if(strNumberSign=="+"&&parseInt(strTempValue)<0){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__NUMBER_MUST_BE_POSITIVE")}else{if(strNumberSign=="-"&&parseInt(strTempValue)>0){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__NUMBER_MUST_BE_NEGATIVE")}else{strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__NUMBER_PRECISION_INVALID");if(strNumberPrecision==""){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__INVALID_NUMBER")}else{var intTemp1,intTemp2,strTemp;if(strNumberScale==""){intTemp2=0}else{intTemp2=parseInt(strNumberScale)}intTemp1=parseInt(strNumberPrecision)-intTemp2;strTemp="";for(var ii=0;ii<intTemp1;ii++){strTemp+="n"}if(intTemp2>0){strTemp+=".";for(var ii=0;ii<intTemp2;ii++){strTemp+="n"}}strInputInvalidMsg+=" "+strTemp}}}}}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}if(strInputDataType=="custom"&&it[i].value!=""&&strInputCustomRule!=null){var re=new RegExp(strInputCustomRule);if(re.test(it[i].value)==false){if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__CUSTOM_RULE_CHECK_FAILED");strInputInvalidMsg+=" "+strInputCustomRule}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}}}it=objDoc.all.tags("select");for(var i=0;i<it.length;i++){if(it[i].offsetHeight<=0){continue}strInputGroup=it[i].getAttribute("hx_input_group");if(strValidGroupName==null||(strValidGroupName!=null&&strInputGroup!=null&&strInputGroup.indexOf(strValidGroupName)!=-1)){strInputInvalidMsgCode=it[i].getAttribute("hx_input_invalid_msg_code");strInputInvalidMsg=it[i].getAttribute("hx_input_invalid_msg");blnIsMustInput=it[i].getAttribute("hx_input_is_must")==null?false:true;if(blnIsMustInput==true&&it[i].value==""){if(strInputInvalidMsgCode!=null&&document.all("hxxml_ui_text")!=null){var objxmlnodetemp=document.all("hxxml_ui_text").documentElement.selectSingleNode("//@"+strInputInvalidMsgCode.toUpperCase());if(objxmlnodetemp!=null){strInputInvalidMsg=objxmlnodetemp.text}}if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__VALUE_CANNOT_EMPTY")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}}it=objDoc.all.tags("textarea");for(var i=0;i<it.length;i++){if(it[i].offsetHeight<=0){continue}strInputGroup=it[i].getAttribute("hx_input_group");if(strValidGroupName==null||(strValidGroupName!=null&&strInputGroup!=null&&strInputGroup.indexOf(strValidGroupName)!=-1)){strInputInvalidMsgCode=it[i].getAttribute("hx_input_invalid_msg_code");strInputInvalidMsg=it[i].getAttribute("hx_input_invalid_msg");blnIsMustInput=it[i].getAttribute("hx_input_is_must")==null?false:true;if(blnIsMustInput==true&&it[i].value==""){if(strInputInvalidMsgCode!=null&&document.all("hxxml_ui_text")!=null){var objxmlnodetemp=document.all("hxxml_ui_text").documentElement.selectSingleNode("//@"+strInputInvalidMsgCode.toUpperCase());if(objxmlnodetemp!=null){strInputInvalidMsg=objxmlnodetemp.text}}if(strInputInvalidMsg==null){strInputInvalidMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_INPUT_VALIDATION__VALUE_CANNOT_EMPTY")}alert(strInputInvalidMsg);try{it[i].focus()}catch(ex){}return false}}}return true};HXWWW501.Utility.HXUtil_DisableInput=function(blnTrueOrFalse,objDoc,strValidGroupName){if(objDoc==null){objDoc=document}if(blnTrueOrFalse==null){blnTrueOrFalse=true}var it=objDoc.all.tags("input");for(var i=0;i<it.length;i++){if(strValidGroupName==null||(it[i].getAttribute("hx_input_group")!=null&&it[i].getAttribute("hx_input_group").indexOf(strValidGroupName)!=-1)){it[i].disabled=blnTrueOrFalse}}it=objDoc.all.tags("select");for(var i=0;i<it.length;i++){if(strValidGroupName==null||(it[i].getAttribute("hx_input_group")!=null&&it[i].getAttribute("hx_input_group").indexOf(strValidGroupName)!=-1)){it[i].disabled=blnTrueOrFalse}}it=objDoc.all.tags("textarea");for(var i=0;i<it.length;i++){if(strValidGroupName==null||(it[i].getAttribute("hx_input_group")!=null&&it[i].getAttribute("hx_input_group").indexOf(strValidGroupName)!=-1)){it[i].disabled=blnTrueOrFalse}}};HXWWW501.Utility.HXUtil_RegisterReportParamValues=function(strParamValue1){var i,numArgs=arguments.length;if(numArgs==0){alert("There is at least one parameter when calling HXUtil_RegisterReportParamValues() function");return}var sb_xml=new HXWWW501.StringBuilder();sb_xml.append("<RS_DATA><RS_ROW ");for(i=0;i<numArgs;i++){sb_xml.append(" PARAM_VALUE_"+(i+1).toString()+'="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i])+'"')}sb_xml.append(" /></RS_DATA>");var strAssemblyName="TrustHX.HXWWW501";var strClassName="TrustHX.HXWWW501.Utility";var strRptParamUUID=HXWWW501.XmlService.HXUtil_CallPageXmlService("HXPGXMLSVC_REGISTER_REPORT_PARAM_VALUES",sb_xml.toString(),strAssemblyName,strClassName);return strRptParamUUID};HXWWW501.Utility.HXUtil_RegisterReportLongParamValues=function(strRptParamUUID,strLongParamValue1){var i,numArgs=arguments.length;if(numArgs<2){alert("There is at least one parameter when calling HXUtil_RegisterReportLongParamValues() function");return}var sb_xml=new HXWWW501.StringBuilder();sb_xml.append("<RS_DATA><RS_ROW ");sb_xml.append(' RPT_PARAM_UUID="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strRptParamUUID)+'"');for(i=1;i<numArgs;i++){sb_xml.append(" LONG_PARAM_VALUE_"+i.toString()+'="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i])+'"')}sb_xml.append(" /></RS_DATA>");var strAssemblyName="TrustHX.HXWWW501";var strClassName="TrustHX.HXWWW501.Utility";strRptParamUUID=HXWWW501.XmlService.HXUtil_CallPageXmlService("HXPGXMLSVC_REGISTER_REPORT_LONG_PARAM_VALUES",sb_xml.toString(),strAssemblyName,strClassName);return strRptParamUUID};HXWWW501.Utility.HXUtil_ImportDataViaTemplate=function(strDataImportTemplateCode,strCustomizedErrorReportPageBeforeShowResult){if(strDataImportTemplateCode==null){strDataImportTemplateCode=""}if(strCustomizedErrorReportPageBeforeShowResult==null){strCustomizedErrorReportPageBeforeShowResult=""}var strDataImportWorkProfileUUID=HXWWW501.XmlService.HXUtil_CallPageXmlService("HXPAGEXMLSVC__CREATE_DATA_IMPORT_PROFILE_VIA_TEMPLATE",strDataImportTemplateCode,"hxeims501.www.hxsm","hxeims501.www.hxsm.hxsm_dataimport_wzd_hub");if(strDataImportWorkProfileUUID==null){return}var strUrlForDataImportHub=HXWWW501.HXWebPageGlobalVariables.GetWebRootPath()+"hxsm/hxsm_dataimport_wzd_hub.aspx?data_import_profile_uuid="+strDataImportWorkProfileUUID+"&customized_error_report_page="+strCustomizedErrorReportPageBeforeShowResult;HXWWW501.Navigation.HXUtil_OpenWebPopupPage(strUrlForDataImportHub,1000,620,"no")};HXWWW501.Utility.HXUtil_HtmlContentEdit=function(strEditorTitle,strOriginalHtmlContent,width,height){var objParam=new Object();objParam.htmlcontent=strOriginalHtmlContent;objParam.title=strEditorTitle;return HXWWW501.Navigation.HXUtil_OpenWebDialog(HXWWW501.HXWebPageGlobalVariables.GetWebRootPath()+"hxpublic/hx_html_editor_wrapper.htm",objParam,width,height,"no")};HXWWW501.Utility.CSSAddStyle=function(strCSSContent){var styleElement=document.createElement("style");styleElement.type="text/css";styleElement.styleSheet.cssText=strCSSContent;document.getElementsByTagName("head")[0].appendChild(styleElement)};HXWWW501.Utility.HXUtil_HtmlContentApply=function(objDivContainer,strHtmlContent){if(objDivContainer==null){return}if(strHtmlContent==null||strHtmlContent==""){return}var intPos_StyleBegin,intPos_StyleEnd;var blnIncludeCSSStyle=false;var strCSSStyleContent="";intPos_StyleBegin=strHtmlContent.indexOf('<style type="text/css">');if(intPos_StyleBegin!=-1){intPos_StyleEnd=strHtmlContent.indexOf("</style>",intPos_StyleBegin);if(intPos_StyleEnd!=-1){strCSSStyleContent=strHtmlContent.substring(intPos_StyleBegin+23,intPos_StyleEnd-1);strHtmlContent=strHtmlContent.substr(intPos_StyleEnd+8);blnIncludeCSSStyle=true}}if(blnIncludeCSSStyle){HXWWW501.Utility.CSSAddStyle(strCSSStyleContent)}objDivContainer.innerHTML=strHtmlContent};HXWWW501.Utility.HXUtil_MD5=function(sMessage){function RotateLeft(lValue,iShiftBits){return(lValue<<iShiftBits)|(lValue>>>(32-iShiftBits))}function AddUnsigned(lX,lY){var lX4,lY4,lX8,lY8,lResult;lX8=(lX&2147483648);lY8=(lY&2147483648);lX4=(lX&1073741824);lY4=(lY&1073741824);lResult=(lX&1073741823)+(lY&1073741823);if(lX4&lY4){return(lResult^2147483648^lX8^lY8)}if(lX4|lY4){if(lResult&1073741824){return(lResult^3221225472^lX8^lY8)}else{return(lResult^1073741824^lX8^lY8)}}else{return(lResult^lX8^lY8)}}function F(x,y,z){return(x&y)|((~x)&z)}function G(x,y,z){return(x&z)|(y&(~z))}function H(x,y,z){return(x^y^z)}function I(x,y,z){return(y^(x|(~z)))}function FF(a,b,c,d,x,s,ac){a=AddUnsigned(a,AddUnsigned(AddUnsigned(F(b,c,d),x),ac));return AddUnsigned(RotateLeft(a,s),b)}function GG(a,b,c,d,x,s,ac){a=AddUnsigned(a,AddUnsigned(AddUnsigned(G(b,c,d),x),ac));return AddUnsigned(RotateLeft(a,s),b)}function HH(a,b,c,d,x,s,ac){a=AddUnsigned(a,AddUnsigned(AddUnsigned(H(b,c,d),x),ac));return AddUnsigned(RotateLeft(a,s),b)}function II(a,b,c,d,x,s,ac){a=AddUnsigned(a,AddUnsigned(AddUnsigned(I(b,c,d),x),ac));return AddUnsigned(RotateLeft(a,s),b)}function ConvertToWordArray(sMessage){var lWordCount;var lMessageLength=sMessage.length;var lNumberOfWords_temp1=lMessageLength+8;var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1%64))/64;var lNumberOfWords=(lNumberOfWords_temp2+1)*16;var lWordArray=Array(lNumberOfWords-1);var lBytePosition=0;var lByteCount=0;while(lByteCount<lMessageLength){lWordCount=(lByteCount-(lByteCount%4))/4;lBytePosition=(lByteCount%4)*8;lWordArray[lWordCount]=(lWordArray[lWordCount]|(sMessage.charCodeAt(lByteCount)<<lBytePosition));lByteCount++}lWordCount=(lByteCount-(lByteCount%4))/4;lBytePosition=(lByteCount%4)*8;lWordArray[lWordCount]=lWordArray[lWordCount]|(128<<lBytePosition);lWordArray[lNumberOfWords-2]=lMessageLength<<3;lWordArray[lNumberOfWords-1]=lMessageLength>>>29;return lWordArray}function WordToHex(lValue){var WordToHexValue="",WordToHexValue_temp="",lByte,lCount;for(lCount=0;lCount<=3;lCount++){lByte=(lValue>>>(lCount*8))&255;WordToHexValue_temp="0"+lByte.toString(16);WordToHexValue=WordToHexValue+WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2)}return WordToHexValue}var x=Array();var k,AA,BB,CC,DD,a,b,c,d;var S11=7,S12=12,S13=17,S14=22;var S21=5,S22=9,S23=14,S24=20;var S31=4,S32=11,S33=16,S34=23;var S41=6,S42=10,S43=15,S44=21;x=ConvertToWordArray(sMessage);a=1732584193;b=4023233417;c=2562383102;d=271733878;for(k=0;k<x.length;k+=16){AA=a;BB=b;CC=c;DD=d;a=FF(a,b,c,d,x[k+0],S11,3614090360);d=FF(d,a,b,c,x[k+1],S12,3905402710);c=FF(c,d,a,b,x[k+2],S13,606105819);b=FF(b,c,d,a,x[k+3],S14,3250441966);a=FF(a,b,c,d,x[k+4],S11,4118548399);d=FF(d,a,b,c,x[k+5],S12,1200080426);c=FF(c,d,a,b,x[k+6],S13,2821735955);b=FF(b,c,d,a,x[k+7],S14,4249261313);a=FF(a,b,c,d,x[k+8],S11,1770035416);d=FF(d,a,b,c,x[k+9],S12,2336552879);c=FF(c,d,a,b,x[k+10],S13,4294925233);b=FF(b,c,d,a,x[k+11],S14,2304563134);a=FF(a,b,c,d,x[k+12],S11,1804603682);d=FF(d,a,b,c,x[k+13],S12,4254626195);c=FF(c,d,a,b,x[k+14],S13,2792965006);b=FF(b,c,d,a,x[k+15],S14,1236535329);a=GG(a,b,c,d,x[k+1],S21,4129170786);d=GG(d,a,b,c,x[k+6],S22,3225465664);c=GG(c,d,a,b,x[k+11],S23,643717713);b=GG(b,c,d,a,x[k+0],S24,3921069994);a=GG(a,b,c,d,x[k+5],S21,3593408605);d=GG(d,a,b,c,x[k+10],S22,38016083);c=GG(c,d,a,b,x[k+15],S23,3634488961);b=GG(b,c,d,a,x[k+4],S24,3889429448);a=GG(a,b,c,d,x[k+9],S21,568446438);d=GG(d,a,b,c,x[k+14],S22,3275163606);c=GG(c,d,a,b,x[k+3],S23,4107603335);b=GG(b,c,d,a,x[k+8],S24,1163531501);a=GG(a,b,c,d,x[k+13],S21,2850285829);d=GG(d,a,b,c,x[k+2],S22,4243563512);c=GG(c,d,a,b,x[k+7],S23,1735328473);b=GG(b,c,d,a,x[k+12],S24,2368359562);a=HH(a,b,c,d,x[k+5],S31,4294588738);d=HH(d,a,b,c,x[k+8],S32,2272392833);c=HH(c,d,a,b,x[k+11],S33,1839030562);b=HH(b,c,d,a,x[k+14],S34,4259657740);a=HH(a,b,c,d,x[k+1],S31,2763975236);d=HH(d,a,b,c,x[k+4],S32,1272893353);c=HH(c,d,a,b,x[k+7],S33,4139469664);b=HH(b,c,d,a,x[k+10],S34,3200236656);a=HH(a,b,c,d,x[k+13],S31,681279174);d=HH(d,a,b,c,x[k+0],S32,3936430074);c=HH(c,d,a,b,x[k+3],S33,3572445317);b=HH(b,c,d,a,x[k+6],S34,76029189);a=HH(a,b,c,d,x[k+9],S31,3654602809);d=HH(d,a,b,c,x[k+12],S32,3873151461);c=HH(c,d,a,b,x[k+15],S33,530742520);b=HH(b,c,d,a,x[k+2],S34,3299628645);a=II(a,b,c,d,x[k+0],S41,4096336452);d=II(d,a,b,c,x[k+7],S42,1126891415);c=II(c,d,a,b,x[k+14],S43,2878612391);b=II(b,c,d,a,x[k+5],S44,4237533241);a=II(a,b,c,d,x[k+12],S41,1700485571);d=II(d,a,b,c,x[k+3],S42,2399980690);c=II(c,d,a,b,x[k+10],S43,4293915773);b=II(b,c,d,a,x[k+1],S44,2240044497);a=II(a,b,c,d,x[k+8],S41,1873313359);d=II(d,a,b,c,x[k+15],S42,4264355552);c=II(c,d,a,b,x[k+6],S43,2734768916);b=II(b,c,d,a,x[k+13],S44,1309151649);a=II(a,b,c,d,x[k+4],S41,4149444226);d=II(d,a,b,c,x[k+11],S42,3174756917);c=II(c,d,a,b,x[k+2],S43,718787259);b=II(b,c,d,a,x[k+9],S44,3951481745);a=AddUnsigned(a,AA);b=AddUnsigned(b,BB);c=AddUnsigned(c,CC);d=AddUnsigned(d,DD)}var temp=WordToHex(a)+WordToHex(b)+WordToHex(c)+WordToHex(d);return temp.toLowerCase()};HXWWW501.Navigation={};HXWWW501.Navigation.HXUtil_OpenWebPage=function(href,strWindowName){if(strWindowName==null){strWindowName=(window.parent==null||window.parent==window?null:"_blank")}if(strWindowName==null){window.location.href=href;return window}else{var objWin=window.open(href,strWindowName,"height="+(screen.availHeight-28*5-6)+",left=0,top=0,width="+(screen.availWidth-12)+",location=yes,menubar=yes,toolbar=yes, status=yes,scrollbars=yes, resizable=yes");try{objWin.focus()}catch(ex){}}return objWin};HXWWW501.Navigation.HXUtil_OpenWebPopupPage=function(href,width,height,Scroll){if(height==null||isNaN(height)){height=screen.availHeight/2}if(width==null||isNaN(width)){width=screen.availWidth/2}if(Scroll==null){Scroll="yes"}var intTop=((screen.availHeight-28-6)-height)/2;var intLeft=((screen.availWidth-12)-width)/2;var objWin=window.open(href,"_blank","height="+height+",left="+intLeft+",top="+intTop+",width="+width+",location=no,menubar=no,toolbar=no, status=yes,scrollbars="+Scroll+", resizable=yes");try{objWin.focus()}catch(ex){}return objWin};HXWWW501.Navigation.HXUtil_OpenWebDialog=function(href,Argument,width,height,Scroll){if(Scroll==null){Scroll="yes"}if(height==null||isNaN(height)){height=screen.availHeight/2}if(width==null||isNaN(width)){width=screen.availWidth/2}if(HXWWW501.Navigation._InternalFunctions._HXUtil_IsIE6()){height+=25;width+=6}return showModalDialog(href,Argument,"dialogWidth:"+width+"px;dialogHeight:"+height+"px;help:no;status:no;edge:raised;resizable=yes;scroll:"+Scroll)};HXWWW501.Navigation.HXUtil_OpenWebModelessDialog=function(href,Argument,width,height,Scroll){if(Scroll==null){Scroll="yes"}if(height==null||isNaN(height)){height=screen.availHeight/2}if(width==null||isNaN(width)){width=screen.availWidth/2}if(HXWWW501.Navigation._InternalFunctions._HXUtil_IsIE6()){height+=25;width+=6}return showModelessDialog(href,Argument,"dialogWidth:"+width+"px;dialogHeight:"+height+"px;help:no;status:no;edge:raised;resizable=yes;scroll:"+Scroll)};HXWWW501.Navigation.HXUtil_IsWebPageOpenedInDialog=function(){return(window.dialogLeft!=null)};HXWWW501.Navigation.HXUtil_PostDataToFile=function(strResultFileName,strWindowName,strParamName1,strData1){var strHtmlFrmQuery="<Form method=get name=frmQuery id=frmQuery>";var i,numArgs=arguments.length;if(numArgs<4){alert("parameters error when calling HXUtil_PostDataToFile() function");return}for(i=2;i<numArgs;i+=2){strHtmlFrmQuery+='<INPUT name="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i])+'" Type=hidden value="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(arguments[i+1])+'">'}strHtmlFrmQuery+="</Form>";document.body.insertAdjacentHTML("beforeEnd",strHtmlFrmQuery);var frmQuery;frmQuery=document.all("frmQuery");frmQuery.action=strResultFileName;frmQuery.method="POST";if(strWindowName!=null){frmQuery.target=strWindowName}frmQuery.submit();frmQuery.removeNode(true)};HXWWW501.Navigation.HXUtil_OpenReportingSvcReport=function(strReportCode,strRptParamUUID,intShowStyle,strWindowName,intDialogWidth,intDialogHeight){if(intShowStyle==null||(intShowStyle!=1&&intShowStyle!=2&&intShowStyle!=3)){intShowStyle=0}var strReportProcessUrl=gstrWebRootPath+"hxsm/reportingsvc_report_process.aspx?rpt_param_uuid="+strRptParamUUID+"&report_code="+strReportCode;if(intShowStyle==0){HXWWW501.Navigation.HXUtil_OpenWebPage(strReportProcessUrl,strWindowName);return}if(intShowStyle==1){HXWWW501.Navigation.HXUtil_OpenWebDialog(strReportProcessUrl,null,intDialogWidth,intDialogHeight);return}if(intShowStyle==2){HXWWW501.Navigation.HXMenu_ShowPageInContentZone(strReportProcessUrl)}if(intShowStyle==3){HXWWW501.Navigation.HXUtil_OpenWebPopupPage(strReportProcessUrl,intDialogWidth,intDialogHeight)}};HXWWW501.Navigation.HXUtil_OpenCrystalReport=function(strReportCode,strRptParamUUID,intShowStyle,strWindowName,intDialogWidth,intDialogHeight){if(intShowStyle==null||(intShowStyle!=1&&intShowStyle!=2&&intShowStyle!=3)){intShowStyle=0}if(strRptParamUUID==null){strRptParamUUID=""}var strReportProcessUrl=gstrWebRootPath+"hxsm/crystal_report_process_for_cr9.aspx?rpt_param_uuid="+strRptParamUUID+"&report_code="+strReportCode;if(intShowStyle==0){HXWWW501.Navigation.HXUtil_OpenWebPage(strReportProcessUrl,strWindowName);return}if(intShowStyle==1){HXWWW501.Navigation.HXUtil_OpenWebDialog(strReportProcessUrl,null,intDialogWidth,intDialogHeight);return}if(intShowStyle==2){HXWWW501.Navigation.HXMenu_ShowPageInContentZone(strReportProcessUrl)}if(intShowStyle==3){HXWWW501.Navigation.HXUtil_OpenWebPopupPage(strReportProcessUrl,intDialogWidth,intDialogHeight)}};HXWWW501.Navigation.HXUtil_OpenExcelDataExportReport=function(strReportCode,strRptParamUUID,strTempCriteria,intShowStyle,strWindowName,intDialogWidth,intDialogHeight){if(intShowStyle==null||(intShowStyle!=1&&intShowStyle!=2&&intShowStyle!=3)){intShowStyle=0}if(strRptParamUUID==null){strRptParamUUID=""}if(strTempCriteria==null){strTempCriteria=""}var strReportProcessUrl=gstrWebRootPath+"hxsm/excel_data_export_process.aspx?rpt_param_uuid="+strRptParamUUID+"&report_code="+strReportCode+"&temp_criteria="+strTempCriteria;if(intShowStyle==0){HXWWW501.Navigation.HXUtil_OpenWebPage(strReportProcessUrl,strWindowName);return}if(intShowStyle==1){HXWWW501.Navigation.HXUtil_OpenWebDialog(strReportProcessUrl,null,intDialogWidth,intDialogHeight);return}if(intShowStyle==2){HXWWW501.Navigation.HXMenu_ShowPageInContentZone(strReportProcessUrl)}if(intShowStyle==3){HXWWW501.Navigation.HXUtil_OpenWebPopupPage(strReportProcessUrl,intDialogWidth,intDialogHeight)}};HXWWW501.Navigation.HXMenu_GetContentZoneWindow=function(){if(top.hxmainpage_get_content_zone_window!=null){return top.hxmainpage_get_content_zone_window()}else{var objFrame=top.document.all("HXContentPage");if(objFrame!=null){return objFrame.contentWindow}}return null};HXWWW501.Navigation.HXMenu_ShowPageInContentZone=function(strContentFileName,strMasterMenuItemCode){if(strContentFileName==null){strContentFileName=""}if(strMasterMenuItemCode==null){strMasterMenuItemCode=""}if(top.hxmainpage_navigate_to_page!=null){top.hxmainpage_navigate_to_page(strContentFileName,"content_zone",strMasterMenuItemCode)}};HXWWW501.Navigation.HXMenu_ShowPageInNewMainPageContentZone=function(strContentFileName,strMasterMenuItemCode){if(strContentFileName==null){strContentFileName=""}if(strMasterMenuItemCode==null){strMasterMenuItemCode=""}if(top.hxmainpage_navigate_to_page!=null){top.hxmainpage_navigate_to_page(strContentFileName,"new_homepage",strMasterMenuItemCode)}};HXWWW501.Navigation._InternalFunctions={};HXWWW501.Navigation._InternalFunctions._HXUtil_IsIE6=function(){if(window.clientInformation.appVersion.indexOf("MSIE 6.0")!=-1){return true}else{return false}};HXWWW501.Utility._InternalFunctions.HXWebXmlList_QuickSort=function(objXmlRootNode,strFieldName,blnAscOrDesc,begin,end){if(objXmlRootNode==null){return}if(objXmlRootNode.XMLDocument==null){return}if(objXmlRootNode.XMLDocument.xml==""){return}var swap=function(objXmlRootNode,indexA,indexB){if(indexA==indexB){return}var objXmlNode1=objXmlRootNode.documentElement.childNodes[indexA];var objXmlNode2=objXmlRootNode.documentElement.childNodes[indexB];var objXmlNodeTemp=objXmlNode1.cloneNode(true);objXmlRootNode.documentElement.replaceChild(objXmlNode2.cloneNode(true),objXmlNode1);objXmlRootNode.documentElement.replaceChild(objXmlNodeTemp,objXmlNode2)};var compare=function(v1,v2,strCompareMethod){if(strCompareMethod==">"){if(HXWWW501.Utility.HXUtil_IsNumeric(v1)&&HXWWW501.Utility.HXUtil_IsNumeric(v2)){return(parseFloat(v1)>parseFloat(v2)?true:false)}if(HXWWW501.Utility.HXUtil_IsDate(v1)&&HXWWW501.Utility.HXUtil_IsDate(v2)){return(HXWWW501.Utility.HXUtil_GetDateAsInteger(v1)>HXWWW501.Utility.HXUtil_GetDateAsInteger(v2)?true:false)}if(v1==null||v1==""){return(v2==null||v2==""?false:true)}else{if(v2==null||v2==""){return true}return(v1.toString().localeCompare(v2)==1)}}else{if(HXWWW501.Utility.HXUtil_IsNumeric(v1)&&HXWWW501.Utility.HXUtil_IsNumeric(v2)){return(parseFloat(v1)<parseFloat(v2)?true:false)}if(HXWWW501.Utility.HXUtil_IsDate(v1)&&HXWWW501.Utility.HXUtil_IsDate(v2)){return(HXWWW501.Utility.HXUtil_GetDateAsInteger(v1)<HXWWW501.Utility.HXUtil_GetDateAsInteger(v2)?true:false)}if(v1==null||v1==""){return(v2==null||v2==""?false:true)}else{if(v2==null||v2==""){return false}return(v1.toString().localeCompare(v2)==-1)}}};var getkey=function(objXmlRootNode,strFieldName,index){return objXmlRootNode.documentElement.childNodes.item(index).selectSingleNode(strFieldName).text};var partition=function(objXmlRootNode,strFieldName,begin,end,pivot,strCompareMethod){var piv=getkey(objXmlRootNode,strFieldName,pivot);swap(objXmlRootNode,pivot,end-1);var store=begin;var ix;for(ix=begin;ix<end-1;++ix){var v1=getkey(objXmlRootNode,strFieldName,ix);if(compare(v1,piv,strCompareMethod)){swap(objXmlRootNode,store,ix);++store}}swap(objXmlRootNode,end-1,store);return store};var qsort=function(objXmlRootNode,strFieldName,begin,end,strCompareMethod){if(end-1>begin){if(end-begin<9){insertsort(objXmlRootNode,strFieldName,strCompareMethod,begin,end-begin);return}var pivot=begin+Math.floor(Math.random()*(end-begin));pivot=partition(objXmlRootNode,strFieldName,begin,end,pivot,strCompareMethod);qsort(objXmlRootNode,strFieldName,begin,pivot,strCompareMethod);qsort(objXmlRootNode,strFieldName,pivot+1,end,strCompareMethod)}};var insertsort=function(objXmlRootNode,strFieldName,strCompareMethod,intBegin,intListSize){var j,v1,v2;for(var i=1;i<intListSize;i++){j=i;while(j>0){v1=getkey(objXmlRootNode,strFieldName,intBegin+j);v2=getkey(objXmlRootNode,strFieldName,intBegin+j-1);if(compare(v1,v2,strCompareMethod)==false){break}else{swap(objXmlRootNode,intBegin+j,intBegin+j-1);j--}}}};if(begin==null){begin=0}if(end==null){end=objXmlRootNode.documentElement.childNodes.length}if(blnAscOrDesc==null){blnAscOrDesc=true}var strCompareMethod=(blnAscOrDesc?"<":">");qsort(objXmlRootNode,strFieldName,begin,end,strCompareMethod)};
