title: how to access variable inside jquery from regular javascript function
body: <p>I am a newbie to the jquery. I am trying to access a variable defined inside jquery block outside the jquery (from regular function) like this, but I can't access it. Could somebody tell me how?</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  $(function()
  {
      .......
      .......
      .......
      var api = pane.data('jsp');
      var current_location = api.getContentPositionX();
  }
  
  function change_title(t_index) {
      alert("print="+$.current_location);
      window.location.href="page.php?p="+$.current_location);
  }
  </code></pre>
  
  <p></p>
  
  <p>I want to get a value for $.current_location.</p>
  
  <p>Thanks.</p>