My current code:
<body onload=populateCurrDate('tbArrDate', 'tbDSDateTime', 'tbALocDateTime', 'tbPLocDateTime'); document.formsbtnArrDate.disabled=false;">
where btnArrDate is the ImageButton that I want to enable. But, I get the following runtime error: 'document.forms.0.btnArrDate' is null or not an object. But, it is establish later in the <form> ....</form> definition. And, I thought onload executes after the page is loaded. If not, what do I use?