I've produced an element using joomla 1.7 and I have tried personally tabs like follows. Now My active page is First Tab(tab1.php). Things I want is I wish to visit the third tab by visiting a link. Link that follows can be used to visit this component page, presently it loads last clicked on tab. Plz help.

<a href="index.php?option=com_movies&controller=movie&task=allocate" >Allocate</a>

$pane =& JPane::getInstance('tabs', array('startOffset'=>0));
echo $pane->startPane( 'pane' );
echo $pane->startPanel(JText::_('First Tab'), 'panel1' ); 
echo $pane->endPanel();
echo $pane->startPanel(JText::_('Second Tab'), 'panel2' ); 
echo $pane->endPanel();
echo $pane->startPanel(JText::_('Third Tab'), 'panel3' ); 
echo $pane->endPanel();
echo $pane->endPane(); 

You have to add link that follows which execute some mootool code

<a href='#' onClick='$(\"IdOfTabHeader\").fireEvent(\"click\"); return false;'>Click</a>