var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var xmlHttpRequestSI ; var TCount = 0; var span; if ( ( typeof(CN) != "undefined" ) ) { span = document.getElementById(CN) ; if ( span != null ) { if ( 'toho-pump.com' != document.location.hostname ) { if ( span.title != "" ) crossDomain() ; } else { statInfo(); } } }; function crossDomain() { document.write(''); StatInfoCrossDomain(); }; function StatInfoCrossDomain() { if ( typeof(StatType) == "undefined" ) { StatType = 1; } document.getElementById("get").src = "http://www.superstat.cn/StatInfoCrossDomain.aspx?f=getReturnValue&id="+span.title+"&s="+StatType; }; function getReturnValue(v) { if ( v != 'undefined' ) { span.innerHTML = v ; span.title = ''; } else { span.innerHTML = '数据读取中...'; TCount += 1 ; window.setInterval("StatInfoCrossDomain()",500); } if ( TCount > 5 ) { span.innerHTML = '数据读取失败'; } } function statInfo() { var CompanyInfo ; if ( span.innerText != "" ) CompanyInfo = span.innerText.split(',') ; else CompanyInfo = span.title.split(',') ; var UserSystemType = CompanyInfo[0] ; var CompanyID = CompanyInfo[1] ; var ShowID = CompanyInfo[2] ; span.title = "" ; xmlHttpRequestSI =new ActiveXObject("Microsoft.XMLHTTP"); var URL = "http://toho-pump.com/STAT/XHRFuns.aspx?act=stateinfo&UserSystemType="+UserSystemType+"&CompanyID="+CompanyID+"&ShowID="+ShowID ; xmlHttpRequestSI.onreadystatechange = callBack ; xmlHttpRequestSI.Open("POST",URL, true); xmlHttpRequestSI.SetRequestHeader ("Content-Type","text/xml; charset=utf-8"); xmlHttpRequestSI.Send(null); } function callBack() { if( xmlHttpRequestSI.readyState == 4) { if ( xmlHttpRequestSI.status == 200 ) { var docSubmit =new ActiveXObject("Microsoft.XMLDOM"); docSubmit.loadXML(xmlHttpRequestSI.responseTEXT.replace(/</g,"<").replace(/>/g,">")) ; var nodeList=docSubmit.documentElement.getElementsByTagName("Table");//alert( docSubmit.documentElement.text) ; var RStr = nodeList(0).selectSingleNode("Column1").text if ( typeof(StatType) == "undefined" ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); span.innerHTML = RStr ; } else if ( StatType == 1 ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); span.innerHTML = RStr ; } else if ( StatType == 2 ) { var arr = new Array() ; arr = RStr.split(","); RStr = arr[0].substring(5); span.innerHTML = "" + String.fromCharCode( 24744,26159,26412,31449,31532 ) + " " + RStr + " " + String.fromCharCode( 20301,35775,38382,32773 ) + "" ; } else if ( StatType == 3 ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); span.innerHTML = RStr.replace('访问','visitation').replace('产品','product').replace('新闻','news').replace('文章','article'); var str = span.innerHTML ; var str1 = str.substring(str.indexOf(',')+1); var str2 = str1.substr(0,str1.indexOf(',')+1) ; span.innerHTML = str.replace(str2,''); } else if ( StatType == 4 ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); var str = RStr ; var str1 = str.substring(str.indexOf(',')+1); var str2 = str1.substr(0,str1.indexOf(',')+1) ; span.innerHTML = str.replace(str2,''); } else if ( StatType == 5 ) { var arr = new Array() ; arr = RStr.split(","); span.innerHTML = arr[0] + "," + arr[1]; } else if ( StatType == 6 ) { var arr = new Array() ; arr = RStr.split(","); span.innerHTML = arr[0] + "," + arr[1] + "," + arr[3] + "," + arr[4]; } else if ( StatType == 7 ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); span.innerHTML = RStr.replace('访问','アクセス').replace('产品','製品').replace('新闻','ニュース').replace('文章','文章'); var str = span.innerHTML ; var str1 = str.substring(str.indexOf(',')+1); var str2 = str1.substr(0,str1.indexOf(',')+1) ; span.innerHTML = str.replace(str2,''); } else if ( StatType == 8 ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); span.innerHTML = RStr.replace('访问','Besuchen').replace('产品','Prudukt').replace('新闻','Nachricht').replace('文章','Artikel'); } else if ( StatType == 9 ) { RStr = RStr.substring(0,RStr.lastIndexOf(',')); span.innerHTML = RStr.replace('访问','訪問').replace('产品','産品').replace('新闻','新聞').replace('文章','文章'); } } } } }