Hi qasimidl,
In parent page, write on javascript function which will set focus on that tab. and on the close event of window call the javascript of parent page.
Javascript in parent page :
function Fn1()
{
}
Javascript in child window:
window.opener.Fn1();