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 autohosturl='http://www.nj-chuneng.com/stat/' ;
var xmlHttpSI ;
if ( ( typeof(CN) != "undefined" ) )
{
var ControlName = document.getElementById( CN ) ;
// if ( ControlName != null )
// {
var CompanyInfo ;
if ( ControlName.innerText != "" )
CompanyInfo = ControlName.innerText.split(',') ;
else
CompanyInfo = ControlName.title.split(',') ;
var UserSystemType = CompanyInfo[0] ;
var CompanyID = CompanyInfo[1] ;
var ShowID = CompanyInfo[2] ;
ControlName.title = "" ;
/* var docSubmit =new ActiveXObject("Microsoft.XMLDOM");
docSubmit.async = false;
docSubmit.load(autohosturl+"/ODDWebServices/ODDWebService.asmx/ODD_StatInfo_Get?UserSystemType="+UserSystemType+"&CompanyID="+CompanyID+"&ShowID="+ShowID);
docSubmit.loadXML(docSubmit.xml.replace(/</g,"<").replace(/>/g,">"));
var nodeList=docSubmit.documentElement.getElementsByTagName("Table");
var RStr = nodeList(0).selectSingleNode("Column1").text*/
/*var data;
data = '';
data = data + '';
data = data + '';
data = data + '';
data = data + ''+UserSystemType+'';
data = data + ''+CompanyID+'';
data = data + ''+ShowID+'';
data = data + '';
data = data + '';
data = data + ' ';*/
xmlHttpSI =new ActiveXObject("Microsoft.XMLHTTP");
var URL = autohosturl+"XHRFuns.aspx?act=stateinfo&UserSystemType="+UserSystemType+"&CompanyID="+CompanyID+"&ShowID="+ShowID ;
xmlHttpSI.onreadystatechange = callBack ;
xmlHttpSI.Open("POST",URL, true);
xmlHttpSI.SetRequestHeader ("Content-Type","text/xml; charset=utf-8");
// xmlHttpSI.SetRequestHeader ("SOAPAction","http://tempuri.org/ODD_StatInfo_Get");
xmlHttpSI.Send(null);
// }
}
function callBack()
{
if( xmlHttpSI.readyState == 4)
{
if ( xmlHttpSI.status == 200 )
{
//alert( xmlHttpSI.responseTEXT ) ;
var docSubmit =new ActiveXObject("Microsoft.XMLDOM");
docSubmit.loadXML(xmlHttpSI.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(','));
ControlName.innerHTML = RStr ;
}
else if ( StatType == 1 )
{
RStr = RStr.substring(0,RStr.lastIndexOf(','));
ControlName.innerHTML = RStr ;
}
else if ( StatType == 2 )
{
var arr = new Array() ;
arr = RStr.split(",");
RStr = arr[0].substring(5);
ControlName.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(','));
ControlName.innerHTML = RStr.replace('访问','visitation').replace('产品','product').replace('新闻','news').replace('文章','article');
var str = ControlName.innerHTML ;
var str1 = str.substring(str.indexOf(',')+1);
var str2 = str1.substr(0,str1.indexOf(',')+1) ;
ControlName.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) ;
ControlName.innerHTML = str.replace(str2,'');
}
else if ( StatType == 5 )
{
var arr = new Array() ;
arr = RStr.split(",");
ControlName.innerHTML = arr[0] + "," + arr[1];
}
else if ( StatType == 6 )
{
var arr = new Array() ;
arr = RStr.split(",");
ControlName.innerHTML = arr[0] + "," + arr[1] + "," + arr[3] + "," + arr[4];
}
else if ( StatType == 7 )
{
RStr = RStr.substring(0,RStr.lastIndexOf(','));
ControlName.innerHTML = RStr.replace('访问','アクセス').replace('产品','製品').replace('新闻','ニュース').replace('文章','文章');
var str = ControlName.innerHTML ;
var str1 = str.substring(str.indexOf(',')+1);
var str2 = str1.substr(0,str1.indexOf(',')+1) ;
ControlName.innerHTML = str.replace(str2,'');
}
else if ( StatType == 8 )
{
RStr = RStr.substring(0,RStr.lastIndexOf(','));
// alert( RStr ) ;
ControlName.innerHTML = RStr.replace('访问','Besuchen').replace('产品','Prudukt').replace('新闻','Nachricht').replace('文章','Artikel');
//var str = ControlName.innerHTML ;
//var str1 = str.substring(str.indexOf(',')+1);
//var str2 = str1.substr(0,str1.indexOf(',')+1) ;
//ControlName.innerHTML = str.replace(str2,'');
}
else if ( StatType == 9 )
{
RStr = RStr.substring(0,RStr.lastIndexOf(','));
// alert( RStr ) ;
ControlName.innerHTML = RStr.replace('访问','訪問').replace('产品','産品').replace('新闻','新聞').replace('文章','文章');
//var str = ControlName.innerHTML ;
//var str1 = str.substring(str.indexOf(',')+1);
//var str2 = str1.substr(0,str1.indexOf(',')+1) ;
//ControlName.innerHTML = str.replace(str2,'');
}
}
}
}
}