<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm trying to create a form that opens a popup and
then transfers the value entered in a popup form, back to the form
that opened the popup.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I get the error message:</FONT></DIV>
<DIV><FONT face=Arial size=2>Error: 'document.forms.0.input' is null or not an
object<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help would be appreciated. Here is my
code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>THE SIMPLE "MAIN" FORM</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><html><BR><head><BR><title>Simple
Form</title><BR></head><BR><body><BR><script
language="JavaScript"><BR><!--<BR>function windowOpen()
{<BR> var
myWindow=window.open('popup.htm','windowRef','width=200,height=200');<BR>
if (!myWindow.opener) myWindow.opener =
self;<BR>}<BR>//--></script><BR><input name="openPopup"
type="button" id="openPopup" onClick="Javascript:windowOpen();" value="Get
Value" /><BR><form name="form1" id="form1" method="post"
action=""><BR> <input type="text" value=""
name="output"></input><BR></form><BR></body><BR></html></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>THE POPUP FORM (popup.htm)</FONT></DIV>
<DIV><FONT face=Arial size=2><html><BR><head><BR><title>The
Popup</title><BR><meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" /><BR></head></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><body><BR><script
language="JavaScript"><!--<BR>function updateOpener()
{<BR> window.opener.document.forms[0].output.value =
document.forms[0].input.value;<BR>
window.close();
<BR>}<BR>//--><BR></script><BR>EventId: <BR><input type="text"
name="input"></input><BR><input name="Close" type="submit"
id="Close" onClick="Javascript:updateOpener()"
value="Close"></input><BR></body><BR></html><BR></DIV>
<DIV><BR></DIV></FONT></BODY></HTML>