var xmlHttpVerify = createXMLHttpRequestObject();
var xmlHttpHighscore = createXMLHttpRequestObject();
function createXMLHttpRequestObject()
{
	var xmlHttp;
	try
	{
		xmlHttp = new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHttp");
		}
		catch (e)
		{ }
	}
	if (!xmlHttp)
	{
		alert("Error creating XMLHttpRequest object.");
	}
	else
	{
		return xmlHttp;
	}
}

function handleVerifyResponse()
{
	if (xmlHttpVerify.readyState == 4)
	{
		if (xmlHttpVerify.status == 200)
		{
			if (xmlHttpVerify.responseText != '')
			{
				verifiedResponse = xmlHttpVerify.responseText;
				document.getElementById("cheatMsg").className = 'warning';
				document.getElementById("cheatMsg").innerHTML = verifiedResponse;
			}
		}
		else
		{
			alert("There was a problem accessing the server: " + xmlHttpVerify.statusText);
		}
	}
}