title: How do i call a function when a tab is selected in a dojo tab container?
body: <p>I have a tab container with tabs, that depending on what tab is selected, i would like a function to run.  I have already created the function in Java Script, that will either Hide or Display a window.  The function works fine.  How do i tell the tabs  to run this function?  In the code below, i show in the "Contents" of a tab, a function intitled "hidediv".  I also have a function called "showdiv".  I want to remove it from the contents, and have it run automatically when the tab is selected.  any suggestions?  I do not want it to affect the contents of the tab at all.<br>
  Thank you!</p>
  
  <pre><code>            &lt;div dojoType="dijit.layout.ContentPane" title="Setup"&gt;
              &lt;a href="javascript:hidediv()"&gt;Hide div&lt;/a&gt; 
              &lt;/div&gt;
  </code></pre>