here is a little lesson in opening windows (and writing to them with javascript)
save this code as firstwin.html
<HTML>
<HEAD>
<TITLE>Page1</TITLE>
</HEAD>
<script type="text/javascript">
</script>
<BODY BGCOLOR="#FFFFFF">
<h1>First Window</ h1>
<h2> this is an example of opening a new window and writing the content - thus the window.open("" etc. If you
wanted to open it with an html page, simply put "mypage.html"<h2>
<form>
<input type="button" value="Open a New Window" onClick='javascript:newWin=window.open("","mywin","width=400
,height=500,location=1,status=1,resizable=1")
newWin.document.open();
newWin.document.write("<html>\n<head>\n<title>My JavaScript Test</title>\n</head>\n");
newWin.document.write("<body>\n\t<h1>Welcome to the child page</h1>");
newWin.document.write("\n<form>\n<input type=\"button\" name=\"closebutton\" value=\"Close This Window\"
onClick=\"self.close()\">\n</form>");
newWin.document.write("\n<form>\n<input type=\"button\" name=\"closebutton\" value=\"Change Parent Window\"
onClick=opener.document.location=\"page2.html\">\n</form>")';
>
</form>
</BODY>
</HTML>
then save this as page2.html
<HTML>
<HEAD>
<TITLE>Page 2</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" >
<h1>Page 2</h2>
<form><input type="button" value="Change Parent" name="changeparent" onClick='javascript:window.open("firstwin.html","mywin");'>
</form>
</BODY>
</HTML>
then open first one in your prowser