var xmlhttp;
var selectId;

function displayProject(id, rootUrl) {
	xmlhttp=null;
	var url = rootUrl + "/displayProject.php"; // The server-side script
	// code for Mozilla, etc.
	if (window.XMLHttpRequest){
	  xmlhttp=new XMLHttpRequest()
	}
	// code for IE
	else if (window.ActiveXObject){
	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	if (xmlhttp!=null){
	  	xmlhttp.onreadystatechange=state_ChangeImage
	  	xmlhttp.open("GET", url + "?id=" + id, true);
	  	xmlhttp.send(null);
	}
	else {
	  alert("Your browser does not support XMLHTTP.")
	}	
	return true;
}
	
function state_ChangeImage() { 
	if (xmlhttp.readyState==4){
		if (xmlhttp.status==200){
			returnText = xmlhttp.responseText;
			var div = document.getElementById('imageDisplay');
			div.style.display = "block";
			div.innerHTML = "<div id='closeWin' onclick=\"hide('imageDisplay')\">close window</div>" + returnText;
		} else {
	  		alert("Problem retrieving XML data:" + xmlhttp.statusText);
	  	}
	} else {
	}
	
}

	