<div class="login" id="background">
<div align="center">
<form action="index.php" method="POST">
-<table class="login" cellpadding="5">
+<table id="logintab" class="login" cellpadding="5">
<tr><th align="left" colspan="2" style="background: #BBD9EE;">Anmeldung</th></tr>
<tr><th align="right">Login</th><td><input type="text" name="login" id="login" size="15"></td></tr>
<tr><th align="right">Passwort</th><td><input type="password" name="passwd" size="15"></td></tr>
var div = document.getElementById("background");
div.style.height = height + 'px';
+var login = document.getElementById("logintab");
+login.style.position = 'absolute';
+login.style.top = ((window.innerHeight / 2) - (130 / 2)) + 'px';
+login.style.left = ((window.innerWidth / 2) - (120 / 2)) + 'px';
+
var inp = document.getElementById("login");
inp.focus();
</script>