var xmlHttp;
var display_id;
function show(url,disp_id)
{
	
	display_id = disp_id;
	
	xmlHttp=CreateHttpObject();
	
	if(xmlHttp == null)
	{
		alert("Your browser doesn't support HTTP request");
		return 
	}


		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;
}

