{!$Component.idPageTestCase.idForm.idFocusedTab}
This works well when it is there in Javascript tag inside visualforce page, but fails when the Javascript is moved to a static resource and the static resource is referenced in the page like below:
<apex:includeScript loadOnReady="true" value="{!URLFOR($Resource.TestRes, 'JS/Test.js')}" />