// This functions displays the passed in window as a popup window.
function popup(mylink)
{
   if (! window.focus)
      return true;

   var DELIM = ",";
   var WIDTH  = 400;        // width of the popup
   var HEIGHT = 355;        // height of the popup 
   var RESIZABLE = "no";    // can the user resize the popup
   var SCROLLBARS = "no";   // does the popup hava scroll bars
   var TOOLBAR = "no";      // does the popup have a navigation bar
   var LOCATION = "no";     // does the popup show the url
   var DIRECTORIES = "no";  // does the popup show extra buttons
   var STATUS = "no";       // does the popup have the bottom status bar
   var MENU_BAR = "no";     // does the popup have the top  menu bar
   var COPY_HISTORY = "no"; // does the parent window history get copied to the popup
   var TOP = 300;           // distance in pixels from the top of the screen 
   var LEFT = 0;            // Not using for the moment.

   var href;
   var parameters = "";

   parameters = parameters 
                + "width=" + WIDTH + DELIM
                + "height=" + HEIGHT + DELIM
                + "resizable=" + RESIZABLE + DELIM
                + "scrollbars=" + SCROLLBARS + DELIM
                + "toolbar=" + TOOLBAR + DELIM
                + "location=" + LOCATION + DELIM
                + "directories=" + DIRECTORIES + DELIM
                + "status=" + STATUS + DELIM
                + "menubar=" + MENU_BAR + DELIM
                + "copyhistory=" + COPY_HISTORY + DELIM
                + "top=" + TOP;

   if (typeof(mylink) == 'string')
      href=mylink;
   else
      href=mylink.href;

   window.open
      (href, 
       "privacy",
       parameters); 

   return false;
}

