I have two html (first.htm and second.htm). There is a SELECT (Dropdown) Box in first.htm. There is a button in first.htm. Once the button is clicked, the second.htm will be opened. I wrote a JavaScript in second.htm, to add new options to its opener (first.htm)'s DropDown box. I got error msg (Error: The server threw an exception).

*** Source of first.htm ***

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>

<form name="form1">
<input type="text" name="text"><br>
<select name="DBox">
<option value=""> </option>
</select>

<input type="button" name="Click" value="click" onclick="void(window.open('test1.htm'));">
</form>
</BODY>
</HTML>

*** Source of second.htm ***

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>

<script>
window.opener.document.form1.DBox.options[window.opener.document.form1.DBox.length] = new Option("D","D",false);
close();
</script>
</BODY>
</HTML>

Does anyone know how to solve this problem?

Thanks a lot in advance.
Yani