var syncxmlhttp
var asyncxmlhttp

function loadxmldocasync(url) {

	asyncxmlhttp=null
	
	if (window.XMLHttpRequest){
  	asyncxmlhttp=new XMLHttpRequest()
  }
	else if (window.ActiveXObject) {
  	asyncxmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  }

	if (asyncxmlhttp!=null) {
  	asyncxmlhttp.onreadystatechange=state_Change
  	asyncxmlhttp.open("GET",url,true)
  	asyncxmlhttp.send(null)
  }
}

function state_Change() {
var x
	if (asyncxmlhttp.readyState==4) {
  	if (asyncxmlhttp.status==200) {
  		x = 1;
    }
  	else {
  		x = 1;
   	}
  }
}

function addUser() {
var surl
	surl = "uh.asp?URL=" + document.location + "&" + "ah=1&";
	loadxmldocasync(surl);
}

function updateUser() {
var surl
	surl = "uh.asp?URL=" + document.location + "&" + "uh=1&";
	loadxmldocasync(surl);
}

function loadxmldocsync(url) {
syncxmlhttp = null
if (window.XMLHttpRequest) {
	syncxmlhttp=new XMLHttpRequest()
	syncxmlhttp.open("GET",url,false)
	syncxmlhttp.send(null)
	} 		 
else if (window.ActiveXObject) {
	syncxmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  if (syncxmlhttp) {
  	syncxmlhttp.open("GET",url,false)
  	syncxmlhttp.send()
  	}
  }
return syncxmlhttp.responseText
}

addUser();
var int=self.setInterval("updateUser()",4000)

