﻿ var xmlHttp; 
 function createXmlHttp() {
    if (window.XMLHttpRequest) {
       xmlHttp = new XMLHttpRequest();                
    } else {
       xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
}
function visitorCount(respId,visitId)
{
	
	createXmlHttp();
	var url;
	url = "visit.do?method=countVisit&&visitId=" + visitId+"&&respId="+respId;
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
	xmlHttp.onreadystatechange = myfunc;
	
}

function myfunc(){
	if (xmlHttp.readyState == 4) {
    }
}