    // showCentered( url, name, strScrollbars, nHeight, nWidth )
    //
    // output: popup window, gecentreerd op het scherm en waarbij gifjes blijven bewegen!
    // in:     strScrollbars moet "yes" of "no" zijn
    //         nHeight en nWidth zijn optioneel
    var popupHandle;
  	
    function closePopup()
    {
      if(popupHandle != null && !popupHandle.closed) popupHandle.close();
    }
  	
    // showCentered opent een gecentreerd popup-window
    //   nHeight en nWidth zijn optionele params 
    function showCentered(url,name,strScrollbars,nHeight,nWidth)
    {
      if (nHeight <= 0 || nWidth <= 0 || nHeight == null || nWidth == null)
      {
        nHeight = 430;  // default
        nWidth  = 507;  // default
      }
      if (strScrollbars != "yes" && strScrollbars != "no")
      {
        strScrollbars = "no";
      }
        
      var properties = "width=" + nWidth + ", height=" + nHeight;
      properties    += ",toolbar=no, status=no, location=no";
      properties    += ",menubar=no,directories=no";
      properties    += ",scrollbars=" + strScrollbars;
      properties    += ",resizable=no";
      
      if (window.screen)
      {
        var ah = screen.availHeight - 30;
        var aw = screen.availWidth - 10;
        
        var yc = (ah - nHeight) / 2;
        var xc = (aw - nWidth) / 2;
        
        properties += ",left="    + xc  + ",top="     + yc;   // voor IExplorer
        properties += ",screenX=" + xc; + ",screenY=" + yc;   // voor Netscape
      }                                // parameters worden ignored als niet van toepassing
      
//   window.alert(properties);
      closePopup();
      popupHandle = open(url,name,properties);
    }


