var showSearch;
function loadAjaxStatus(posted_url,ajax_url){
	showSearch=GetXmlHttpObject();
	if (showSearch==null) {
		alert ("Browser does not support HTTP Request");
		return;
	} 

	var ajaxUrl = ajax_url+posted_url;
	showSearch.onreadystatechange=function() { changeStatus() };
	showSearch.open("GET",ajaxUrl,true);
	showSearch.send(null);
}

function changeStatus() { 
  setTimeout('hideStatus()',0);
}

function hideStatus() { 
	if (showSearch.readyState==4 || showSearch.readyState=="complete") { 
		//var statusDisplay = document.getElementById('AJAXStatus');
		//statusDisplay.style.display = 'none';
		document.getElementById("replace").innerHTML=showSearch.responseText;
	}
}

function GetXmlHttpObject() {
	showSearch = null;
	try {
		showSearch=new XMLHttpRequest();
	}	
	catch (e) { 
		try { showSearch=new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e) { 
			showSearch=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return showSearch;
}  