cnt_act_num = 0; TAB_act_num = 0; actually_opened_tab = 0; function TAB_REFRESH(id){ document.getElementById('ifr_' + id).contentWindow.document.location.href = document.getElementById('ifr_' + id).contentWindow.document.location; } function TAB_HIDE(){ cnt_frm = document.getElementById('daskhtgjeajhgaejklhaehea'); for(i=0; i < cnt_frm.childNodes.length; i++){ cnt_frm.childNodes[i].style['display'] = 'none'; } } function TAB_DIVHIDE(fld){ cnt_div = document.getElementById('dfaljhgaekihgkaehaeujhea'); for(i=0; i < cnt_div.childNodes.length; i++){ cnt_div.childNodes[i].className = 'TAB_NONE'; } if(document.getElementById(fld)){ document.getElementById(fld).className = 'TAB_NORMAL'; }else{ fld.className = 'TAB_NORMAL'; } } function TAB_REMOVE(id){ cnt_div = document.getElementById('dfaljhgaekihgkaehaeujhea'); cnt_frm = document.getElementById('daskhtgjeajhgaejklhaehea'); cnt_div.removeChild(document.getElementById(id)); cnt_frm.removeChild(document.getElementById('ifr_' + id)); daslktgaekgyae = 0; try{ if(document.getElementById(actually_opened_tab)){ document.getElementById(actually_opened_tab).onclick(); daslktgaekgyae = 1; } }catch(e){} if(daslktgaekgyae != 1){ document.getElementById(cnt_div.childNodes[0].id).onclick(); } } function TAB(nam, url, cfg_dat){ cfg = Array(); if(cfg_dat){ cfg_dat = cfg_dat.split(","); for(i=0; i'; }else{ div.innerHTML = '
'+nam+'
'; } div.onmouseover = function(){ if(this.className == 'TAB_NONE'){ this.className = 'TAB_OVER'; } } div.onmouseout = function(){ if(this.className == 'TAB_OVER'){ this.className = 'TAB_NONE'; } } cnt_div.appendChild(div); if(cfg['delete'] != 'no'){ } if(cfg['hidden'] != "yes"){ TAB_DIVHIDE(div); TAB_HIDE(); } frm = document.createElement('iframe'); url = String(url); if(url.match(/\?/)){ frm.src = url + '&TAB_act_num=' + TAB_act_num; }else{ frm.src = url + '?TAB_act_num=' + TAB_act_num; } frm.style['width'] = '100%'; frm.style['height'] = '100%'; frm.setAttribute("frameBorder", "0"); frm.setAttribute("frameSpacing", "0"); frm.setAttribute("marginHeight", "0"); frm.setAttribute("marginWidth", "0"); frm.setAttribute("scrolling", "auto"); if(cfg['id']){ frm.id = 'ifr_' + cfg['id']; }else{ frm.id = 'ifr_' + cnt_act_num; } cnt_frm.appendChild(frm); } }