tabbar - accessing object when tab contents get loaded

I have following code in place in home.jsp to create a main tabbar onload.

maintabbar = new dhtmlXTabBar(“main_tabbar”, “top”);
maintabbar.addTab(“m1”, “Search”,“100px”);
maintabbar.setContentHref(“m1”, “‘findData’”);

Here, findData action renders a new page,lets say search.jsp, into tab “Search”.
Now when I get a call from findData I need to add a new tab depending on the return status.
But I can not access maintabbar in search.jsp.

Is there any way out to access a maintabbar in search.jsp?

never mind. I have been able to access parent tabbar using parent.maintabbar