Go to next tab, when the current is closed

I modified a script made by tbone called "ActivateLeftTabOnClose" so that it activates the right adjacent tab upon closing a tab. This should solve the problem.
Event.GUI_ActivateRightTabOnClose.js.txt (8.4 KB)
The original "ActivateLeftTabOnClose" script and installation method is available here.