function BrowseTabs(varID){ if(varID == 0){varID = 1;} if(varID.length > 3 && varID.match("-")){ varF = varID.split("-"); if(varF[1] == 0){varF[1] = 1;} varID = varF[1]; varF = varF[0]+'-'; }else{ varF = ''; } if(!document.getElementById('div_4397590312904935['+varF+varID+']')){ varID = 1; } if(document.getElementById('div_4397590312904935['+varF+varID+']').style['display'] == 'none'){ for(i=1; i<25; i++){ if(document.getElementById('div_4397590312904935['+varF+i+']')){ document.getElementById('div_4397590312904935['+varF+i+']').style['display'] = 'none'; document.getElementById('div_439587932749['+varF+i+']').className = 'TAB_NONE'; }else{ break; } } document.getElementById('div_4397590312904935['+varF+varID+']').style['display'] = 'block'; document.getElementById('div_439587932749['+varF+varID+']').className = 'TAB_NORMAL'; if(document.getElementById('BrowseTabs_div_tab')){ document.getElementById('BrowseTabs_div_tab').value = varF+varID; } }else{ } TabsCreateCookie(varF, varID, 1); }