codice:
<html> 
<head><title>Documento senza titolo</title> 

<script type="text/javascript"> 
//<!-- 


var indirizzo = window.location.href; 
var to_frame = ""; 


if (indirizzo == 'http://www.mysite.com/') { 
to_frame = "http://www.mysite.com/index_norm.php"; 
} 
else if (indirizzo == 'http://gest@mysite.com/') { 
to_frame= "http://www.mysite.com/gest/"; 
} 
else if (indirizzo == 'http://biella@mysite.com/') { 
to_frame= "http://www.mysite.com/biella/"; 
} 
else { 
to_frame= "http://www.mysite.com/idex_norm.php"; 
} 

var frame_direct= "<FRAMESET ROWS='*,0' FRAMEBORDER='0' BORDER='0' FRAMESPACING='0'><frame src='"+to_frame+"' noresize></FRAMESET><noframes></noframes>"; 

//--> 
</script> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

</head> 


<script type="text/javascript">document.write(frame_direct);</script>


</html>
c'erano degli errori come language="text/javascript" o il title fuori dall'head..o la presenza del body, nonostante il frameset (dinamico)...
vedi se ti va bene.
ciauz