window.onload = function()
{
	var swidth = 0;
	var sheight = 0;
	var bwidth = 0;
	var bheight = 0;
	if (window.screen.width)
	{
		swidth = window.screen.width;
		sheight = window.screen.height;
	}
	else
	{
		swidth = screen.width;
		sheight = screen.height;
	}

	if (window.innerWidth)
	{
		bwidth = window.outerWidth;
		bheight = window.outerHeight;
	}
	else
	{
		with (document.body)
		{
			bwidth = clientWidth;
			bheight = clientHeight;
		}
	}

	top.frames["hiddenFrame"].location = "resolution.php?swidth=" + swidth + "&sheight=" + sheight + "&bwidth=" + bwidth + "&bheight=" + bheight;
}
