Allowing only numeric typing
<p>I Have this javascript code to allow only numeric input on textboxes</p>

<pre><code>    function CheckNumeric(e) {

        if (window.event) // IE 
        {
            if ((e.keyCode &lt; 48 || e.keyCode &gt; 57) &amp; e.keyCode != 8) {
                event.returnValue = false;
                return false;
            }
        }
        else { // Fire Fox
            if ((e.which &lt; 48 || e.which &gt; 57) &amp; e.which != 8) {
                e.preventDefault();
                return false;
            }
        }
    }
</code></pre>

<p>The problem is that it's also preventing the "TAB" button ! wich i like to allow it.</p>

<p>i wish you could help me do that.</p>
