function popupWindow(popupLocation, windowName, popupWidth, popupHeight, statusBarOn) {
	var heightspeed = 15; 	// vertical speed
	var widthspeed 	= 15;  	// horizontal speed
	var leftdist 	= (screen.width - popupWidth) / 2;    	// distance to left edge of window
	var topdist 	= (screen.height - popupHeight) / 2;   	// distance to top edge of window
	if (document.all) {
		if (statusBarOn) {
			var popUpWin = window.open("", windowName, "left=" + leftdist + ",top=" + topdist + ",width=4,height=4,scrollbars=yes,resizable=yes,status=yes");
		} else {
			var popUpWin = window.open("", windowName, "left=" + leftdist + ",top=" + topdist + ",width=4,height=4,scrollbars=yes,resizable=no,status=no");
		}
		for (sizeheight = 1; sizeheight < popupHeight; sizeheight += heightspeed) {
			popUpWin.resizeTo("1", sizeheight);
		}
		for (sizewidth = 1; sizewidth < popupWidth; sizewidth += widthspeed) {
			popUpWin.resizeTo(sizewidth, sizeheight);
		}
		popUpWin.resizeTo(popupWidth, popupHeight);
		popUpWin.location = popupLocation;
		popUpWin.focus();
	} else {
		var popUpWin = window.open(popupLocation, windowName, "left=" + leftdist + ",top=" + topdist + ",width=" + popupWidth + ",height=" + popupHeight + ",scrollbars=yes");
		popUpWin.focus();
	}
}