//do the whole color thing
var url = "screenRezMiner.inc.php?";

function getHTTPObject() 
{
	var xmlhttp;
  	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') 
	{
    	try 
		{
      		xmlhttp = new XMLHttpRequest();
    	} 
		catch (e) 
		{
      		xmlhttp = false;
		}
  	}
  	return xmlhttp;
}
var http = getHTTPObject();



function logData() 
{
	var timeVar = new Date().getTime();
	//alert(screen.height);
	//alert(screen.width);
	
	http.open("GET", url + 'width=' + screen.width + '&height=' + screen.height +'&time=' + timeVar, true);
	
	http.onreadystatechange = handleHttpResponse;
	http.send(null);
	
}	


function handleHttpResponse() 
{
	if (http.readyState == 4) 
	{
    	results = http.responseText;		
	}
}


