      function DoPopup(GameNum,GameFile,Descript) {

	  <!-- ========================================================================	-->
	  <!-- WARNING!: DO NOT EDIT THIS FILE WITH MOZILLA'S COMPOSER OR ANY OTHER 	-->
	  <!-- 			 HTML EDITOR THAT DOES NOT PRESERVE LINE FORMATTING EXACTLY		-->
	  <!--			 AS IS! Many, many hours have been spent in formatting the text.-->
	  <!--			 Legibility of the HTML code below is heavily dependent on for-	-->
	  <!--			 matting. Rewrapping of text will not only render the HTML		-->
	  <!--			 nearly illegible, but will actually break some of the code		-->
	  <!--			 and garbage up page display. EDIT WITH NOTEPAD ONLY AND WITH	-->
	  <!--			 WORD WRAP TURNED OFF!											-->
	  <!-- ========================================================================	-->

	  <!-- DoPopup opens a popup window in which, using ZMPP, an open source Java   -->
	  <!-- z-machine interpreter, it runs the specified Infocom game. Dopopup takes -->
	  <!-- three parameters:                                                        -->

	  <!-- GameNum      = unique string assigned to each game; used internally as   -->
	  <!--                the unique window name, allowing each game to be opened   -->
	  <!--                in its own unique window.                                 -->
	  <!-- GameFile     = path and name of the Infocom game file (e.g. "Z-Files/    -->
	  <!--                enchante-16.z3").                                         -->
	  <!-- Descript     = A string describing the game; used in the title bar of    -->
	  <!--                the popup window.                                         -->
	  
	  <!-- In addition, the following variables are used internally.                -->

	  <!-- WindowHeight = height in pixels of the popup window                      -->
	  <!-- WindowWidth  = width in pixels of the popup window                       -->
	  <!-- WindowURL    = URL of the page to load in the popup window; leave blank  -->
	  <!-- WindowTop    = distance in pixels from top of screen to top of popup     -->
	  <!-- WindowLeft   = distance in pixels from left of screen to left of popup   -->
	  <!--                WindowTop and WindowLeft are here calculated to center    -->
	  <!--                the popup on-screen. If you wish to manually specify a    -->
	  <!--                position, replace the formulae with values.               -->
	  

          WindowHeight = 403;
          WindowWidth  = 598;
          WindowURL    = "";
          WindowTop    = Math.round((screen.height-WindowHeight)/2);
          WindowLeft   = Math.round((screen.width-WindowWidth)/2);

	  // open the popup window and write content to it

          GameWin = window.open(WindowURL, GameNum, "top="+WindowTop+", left="+WindowLeft+", width=" + WindowWidth + ", height=" + WindowHeight + ", resizable=no, toolbar=no, scrollbars=no, location=no, status=no, menubar=no, titlebar=yes");
          GameWin.document.write("<HTML><HEAD><TITLE>"+Descript+"</TITLE></HEAD>");	
          GameWin.document.write("<BODY>");
          GameWin.document.write('<applet archive="zmpp.jar" code="org.zmpp.swingui.ZmppApplet" width=580 height=387>');
          GameWin.document.write('<param name="StoryFile" value="'+GameFile+'" >');
          GameWin.document.write('<param name="saveto" value="file">');
          GameWin.document.write('<param name="fixedfontsize" value="14">');
          GameWin.document.write('<param name="stdfontsize" value="14">');
          GameWin.document.write('<param name="defaultbg" value="blue">');
          GameWin.document.write('<param name="defaultfg" value="white">');
          GameWin.document.write('<param name="antialias" value="true">');
          GameWin.document.write("</applet>");
          GameWin.document.write("</BODY></HTML>");
          GameWin.document.bgColor="white";
          GameWin.document.close();	

      // If we are on NetScape, we can bring the window to the front
	  
          if (navigator.appName.substring(0,8) == "Netscape") GameWin.focus();

	}

