function resize(width, height)
{
	try
	{
		window.resizeTo(width, height);
		var x = (window.screen.availWidth - width) / 2;
		var y = (window.screen.availHeight - height) / 2;
		window.moveTo(x, y);
	}
	catch(e){}
}




