function showcount(){
	var hisCount = 46846478;
	var todayCount = getTodayCount();
	var totalCount = getTotalCount();
	if(todayCount!=null&&totalCount!=null){
		totalCount = hisCount + totalCount + todayCount;
		document.write("当日访问量: " + todayCount + "    " + "总访问量:" + totalCount);
	}
}

function getTodayCount(){
    try{
      var todayCount = dayVisit;
      if   (typeof todayCount != 'undefined'){
        return todayCount;
      }
      else{
        return 0;
      }
    }
    catch(e){
      return 0;
    }
}

function getTotalCount(){
    try{
      var totalCount = totalVisit;
      if   (typeof totalCount != 'undefined'){
        return totalCount;
      }
      else{
        return 0;
      }
    }
    catch(e){
      return 0;
    }
}

function showSiteCount(site,hisCount){
        if(!hisCount){
          hisCount = 0;
        }
        var todayCount = getSiteTodayCount(site);
        var totalCount = getSiteTotalCount(site);
        if(todayCount != null && totalCount != null){
		totalCount = hisCount + totalCount + todayCount;
		document.write("当日访问量: " + todayCount + "    " + "总访问量:" + totalCount);
        }
}

function getSiteTodayCount(site){
    try{
      var siteCount = eval("site_"+site);
      if   (typeof siteCount != 'undefined'){
        var tmpCounts = siteCount.split(',');
        return tmpCounts[1];
      }
      else{
        return 0;
      }
    }
    catch(e){
      return 0;
    }
}

function getSiteTotalCount(site){
    try{
      var siteCount = eval("site_"+site);
      if   (typeof siteCount != 'undefined'){
        var tmpCounts = siteCount.split(',');
        return tmpCounts[0];
      }
      else{
        return 0;
      }
    }
    catch(e){
      return 0;
    }
}

