Why can't I do this in a function?
<pre><code>function focus(element) {
    document.form.element.focus();
}
</code></pre>

<p>I want to have a function to focus on an input box, but it seems I can't do that. Is there a better way to do this?</p>
