hideTabs(); showLayer('tab1'); if( f != undefined) { if(f.P_CurTab != undefined) { f.P_CurTab.value='1'; } }