var xmlHttp;
var display_id;
function show_result(url,display_id)
{
	document.getElementById(display_id).style.display = "block"; 
	xmlHttp=CreateHttpObject();
	
	if(xmlHttp == null)
	{
		alert("Your browser doesn't support HTTP request");
		return 
	}

	
//	var url="page/search_user.php?uname="+fld.value
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)


function stateChanged()
{
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById(display_id).style.display = "block";
		document.getElementById(display_id).innerHTML = xmlHttp.responseText;
		
	}
}

function CreateHttpObject()
{
	var xmlHttp=null;
	try
	{
		xmlHttp = new XMLHttpRequest();
	}
	catch(e)
	{

		try
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e)
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
	}
	return xmlHttp;
}

}