title: onChange function is not defined
body: <p>This has got to be something simple. I searched the internet and only found syntax errors as the cause of this problem, but I can't find a syntax error.</p>
  
  <p>Here's the javascript :</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://localhost/acrilart/javascript/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          function hi(){
              alert('hi');
          }
          hi();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>And the HTML :</p>
  
  <pre><code>&lt;input type="text" name="cep" value="" id="cep" class="required cep field"
         onChange="hi()" /&gt;
  </code></pre>
  
  <p>On pageload the function <code>hi</code> is called as expected, but my <code>onChange</code> event causes a Firebug error, saying the function is not defined. I'm really stumped. Did I mispell 'hi'?</p>