function updateBoothStatus(doUpdate, query) {
	
	var xhO_Ajax = new my_xmlHttpObject(); //create an instance of xmlHttpObject
	
	if (xhO_Ajax) {	
	
	var s_Parameters = "doUpdate=" + doUpdate + "&query=" + query
		xhO_Ajax.onreadystatechange = function () {		
			var loginDiv = document.getElementById("savingDiv2");
			if (xhO_Ajax.readyState < 4) {
				loginDiv.innerHTML = "<img src='images/loading.gif' align='middle'/><b>updating... </b>";
			} else if (xhO_Ajax.readyState == 4 ) {
				if (xhO_Ajax.responseText == "ok") {					
					//loginDiv.innerHTML = "<img src='images/loading.gif' align='middle'/><b>Update Successful. Refreashing </b>";
					//window.location.replace("registration_list.asp")
					loginDiv.innerHTML = xhO_Ajax.responseText; 
				} else {						
					loginDiv.innerHTML = xhO_Ajax.responseText; 
					//"<b><font style='color:#FF0000'>webPOS has Encountered an Error</font></b> ";
				} // end if (xhO_Ajax.responseText == "0")
				
			} //end if (xhO_Ajax.readyState < 4)
		}//end of function()
		
		xhO_Ajax.open("POST", "updateBooths.asp", true); //open connection to processing php page		
		//set Request Header section
		xhO_Ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xhO_Ajax.setRequestHeader("Content-length", s_Parameters.length);
		xhO_Ajax.setRequestHeader("Connection","close");
		//xhO_Ajax.timeout = 10000;
		//xhO_Ajax.ontimeout = function () { loginDiv.innerHTML = "Failed... Update timeout"; };
		//send request header
		xhO_Ajax.send(s_Parameters);
	} else {
		alert('Your browser does not support AJAX. Please turn on Javascript in your browser options/preferences and try again.');	
	}//end if (xhO_Ajax)
	
}