ajaxAction=0;
function getHTTPObject(){
		
	if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
	else if (window.XMLHttpRequest) return new XMLHttpRequest();
	else {
		return null;};
}



function doWork(url,action){
	httpObject= getHTTPObject();
	if (httpObject != null) {
		httpObject.open("GET",url,true);	
		httpObject.send(null);
		ajaxAction=action;
		httpObject.onreadystatechange=setOutput;
	}
}

var httpObject=null;