function CheckResolution()
{
var height = screen.height;
var width = screen.width;
if (height < 769)
{Klein();
}
else{Gross();
}
}
function Gross()
{
var BrowserName    = navigator.appName;
var BrowserVersion = navigator.appVersion;
var VersionShort   = BrowserVersion.substr(0, 1);
if(frames)
{
if(top.frames.length > 0)
top.location.href=self.location;
}
else
{
open("noframe/index.htm", "NoframeWindow");
close();
}
var breite = (screen.width - 1040)/2;
var hoehe = (screen.height - 860)/2;
window.moveTo(breite,hoehe);
if(VersionShort  > 3)
{
if(BrowserName == "Netscape")
{
window.outerHeight = 860;
window.outerWidth = 1040;
}
else if(BrowserName == "Microsoft Internet Explorer")
{
window.resizeTo(1040, 860);
  }
 }
}
function Klein()
{
var BrowserName    = navigator.appName;
var BrowserVersion = navigator.appVersion;
var VersionShort   = BrowserVersion.substr(0, 1);
if(frames)
{
if(top.frames.length > 0)
top.location.href=self.location;
}
else
{
open("noframe/index.html", "NoframeWindow");
close();
}
window.moveTo(0, 0);
if(VersionShort  > 3)
{
if(BrowserName == "Netscape")
{
window.outerHeight = screen.height;
window.outerWidth = screen.width;
}
else if(BrowserName == "Microsoft Internet Explorer")
{
window.resizeTo(screen.width, screen.height);
  }
 }
}
