tab = Ext.createWidget('tabpanel', { ... });

    function switchTabs(next) {
    	var items = tab.items.items;
	//var active_tab = tabs.getActiveTab();
	tab.setActiveTab(items[next].id);
    }

참조