how to enable a disabled date picker on the form

I have a date that is disabled on the the form. I run a javascript method to enable the date. the mehtod is set to run on the form event of 'onFormPopulate'. I can enable the text field portion of the date, but the datepicker(calendar pop-up), will not enable. I cannot get the calendar to allow me to select a date. Is there a way to enable the calendar?

getFieldByName("_actual_plan_bill").getElementsByTagName("input")[0].disabled = false;