YUI: Calendar attached to Text Input

Here is an example on how to attach a popup calendar to a text input. Just place your cursor in the text box & the calendar will appear.

Select Date:
Select Date:
Select Date:

The HTML/PHP

The Javascript