function initWindow(width,height)
{
	//resizeWindow(width,height);
	//positionWindow(width,height);
}

function resizeWindow(width,height)
{
	if( typeof( window.innerWidth ) == 'number' )
	{
		window.innerWidth = width;
		window.innerHeight = height;
	} 
	else 
	{
		window.resizeBy(width - document.body.clientWidth, height - document.body.clientHeight);
	}
}

function positionWindow(width,height)
{
	var leftPos = (screen.width-width) / 2;
	var topPos = (screen.height-height) / 2;
	window.moveTo(leftPos,topPos);
}