Need help with a function
<p>I want to make a function that will handle focus for multiple forms. I'm certainly doing something wrong here because it isn't working as expected. Can someone tell me what's wrong?</p>

<pre><code>&lt;a href="#" onclick="x('a','b','')"&gt;test&lt;/a&gt;

&lt;script type="text/javascript"&gt;
function x(xform, xbox, xval) {
  document.xform.xbox.focus();
}
&lt;/script&gt;
&lt;input type="text" id="b" name="b" /&gt;
</code></pre>
