function openRelativeWindow(theURL, theName, baseWidth, baseHeight) {
		browser = navigator.appName;
		//Get the full screen size
		fullWidth = screen.width;
		fullHeight = screen.height;

		//Get the available screen Size
		if (browser.indexOf("WebTV") >= 0) {
			width = window.innerWidth - 16;
			height = window.innerHeight;
			fullHeight = window.outerHeight;
			fullWidth = window.outerWidth;
		}
		else if (browser.indexOf("Microsoft") >= 0) {
			width = document.body.offsetWidth - 20;
			height = document.body.offsetHeight;
			colorDepth = window.screen.colorDepth;
		}
		else if (browser.indexOf("Netscape") >= 0) {
			width = window.innerWidth - 16;
			height = window.innerHeight;
			colorDepth = window.screen.pixelDepth
		}
		var X = 0;
		var Y = 0;
		aspectRatio = (baseWidth / baseHeight);
		calcWidth = (screen.width / fullWidth) * baseWidth;
		calcHeight = calcWidth / aspectRatio;
		if (screen.availWidth) {
			X = (screen.availWidth / 2) - (calcWidth / 2);
			Y = (screen.availHeight / 2) - (calcHeight / 2);
		}
		var MyRemote = window.open(theURL, theName, "left=" + X + "screenX=" + X + "screenY=" + Y + ",top=" + Y + ",width=" + calcWidth + ",height=" + calcHeight + ",scrollbars=1,menubar=0,resizable=1");
		MyRemote.focus();
	}
