  var is_ie = document.all;
  var is_ns = document.layers;

  function this_start()
  {
    var weite = 600 * 1 ;
    var hoch  = 650 * 1 ;
    var scr_hoehe = screen.availHeight ;
    var scr_weite = screen.availWidth  ;
    if (document.all) { doc_hoehe = document.body.scrollHeight } else { doc_hoehe = self.document.height };
    if (document.all) { offs = 35 }                              else { offs = 35 } ;              // Ausgleich der Höhe je nach Browser :)
                                                                                                   // früher unterschiedlich, aber nun für
                                                                                                   // MSIE, Mozilla, Opera, Firefox angepasst
    if (doc_hoehe < scr_hoehe) { hoch = doc_hoehe }              else { hoch = scr_hoehe - 50 } ;  // Bildschirm ist Maximum
    var y         = 5 ;
    var x         = scr_weite - weite - 20 ;

    weite = 600 * 1 ;
    hoch  = 700 * 1 ;
    x     =  10 * 1 ;

    var w         = weite + 15 ;
    var h         = hoch + offs ;
    window.resizeTo( w , h );       if (this.name == 'mego_homepage2') x = 5 ;

    window.moveTo  ( x , y );
    window.focus();
  }

  // - - - - - - - -
  function SwitchLayer( layer )
  {
    var props = null;

    if ( is_ie )
    {
      props = document.all[layer].style;
      props.display = (props.display == "" ? "none" : "");
    }
    else if ( is_ns )
    {
      props = document.layers[layer];
      props.visibility = (props.visibility == "show" ? "hide" : "show");
    }
  }

  // - - - - - - - -
  function is_empty( value )
  {
    for ( i = 0; i < value.length; i++ )
    {
      c = value.charAt( i );
      if ( c != ' ' ) return false;
    }
    return true;
  }

  // - - - - - - - -
  function is_num( value, len )
  {
    l = value.length;
    if ( l < len ) return false;

    for ( i = 0; i < l; i++ )
    {
      c = value.charAt( i );
      if ( c < '0' || c > '9' ) return false;
    }
    return i == l;
  }

  // - - - - - - - -
  function ResetStatus()
  {
    self.status='MEGO Internet-Verlag GmbH';
    setTimeout( 'ResetStatus()', 10000 );
    // window.name='mego';
  }

  // - - - - - - - -
  function new_win(url)
  {
    para = 'screenX=320,screenY=5,width=400px,height=600px,toolbar=no,directories=no,';
    para = para + 'status=no,scrollbars=yes,menubar=no,locationbar=no,resizable=yes';
    w1=window.open( url, 'editor', para);
    w1.focus();
  }
