	function MM_openwin(MM_file,MM_height,MM_width,allowScrollbars,allowResizing)
	{
   		MM_config=""
	    MM_config+="toolbar=no,";
	    MM_config+="location=no,";
   		MM_config+="directories=no,";
		MM_config+="status=no,";
		MM_config+="menubar=no,"; //Not on Apple Mac for obvious reasons
	    MM_config+="scrollbars=" + (allowScrollbars ? "yes" : "no") + ",";
        MM_config+="resizable=" + (allowResizing ? "yes" : "no") + ","; //Mac windows are always resizable
        MM_config+="copyhistory=no,";
		var iWidth = Math.min(MM_width, window.screen.width);
		var iHeight = Math.min(MM_height, window.screen.height);
        MM_config+="width="+iWidth+",";
        MM_config+="height="+iHeight + ",";
		var iLeft = (window.screen.width/2) - (MM_width + 10)/2; //half the screen width minus half the new window width (plus 5 pixel borders).
		var iTop = (window.screen.height/2) - (MM_height + 50)/2; //half the screen height minus half the new window height (plus title and status bars).		
		MM_config+="left=" + iLeft;
		MM_config+=",top=" + iTop; 		
        var MM_win=open(MM_file,"",MM_config);
        MM_win.focus();
	 }
