function resizeInnerWindow(newWidth,newHeight,winW,winH)
{
	resizeBy(newWidth-winW,newHeight-winH);
	moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2)
	
/*
	var calc = true;
	var frameWidth = -1;
	var frameHeight = -1;
	if (window.innerWidth) {
		window.innerWidth = newWidth;
		window.innerHeight = newHeight;
		if (window.innerWidth == newWidth && window.innerHeight == newHeight)
		{	
		    calc = false;		// resize fallito
			frameWidth = window.outerWidth; 
			frameHeight = window.outerHeight; 
		}
	}
	if (calc) {
		if (winW && winH && winW > 0 && winH > 0) {
			if (frameWidth < 0) {
				var frameWidth = document.body.offsetWidth;
				var	frameHeight = document.body.offsetHeight;
				if(frameHeight-winH < 20) frameHeight += 20;	// explorer non dà l'altezza della barra titolo, che poi però va contata
			}
			newWidth += frameWidth-winW;	// aggiunge elementi extra
			newHeight += frameHeight-winH;
		}
		resizeTo(newWidth,newHeight);
	}
	moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2)
	*/
}