How do you do add close function to tab ?

How do you do add close function to tab ?


Hello everybody
I use Ui Tabs version 3 to my site. (http://stilbuero.de/jquery/
tabs_3/).
I have 2 questions/problems.
1. I would like to add a little button in tab created with
tabsAdd('#new-tab', 'New Tab', 4); method.
But I don't any idea to do this. Can you explain me how do you do ? If
it is possible of course.
In fact I need this function for my project.
2. Moreover, I would like count my tabs created. Because I create a
tab when I click on marker in my google map. So I need the last number
of my tabs to create the new with number+1.
Thank you very much for you help (and sorry for my broken english...)