Greybox: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus
<p>I have a page that loads within a greybox. I set the focus with document.getElementById("textfield").focus() - this works fine when calling the page directly.</p>

<p>But when loaded in a greybox, setting the focus on the onload() event returns</p>

<p>Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus</p>

<p>Calling it later works fine.</p>

<p>Any ideas?</p>

<p>Thanks!</p>
