var xmlhttp;
function showEntityMarketStats(entityType, entityClass) {
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="http://crimson-veil.com/includes/ajax/getEntityStats.php";
	url=url+"?eType="+entityType;
	url=url+"&eClass="+entityClass;
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() {
		if(xmlhttp.readyState==4 && xmlhttp.status == 200) {
			document.getElementById("entity").innerHTML=xmlhttp.responseText;
		} else {
			document.getElementById("entity").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
		}
	}
	xmlhttp.send(null);
}
