Javascript: Referring to control before page is loaded
<p>I have a composite control on an ASPX page. There is Javascript on the ASPX page that gets loaded before the control. Now, since the script refers to the control element which does not exist when the script is loaded, this is throwing a Javascript error of "Obect not defined".  Attaching the script to the onload event of the control gives "Sys not defined".</p>

<p>Any Idea?</p>

<p>The script is in an external file.</p>
