screen_resolution();
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()
{
	$httpObj = new getHTTPObject();
	var url = '/includes/screen_resolution.php?width='+screen.width+'&height='+screen.height;
	$httpObj.onreadystatechange = stateChangeHandle;
	$httpObj.open('GET',url);
	$httpObj.send(null);
}
function stateChangeHandle()
{
	if($httpObj.readyState == 4)
	{
		var response = $httpObj.responseText;
	}
}
