// PopUp.js
// Copyright (C)2000 NetTek, LLC
// Tim McAdoo - 5/5/2000
// This will process pop-up windows

function popUp (href, title, width, height, toolbar, menubar)
  // 1. href is the URL to open
  // 2. title is the name of the window (no spaces!)
  // 3. width & height are dimensions
  // 4. toolbar & menubar are optional "flags"
  // assume no toolbar
  {  
    // flags
    var localtoolbar;
    var localmenubar;
    
    // check for a non-passed value
    if (toolbar == null)
      {
        localtoolbar = 'no';
      }
    else
      {
        localtoolbar = 'yes';
      }

    // check for a non-passed value
    if (menubar == null)
      {
        localmenubar = 'no';
      }
    else
      {
        localmenubar = 'yes';
      }
  
    // open the window
    window.open (href, title, "menubar=" + localmenubar + ",toolbar=" + localtoolbar + ",scrollbars=yes,resizable=no,width=" + width + ",height=" + height);
  }  
