I'm using a simple pop-up calendar form to return a date to a field on a main form. The javascript that comes with the example uses the form name to get to the control to return the date to but the code I'm using to create the main page (.write statements in the vb.net) doesn't seem to put the HTML within the form tags (when source is viewed, my "dynamic" html is at the top). How can I reference a control that is outside of a form ?