THX , o to chodziło

oto kod jaki chciałem otrzymać :
Kod
<SCRIPT language="JavaScript1.2">
<!--
var correctwidth=800
var correctheight=600
if (screen.width==correctwidth||screen.height==correctheight)
location.replace('strona 800 na 600')
else
location.replace('strona 1024 700')
//-->
</SCRIPT>