title: Can "external" javascript functions call "jQuery functions"?
body: <p>I have this code:</p>
  
  <pre><code>(function ($) {  
  
      $(document).ready(function() { 
           test("hola","caracola");
      });
  
      function test(somevar1, somevar2)
      {
          alert(somevar1+ "" + somevar2);
      }
  
  }(jQuery));
  
  function atest2(somevar1, somevar2)
  {
      test(somevar1+ "" + somevar2);
  }
  </code></pre>
  
  <p>when executing test2 function the result is:</p>
  
  <pre><code>ReferenceError: test is not defined
  </code></pre>
  
  <p>My question is:</p>
  
  <p>How can I call test2 to execute correctly jQuery's inner test function?</p>
  
  <p>Thanks</p>