dialog in tab: get current tab on click "OK"

dialog in tab: get current tab on click "OK"

Hi,

 I have several tabs each with dialogs that have forms.  I want to set a value when a certain tab is active and the "OK" (submit) button is clicked.  how can I access the current tab index?

Thanks.