function displayShipStats(shipID, location) {
	var xmlhttp;
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="http://crimson-veil.com/includes/ajax/showShips.php";
	url=url+"?sID="+shipID;
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() {
		if(xmlhttp.readyState==4 && xmlhttp.status == 200) {
			if(location == 1) {
				document.getElementById("compareArea1").innerHTML=xmlhttp.responseText;
			} else {
				document.getElementById("compareArea2").innerHTML=xmlhttp.responseText;
			}
		} else {
			if(location == 1) {
				document.getElementById("compareArea1").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
			} else {
				document.getElementById("compareArea2").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
			}
		}
	}
	xmlhttp.send(null);
} function rmYield(form) {
	var xmlhttp;
	xmlhttp = GetXmlHttpObject();
	if(xmlhttp == null) {
		alert("Broser does not support HTTP Requests.");
		return;
	}
	var url="http://crimson-veil.com/includes/ajax/miningCalc.php";
	url=url+"?rmType="+parseInt(form.rmType.value);
	url=url+"&morale="+parseInt(form.planetMorale.value);
	url=url+"&crime="+parseInt(form.planetCrime.value);
	url=url+"&leadership="+parseInt(form.leadershipSkill.value);
	url=url+"&npcs="+parseInt(form.workerNPCs.value);
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() {
		if(xmlhttp.readyState==4 && xmlhttp.status == 200) {
			document.getElementById("rmInfoArea").innerHTML=xmlhttp.responseText;
		} else {
			document.getElementById("rmInfoArea").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
		}
	}
} function displayVehicleStats(vehicleID, location) {
	var xmlhttp;
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="http://crimson-veil.com/includes/ajax/showVehicles.php";
	url=url+"?vID="+vehicleID;
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() {
		if(xmlhttp.readyState==4 && xmlhttp.status == 200) {
			if(location == 1) {
				document.getElementById("compareArea1").innerHTML=xmlhttp.responseText;
			} else {
				document.getElementById("compareArea2").innerHTML=xmlhttp.responseText;
			}
		} else {
			if(location == 1) {
				document.getElementById("compareArea1").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
			} else {
				document.getElementById("compareArea2").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
			}
		}
	}
	xmlhttp.send(null);
}
