  function Campaign ()
    {
        var width = screen.height/2.;

        width = 600.;
        var height = 3.*width/4. + 60.;
        var dist = (screen.height - width)/6.;

        campaign = window.open('campaign.html', 'campaign', 'height=' + height + ',width=' + width + ',left=' + dist + ',top=' + dist + ',location=No,menubar=No,scrollbars=Yes,status=No,toolbar=No,resizable=Yes,fullscreen=No');
        campaign.focus();
    }
    
  function FensterOeffnen (Adresse)
    {
        Fenster = window.open(Adresse,'newWindow','width=765,height=700,left=25,top=25,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No')
    }

  function adjustLayout ()
  {
    var
        clHeight = xClientHeight(),
        frame = xGetElementById('pageframe'),
        frameHeight = clHeight - 250.,
        frameWidth = 795.;

    xResizeTo(frame, frameWidth, frameHeight);

    var efooter = xGetElementById('footer'),
        efooterHeight = 300,
        efooterWidth = 170;
    
    if (clHeight < 770)
      {
        efooterHeight = 255;
      }

    if (clHeight < 720)
      {
        efooterHeight = 205;
      }

    if (clHeight < 670)
      {
        efooterHeight = 155;
      }

    if (clHeight < 620)
      {
        efooterHeight = 55;
      }
    
    xResizeTo(efooter, efooterWidth, efooterHeight);
  }

  window.onload = function()
  {
    xAddEventListener(window, 'resize', adjustLayout, false);
    adjustLayout();
  }


