var xmlHttp;
function createXMLHttpRequest() {
	if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}
    
 
function handleStateChange() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            var num=xmlHttp.responseText;
			var total = document.getElementById("hotnum");
			total.innerText = num;
        }
    }
}

function sethotnum(id,hotnum) {
	createXMLHttpRequest();
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.open("GET", "/ContentAction.do?dispatch=doContentAccessUpdate&contid="+id+"&hotnum="+hotnum, false);
	xmlHttp.send(null);
}