// ** z:\web\cbl\pub\s\man\index.js ***           L=004 --- 2003/02/21 16:59:08  (p27)

// Link to SELCOPY manual INDEX in separate browser window. (JavaScript controls window dimensions and characteristics).
// Called by all SELCOPY manual html files.


// L=004 2003/02/21 -nbj- index000.html instead of index@@@.htm.
// L=003 2001/08/30 -nbj- Include directory for target document.
// L=002 2001/07/27 -nbj- Tighten up code for Netscape JavaScript.
// L=001 2001/07/26 -nbj- written.

  win  = "notopen";                                         // Initial value for 'win' i.e. before 1st time index opened.
  opt  = "dependent=yes,width=400,height=250,left=0,top=0,screenX=0,screenY=0,outerwidth=426,outerheight=270,resizable,toolbar,scrollbars";
          // window.open options:
          //   dependent     (Navigator 4.0) If yes, creates a new window as a child of the current window.
          //                  A dependent window closes when its parent window closes. On Windows platforms,
          //                  a dependent window does not show on the task bar.
          //
          //   height        (Navigator 2.0 and 3.0) Specifies the height of the window in pixels.
          //
          //   outerHeight   (Navigator 4.0) Specifies the vertical dimension, in pixels, of the outside boundary of the window.
          //                  To create a window smaller than 100 x 100 pixels, set this feature in a signed script.
          //
          //   resizable      If yes, allows a user to resize the window.
          //
          //   screenX       (Navigator 4.0) Specifies the distance the new window is placed from the left side of the screen.
          //                  To place a window offscreen, set this feature in a signed scripts.
          //
          //   left          (IE) as for screenX above.
          //
          //   screenY       (Navigator 4.0) Specifies the distance the new window is placed from the top of the screen.
          //                  To place a window offscreen, set this feature in a signed scripts.
          //
          //   top           (IE) as for screenY above.
          //
          //   scrollbars     If yes, creates horizontal and vertical scrollbars when the Document grows larger than window dimensions.
          //
          //   toolbar        If yes, creates the standard browser toolbar, with buttons such as Back and Forward.
          //
          //   width         (Navigator 2.0 and 3.0) Specifies the width of the window in pixels.

function PupIndex()
{ if      (win == "notopen")                                               // If 1st invocation of PupIndex.
           win = window.open('../guide/index000.html','smanind',opt);      // Open window called 'win'.
  else if (win.closed)                                                     // If window is now closed.
           win = window.open('../guide/index000.html','smanind',opt);      // Re-open it.
  else     win.focus();                                                    // Otherwise make it the focus window.
}
//                                         --- End ---
