Hallo, bei mir klappt's so:
<script>
function test(){
if(screen.availHeight < 700 && screen.availWidth < 1000){ links = 50; obenmitte = "100,377,*";}
else if(screen.availHeight > 800 && screen.availWidth > 1100){ links = 150; obenmitte = "120,377,*";}
else
if(browser == "Netscape" && version < 5) { links = 50; obenmitte = "110,382,*"; }
else { links = 70; obenmitte = "120,377,*"; }
}
</script>
<script>
test();
alert(links);
alert(obenmitte);
dwr="";
dwr+='<frameset cols='+links+',* frameborder=0 framespacing=0 border=0>';
dwr+='<frame name="links" src="links.htm" marginheight="0" marginwidth="0" scrolling="no" noresize>';
dwr+='<frameset rows='+ obenmitte +' frameborder=0 framespacing=0 border=0>';
dwr+='<frameset cols="540,*" frameborder="0" framespacing="0" border="0">';
dwr+='<frame name="oben" src="oben.htm" marginheight="0" marginwidth="0" scrolling="no" noresize>';
dwr+='<frame name="schwarzoben" src="schwarz.htm" marginheight="0" marginwidth="0" scrolling="no" noresize>';
dwr+='</frameset>';
dwr+='<frame name="mitte" src="mitte.htm" marginheight="0" marginwidth="0" scrolling="no" noresize>';
dwr+='<frameset cols="540,*" frameborder="0" framespacing="0" border="0">';
dwr+='<frame name="unten" src="unten.htm" marginheight="0" marginwidth="0" scrolling="no" noresize>';
dwr+='<frame name="schwarzunten" src="schwarz_unten.htm" marginheight="0" marginwidth="0" scrolling="no" noresize>';
dwr+='</frameset>';
dwr+='</frameset>';
dwr+='</frameset>';
alert(dwr);
</script>
<script>
document.write(dwr);
</script>