I am running the following from html

<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

<form name="sample" method="post" action="popupcalsample.html">
<p>Date: <input type="text" name="Date" size="20">
<!-- ggPosX and ggPosY not set, so popup will autolocate to the right of the graphic -->
<a href="javascript:show_calendar('sample.Date');" ;onMouseOver="window.status='Date Picker'; overlib('Click here to choose a date.'); return true;" onMouseOut="window.status=''; nd(); return true;"><img src="show-calendar.gif" width=24 height=22 border=0></a>
</p>

</form>

This runs a javascript which works fine.

The problem I am having is how to embed this into another form.

Any help will be appreciated.

thanks!