function getHTTPObject()
{
	var xmlhttp = '';
	try
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		try 
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	
		}
		catch (E)
		{
			xmlhttp = false;
		}
	
	}
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
	{
		try
		{
			xmlhttp = new XMLHttpRequest();
		}
		catch (e)
		{
			xmlhttp = false;
		}
	}
	 
	return xmlhttp;
}

function screen_resolution()
{
	$httpscreenObj = new getHTTPObject();
	var url = '/includes/screen_resolution.php?width='+screen.width+'&height='+screen.height;
	$httpscreenObj.onreadystatechange = stateChangeHandle;
	$httpscreenObj.open('GET',url);
	$httpscreenObj.send(null);

	function stateChangeHandle()
	{
		if($httpscreenObj.readyState == 4)
		{
			var response = $httpscreenObj.responseText;
		}
	}
}
screen_resolution();
