title: Changing Active Tab From a Tab in Different URL?
body: <p>I have the following setup: On <code>ApplicationTabGroup.js</code> I have a tabgroup </p>
  
  <p><code>var tabGroup = Ti.UI.createTabGroup();</code> with 2 tabs.</p>
  
  <p>One of those tabs calls an external URL, here is the code</p>
  
  <pre><code>//Restaurant Window
      var restaurant = Titanium.UI.createWindow({
          tabBarHidden:true,
          color: '#FFF',
          url: 'restaurants.js',
          navBarHidden:false,
          statusBarStyle: Titanium.UI.iPhone.StatusBar.TRANSLUCENT_BLACK
      });
  
  
      var tab2 = Ti.UI.createTab({
          title:"x",
          color: '#FFF',
          backgroundColor:'#00c0f3',
          window: restaurant
      });
  </code></pre>
  
  <p>And I open that tab with an EventListener like this</p>
  
  <p><code>tabGroup.setActiveTab(tab2).open();</code></p>
  
  <p>The problem is that from <code>restaurant.js</code> I don't know how to get back to the first tab, or any other tab because the <code>tabgroup</code> in <code>restaurant.js</code> is not defined.</p>
  
  <p>How can I navigate through tabs that are called in different URLs when the tabgroup is just defined in <code>ApplicationTabGroup.js</code>?</p>
  
  <p>I am using - iOS7 - SDK 3.1.3 GA</p>
  
  <p>Any tip in the right direction will be much appreciated!</p>