You can set event handler for tab selection. If it returns false then tab selection will not be changed.
Go to the dhtmlxTabbar main page or Close this page
Over 2000+ free Javascript at JavaScriptBank.com Website