Login Register

if Tab Exist donot create it other wise create it depending on id or label

Hi,
I want to do something like this
if(tab is existing depending upon Id)
select the tab
return
else
create a tab
add the content

var properties = {id: "test id", label: "label",closable: false, onClose: testClose};
dojo.mixin(newTab,properties);
tabContainer.addChild(newTab);
tabContainer.selectChild(newTab);

How can I do the same. Is there any way that I can store some other property of for Tab and get it.
Regards,
Allahbaksh
http://allahbaksh.blogspot.com