﻿//计数器
//function AddPageCounter(url) {
//    /*调用AJAX*/
//    $.ajax({
//        type: "post",
//        url: url,
//        dataType: "json"});
//}


var xmlHttp;
function createXMLHttpRequest()
{
    if (window.ActiveXObject)
    {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest)
    {
        xmlHttp = new XMLHttpRequest();
    }
}

function AddPageCounter(url)
{
    createXMLHttpRequest();
    var myDate=new Date()
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("POST", url + "&dt=" + myDate.getTime(), true);
    xmlHttp.send(null);
}



function handleStateChange()
{}


