I'm sure there is a very easy solution to my problem that I am overlooking. I am new to Javascript. I want to create a screen with several links, each link needs to pull up a seperate window. The 'name' of the window can be the same. each time another link is clicked I want it to load into the second window for each case. So there will be no more than two window at a time. THE BIG CATCH is I want each time a link is click and the second window loads, I then want it to be the active window. Here is my last code which I was tryint to close it then reload it. There is probably an easier way ...PLEASE HELP !!!!

<script type="text/javascript">
var url
var newwindow

function popwindow(url)

<script type="text/javascript">

<INPUT type="button" value="Win 1" onClick="popwindow(Test for window1.html)">

<INPUT type="button" value="Win 2" onClick="popwindow(Test for window2.html)">