function createXMLObj() {
	var xmlHttp;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
		// Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}
function showInfobox(item) {

	var xmlHttp = createXMLObj();
	var url = "/js/ajax/infobox.php";
	var params = "item="+item;

	xmlHttp.open("POST", url, true);
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", params.length);
	xmlHttp.setRequestHeader("Connection", "close");

	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
			document.getElementById('infobox').innerHTML = xmlHttp.responseText;
			if(document.getElementById('infobox').innerHTML != '')	document.getElementById('infobox').style.display = 'block';
		}
	}
	xmlHttp.send(params);
}
function hideInfobox()
{
	document.getElementById('infobox').style.display = 'none';
}
