﻿// JScript 文件
function getBrowser() 
{
      if(navigator.userAgent.indexOf("MSIE")>=0) { 
           return "MSIE"; 
      } 
      if(navigator.userAgent.indexOf("Firefox")>=0){ 
           return "Firefox"; 
      } 
      if(navigator.userAgent.indexOf("Safari")>=0) { 
           return "Safari"; 
      }  
      if(navigator.userAgent.indexOf("Camino")>=0){ 
           return "Camino"; 
      } 
      if(navigator.userAgent.indexOf("Gecko")>=0){ 
           return "Gecko"; 
      }
      if(navigator.userAgent.indexOf("Opera")>= 0){
           return "Opera";
      }
} 

function Update(){
    var xmlhttp;
    try{
        xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');
    }catch(e){
        try{
            xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');
        }catch(e){
            try{
                xmlhttp=new XMLHttpRequest();
            }catch(e){}
        }
    }
    
    var date=new Date();
    var vtime=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
    xmlhttp.open("get","count.aspx?A=systemcount&year="+date.getFullYear()+"&month="+date.getMonth()+"&day="+date.getDate()+"&week="+date.getDay()+"&hour="+date.getHours()+"&vtime="+vtime+"&browser="+getBrowser()+"&os="+navigator.platform+"&visitpage="+location.href);
    xmlhttp.send(null);
}

RaiseOnload("Update()");