function openCharacterWindow(page) {
	window.open(page, "featureCharacterWindow", "width=620,innerwidth=620,height=450,innerheight=450,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function openMediaWindow(page) {
	window.open(page, "featureMediaWindow", "width=620,innerwidth=620,height=450,innerheight=450,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function openNonResizableWindow(page) {
	window.open(page, "featureWindowNonResizable", "width=600,innerwidth=600,height=400,innerheight=400,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=no,resizable=no");
}

var isNav, isIE;

if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
	isNav = (navigator.appName == "Netscape") ? 1 : 0;
	isIE = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}

function fitWindowSize() {
if (isNav) {
	//window.innerWidth = 620;
	//window.innerHeight = 620;
	//window.outerWidth = 450;
	//window.outerHeight = 450;
	}

if (isIE) {
	var screen_width = screen.width;
	var screen_height = screen.height;

	//manually set screen resolution for testing purposes
	//screen_width = 1024;
	//screen_height = 768;

	width = 630;

	// if resolution is higher than 640x480,
	// resize popup vertically to take up full screen height --
	// until everything in window is shown
	if (screen_height > 480) { height = 600; }
	if (screen_height > 600) { height = 768; }
	if (screen_height > 768) { height = 930; }

		// if vertical res > total popup height, remove scrollbars
		//if (screen_height > 870) { width = 600 }

	window.resizeTo(width, height);
	}
}
