﻿function createXMLHttpRequest(){
    var Req;
    try {
        Req =new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e){
        try{
            Req=new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e1){
            Req=null;
        }
    }
    
    if(!Req && typeof XMLHttpRequest!="undefined"){
        Req =new XMLHttpRequest();
    }
    return Req;
}
function ADCounter(id){
    var Str="ID=" + id;
    var Req=createXMLHttpRequest();
    if(Req){
        Req.open("POST","http://www.boee.cn/jtbm/ADCounter.aspx",true);
        Req.setRequestHeader("Content-Length",Str.length);
        Req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
        Req.send(Str);
    };
    return true;
}
