function justify_screen()
{
  var x,y;
  if (self.innerHeight) // all except Explorer
  {
  	x = self.innerWidth;
  	y = self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight)
  	// Explorer 6 Strict Mode
  {
  	x = document.documentElement.clientWidth;
  	y = document.documentElement.clientHeight;
  }
  else if (document.body) // other Explorers
  {
  	x = document.body.clientWidth;
  	y = document.body.clientHeight;
  }


  if (x<1200 || y<770) {
    document.body.scroll = "yes";
    document.body.style.overflow = "auto";
  }
   
  if (y<770) {
    document.getElementById("rahmen_seite").style.height = "800px";
    document.getElementById("inhalt").style.height = "500px";
  }
  
  if (x<1200) {
    document.getElementById("rahmen_seite").style.marginLeft = "auto";
    document.getElementById("rahmen_seite").style.left = "auto";
  }  
  
}


window.addEvent('domready', function(){
  //justify_screen();
});

