Can anyone tell me how to set the active tab from Javascript when the TabPanel is in an ASP content container (content page built from a master page).

var t=document.getElementById('<%= TabPanel.ClientID %>');
t.setActiveTab('tab3);

throws an error.

Many thanks.