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 !!!!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>burgers</title>
<script type="text/javascript">
var url
var newwindow

function popwindow(url)
{
newwindow.close();
window.open('url','newwindow','width=400,height=200')
}

</script>
</head>
<body>
<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)">
</script>
</body>
</html>