function change_layout()
{
   var obj = document.getElementById('hauptrahmen');

   var cw;
   var ch;

   if(obj)
   {
      if((document.all)&&(!self.opera))
      {
         if(document.documentElement.clientWidth)
         {
            cw = document.documentElement.clientWidth;
            ch = document.documentElement.clientHeight;
         }
         else
         {
            cw = document.body.clientWidth;
            ch = document.body.clientHeight;
         }
      }
      else
      {
         cw = document.documentElement.clientWidth;
         ch = document.documentElement.clientHeight;
      }

      var topp  = (ch-770)/2;
      var leftp = (cw-800)/2;

      if(topp  < 0) topp = 0;
      if(leftp < 0) leftp = 0;

      obj.style.left = leftp + 'px';
      obj.style.top  = topp + 'px';
   }
};




function start()
{
   change_layout();

   window.onresize = change_layout;
}
