javascript calendar pop up not working
<p>I am trying get Javascript popup calendar control to work which doesnt work.  I am getting </p>

<p>an error "Microsoft JScript runtime error: 'window.opener.document.forms(...).control' is null or not an object".  Here is my event,</p>

<pre><code>protected void Change_Date(System.Object sender, System.EventArgs e)
{
    string strScript = "&lt;script&gt;window.opener.document.forms(0)." + control.ClientID + ".value = '";
        strScript += calDate.SelectedDate.ToString("MM/dd/yyyy");
        strScript += "';self.close()";
        strScript += "&lt;/" + "script&gt;";

        ClientScript.RegisterClientScriptBlock(this.GetType(), "Startup", strScript);
}
</code></pre>

<p>It displays the calendar fine but when I click on the date, I am getting the error and the date is inserted into the textbox.</p>
