var xmlHttp;

function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }

}


function doVisitRequestUsingPOST(userId) {
    createXMLHttpRequest();

    var url = "/idio/addVisit.do?userId="+userId+"&&"+document.referrer;

    
    xmlHttp.open("GET", url, true);
    //xmlHttp.onreadystatechange = handleStateChangePost;
        
    xmlHttp.send(null);
} 

function handleVisitStateChangePost() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
         value=xmlHttp.responseText;

        }
    }
}
