function tabit(btn){ var idname = new string(btn.id); var s = idname.indexof("_"); var e = idname.lastindexof("_")+1; var tabname = idname.substr(0, s); var id = parseint(idname.substr(e, 1)); var tabnumber = btn.parentnode.childnodes.length; for(i=0;i