title: Uncaught ReferenceError: function is not defined?
body: <p>This has to be something simple I'm overlooking but I keep searching for solutions and I'm coming up empty. I have this: </p>
  
  <pre><code>&lt;script src="/js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $("#email").blur(EmailCheck);
  function IsEmail(email) {
    var regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; 
    return regex.test(email);
  }   
  
  function EmailCheck() {
      var Emailvr = $('#email').val();
      if(isEmail(Emailvr)){
          //Good Email
          $('#email_validate').html('&lt;img scr="/img/accept.png"&gt; Good Email');
      }else{
          //Invalid Email
          $('#email_validate').html('&lt;img scr="/img/error.png"&gt; Invalid Email');
      }
  }       
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>It's basically just using the regex to test the email and updating a div with the results. I keep getting a "Uncaught ReferenceError: IsEmail is not defined" error in the firebug console. Any ideas what it could be? Thanks.</p>