Why won't this Javascript Function Work?
<p>I have a JavaScript function that is not working now that I put in a new one under it. Here is what is in the head of my document.</p>

<pre><code> &lt;head&gt;
&lt;link rel="stylesheet" href="9j3nz/style.css" type="text/css"&gt;
   &lt;script src="jquery.js"&gt;&lt;/script&gt;
    &lt;script src="processing.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
      function isNumberKey(evt)
      {
         var charCode = (evt.which) ? evt.which : event.keyCode
         if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57))
           return false;

         return true;
      }
&lt;/script&gt;

&lt;script type="text/javascript"&gt;

function stopRKey(evt) {
  var evt = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
  if ((evt.keyCode == 13) &amp;&amp; (node.type=="text")) 
      $("label#enter_error").show();
 {return false;}
}

document.onkeypress = stopRKey;

&lt;/script&gt; 
  &lt;/head&gt;
</code></pre>

<p>Everything is working fine except the isnumberkey function that was previously working. Nothing has changed in my HTML. Any help is appreciated. Thanks!</p>

<p>I am calling the isnumberkey function as follows:</p>

<pre><code> onkeypress="return isNumberKey(event)"
</code></pre>

<p>What might be keeping this from working? It has only started acting up since I put in the Stop Enter Key function.</p>

<p>EDIT:</p>

<p>After removing the Stop Enter Key function the isnumberkey event works again. I think they are interfering with each other some how.</p>
