Oppa: Einfaches Javascript geht nicht

Beitrag lesen

Moin,

ich habe hier ein Script gemacht und DAS GEHT NICHT!!

Weiß jemand warum??

<html>

<head>

<title></title>

<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">

<script language="JavaScript">
var rows1=eval(Math.floor(screen.height/12.8));
var rows2=eval(Math.floor(screen.height/6.4));
var rows3=eval(Math.floor(screen.height/12.3));

var cols1=eval(Math.floor(screen.width/6));
var cols2=eval(Math.floor(screen.width/1.52));
var cols3=eval(Math.floor(screen.width/6.2));

document.daten.rows1.value=rows1;
document.daten.rows2.value=rows2;
document.daten.rows3.value=rows3;
document.daten.cols1.value=cols1;
document.daten.cols2.value=cols2;
document.daten.cols3.value=cols3;

</script>

</head>
<body>

<form action="/cgi-bin/frame2.pl" method="post" name="daten">

<input type="hidden" name="rows1" value="">
<input type="hidden" name="rows2" value="">
<input type="hidden" name="rows3" value="">
<input type="hidden" name="cols1" value="">
<input type="hidden" name="cols2" value="">
<input type="hidden" name="cols3" value="">

<input type="submit">
</form>

</body>
</html>

Da kommt dann ein Js-Fehler...

Hilfe, ich bin verzweifelt...