var http = null;

function getGhostContent(url)
{	
	if (window.XMLHttpRequest) 
	{
		http = new XMLHttpRequest();
	} 
	else if (window.ActiveXObject) 
	{
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}

	if (http != null) 
	{
		http.open("GET", "php/getContentForGhost.php?" + url, true);
		http.onreadystatechange = printGhostContent;
		http.send(null);
	}
}


function printGhostContent() 
{
	if (http.readyState == 4) 
	{
		document.getElementById("ghostContent").innerHTML = http.responseText;
	}
}
	