var chws, SavW, SavH, XL = true;

function GetSize()
{
		if(parent.I4) SavH = document.body.clientHeight, SavW = document.body.clientWidth;
		else SavH = window.innerHeight, SavW = window.innerWidth;
}

function CheckWS()
{
	if(parent.I4) curH = document.body.clientHeight, curW = document.body.clientWidth;
	else curH = window.innerHeight, curW = window.innerWidth;

	if (curW!=SavW || curH!=SavH)
	{
		window.clearInterval(chws);
		if(CheckWS.arguments.length) parent.GPush();
		self.location.reload();
	}
}

function SetXL()
{
	GetSize();
	XL = (SavH>500) ? true : false;
	chws = window.setInterval('CheckWS()',1000);
}
