  /*
   ---------------------------------------------------------------
   popup_window.js
   ---------------------------------------------------------------

   Created on  : 2002-06-20
   Author      : Maike Upmann
   Purpose     : opens a popup window with certain width and height

   Version     : 1.0

   Functions   : Show(Url0,Width0,Height0)
                 visible()
                 close_win()



   --------------------------------------------------------------- */

   Protokoll = self.location.protocol;
   Path = self.location.pathname;
   Basis = Protokoll + '//' + Path.substring(1,Path.length-11)
   new_Window = null;

   function newWin(Url, Width, Height, scrollbars, Name)
   {
      options = 'toolbar=0,location=0,directories=0,status=0,menubar=0';
      if(scrollbars.length>1)
      {
         options = options + ",scrollbars=1";
      }
      options = options + ',resizable=0,height='+Height+',width='+Width;
      popup = window.open(Url,Name,options);
      popup.window.moveTo(25,25);
   }

   function Show(Url0,Width0,Height0)
   {
      Url = Url0;
      Width = Width0;
      Height = Height0;
//      close_win();
      setTimeout("visible()",0);
   }

   function visible()
   {
      Window_Height = Height + 4;
      Window_Width = Width + 2;
      Options = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+Window_Height+',width='+Window_Width;
      new_Window = window.open(Url,'',Options);
      with (new_Window)
      {
         self.window.moveTo(25,25);
      }
      new_Window = null;
   }

   function close_win()
   {
      if (new_Window != null)
      if (!new_Window.closed)
          new_Window.close();
   }
