Hallo.
Das geht so:
<script language="JavaScript" type="text/javascript"><!--
if (Variable) //Wenn die Variable true, also 1 ist
document.location = "./seite1.htm";
else
document.location = "./seite2.htm";
--></script>
Ach und wo du grad wegen Syntax fragst, das schreibt man ohne "h" ;-)
CIAO