var tab=0;
var subTab=0;
var degel=0;
var LastTab;
var LastSelTab="";
mOver=false;
var isDVLANSupported = 0;
var rwMode = 1; //0 = READ-ONLY Mode, 1 = READ-WRITE Mode
var poeMode = 0;
var ospfMode = 0;
var noRoutingMode = 0;
var switchType = 0; //0 = FSMxxS, 1 = GSM73xxS, 2 = GSM72xxR, 3 = GS7xxTR

function setMode(read, poe, ospf, swType)
{
  rwMode = read;
  poeMode = poe;
  ospfMode = ospf;
  switchType = swType;
}

function OverTab(ths,lvl)
{ 
  mOver=false
  if (lvl==1)
  {
    if (ths.childNodes[0].src.indexOf("on.gif")==-1)
    {
      ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"ro.gif"; 
    }
  }
  else if (ths.childNodes[0].src.indexOf("off.gif")!=-1) 
  {
    ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"on.gif";
    mOver=true
  }
}
var x=0
var thisFlag=false
function OutTab(ths,lvl)
{ 
  if(lvl==1)
  {
    if(ths.childNodes[0].src.indexOf("on.gif")==-1)
    {
      ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"off.gif";
    }
  }  
  else 
  {
    if (!thisFlag && mOver)
    {
      ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"off.gif"; 
    }
    thisFlag=false
    var subLinks=document.getElementsByName("subLink");
    count=0;
    if (navigator.appName!='Netscape')
    {
      for (var i=0;i<subLinks.length;i++)
      {
        if (subLinks[subTab].childNodes[0].src.indexOf("off.gif")!=-1)
        {
          count++;
        }
      }
      if (count==subLink.length)
      {
        ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"on.gif";
      } 
    }
    else if (navigator.appName=='Netscape') 
    {
      for (var i=0;i<subLinks.length;i++)
      {
        if (subLinks[i].childNodes[0].src.indexOf("off.gif")==-1 && subLinks[i]!=ths)
        {
          subLinks[i].childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"off.gif";
        }
      }
      if (ths==subLinks[0])
      {
        for (var i=0;i<subLinks.length;i++)
        {
          if (subLinks[subTab].childNodes[0].src.indexOf("off.gif")!=-1)
          {
            count++;
          }
        } 
        if (count==subLinks.length)
        {
          ths.childNodes[0].src=subLinks[0].childNodes[0].src.substring(0,subLinks[0].childNodes[0].src.length-7)+"on.gif";
        }
      }
    }
  }
}

function setTabset(ths)
{  
  var curTd;
  var tbl=ths.parentNode.parentNode.parentNode.parentNode;
  var tb;
  if (LastSelTab=="")
  {
    ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"ro.gif";
  }
  if ((LastSelTab!="")&&(LastSelTab!=ths))
  {  
    LastSelTab.childNodes[0].src=LastSelTab.childNodes[0].src.substring(0,LastSelTab.childNodes[0].src.length-6)+"off.gif";
  }
  LastSelTab=ths;
  if (ths.childNodes[0].src.indexOf("on.gif")==-1)
  {
    if (ths.childNodes[0].src.indexOf("ro.gif")!=-1)
    {
      ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"on.gif";
    }
    else
    {
      ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"on.gif";
    }
  }
  var txt= ths.childNodes[0].src.split("/")[ths.childNodes[0].src.split("/").length-1].split("_")[1];
  removeTabs();
  Loading(txt);
  subTab=0;
  if ((document.getElementsByName("subLink").length != 0) || (document.getElementsByName("subLink")[0] != undefined))
  {
    document.getElementsByName("subLink")[0].onclick();
  }
}

mainObj=document.getElementById("maincontent")
function setPage(ths)
{
  var addr; 
  thisFlag=false
  var subLinks=document.getElementsByName("subLink");
  for (var i=0;i<subLinks.length;i++)
  {
    if (subLinks[i]==ths)
    {
      if (subTab!=i)
      {
        if (subLinks[subTab].childNodes[0].src.indexOf("off.gif")==-1)
        {
          subLinks[subTab].childNodes[0].src=subLinks[subTab].childNodes[0].src.substring(0,subLinks[subTab].childNodes[0].src.length-6)+"off.gif";
        }
      }   
      if (i==0)
      {
        subTab=i;
        if (subLinks[subTab].childNodes[0].src.indexOf("off.gif")!=-1)
        {
          subLinks[subTab].childNodes[0].src=subLinks[subTab].childNodes[0].src.substring(0,subLinks[subTab].childNodes[0].src.length-7)+"on.gif";
        }
      }
      else
      {
        subTab=i;
        if (subLinks[subTab].childNodes[0].src.indexOf("off.gif")==-1)
        {
          subLinks[subTab].childNodes[0].src=subLinks[subTab].childNodes[0].src.substring(0,subLinks[subTab].childNodes[0].src.length-6)+"on.gif";
        }
        thisFlag=true 
      }
      if (navigator.appName=="Netscape")
      {
        if (ths!=subLinks[0])
        {
          if (subLinks[0].childNodes[0].src.indexOf("off.gif")!=-1)
          {
            subLinks[0].childNodes[0].src=subLinks[0].childNodes[0].src.substring(0,subLinks[0].childNodes[0].src.length-7)+"off.gif";
          }
        }
      }
      parentNodeLength=ths.parentNode.lang.length
      if (parentNodeLength>30)
      {
        frObj=document.getElementById('frameId')
        frObj.className ="spacer95Percent"
      }
      else
      {
        frObj=document.getElementById('frameId')
        frObj.className ="spacer85Percent"
      }
      document.getElementById("maincontent").contentWindow.location.replace(ths.parentNode.lang);
      return;
    }
  }
}

function removeTabs() 
{
  var trNode=gtElmid("subTubs");
  for (var i=trNode.childNodes.length-1;i>=0;i--)
  {
    delObj=trNode.removeChild(trNode.childNodes[i]);
    delete delObj;
  }
  return;
}

function addTabs(arrName,arrLink,prefix,SubTree) 
{
  var str;
  var trNode=gtElmid("subTubs");
  var tdNode=gtElmid("cloneTd");
  var cloneNode;
  var TabName="";
  cloneNode=tdNode.cloneNode(false);
  str=" ";
  cloneNode.innerHTML=str;
  trNode.appendChild(cloneNode);
  for (var i = 0; i < arrName.length; i++)
  {  
    if(i==0)
    {
      cloneNode=tdNode.cloneNode(false);
      TabName=arrName[i];
      if (TabName != "") 
      {
        str="<td class='navCell'><a href='javascript:void(0)' name='subLink' href='#' onmouseover=OverTab(this,2); onmouseout=OutTab(this,2); onclick=setPage(this);PaintSubTree('"+SubTree[i]+"')><img src='/base/images/"+TabName+"_on.gif' border=0 title=" + TabName + "></a>";
      }
      else
      {
        str="<td class='navCell'>"; 
      }
      if (i!=arrName.length-1)
      {
        cloneNode.innerHTML=str + "<img src='/base/images/blue_nav_horizontal_divider.gif' vspace='2' align='top' style='margin-left:8px;'>";
      }
      else
      {
        cloneNode.innerHTML=str;
      }
      cloneNode.lang=prefix + arrLink[i];
      trNode.appendChild(cloneNode);
    }
    else 
    {
      cloneNode=tdNode.cloneNode(false);
      TabName=arrName[i];
      str="<td class='navCell'><a href='javascript:void(0)' name='subLink' href='#' onmouseover=OverTab(this,2); onmouseout=OutTab(this,2); onclick=setPage(this);PaintSubTree('"+SubTree[i]+"')><img src='/base/images/"+TabName+"_off.gif' border=0 title=" + TabName + "></a>";
      if (i!=arrName.length-1)
      {
        cloneNode.innerHTML=str + "<img src='/base/images/blue_nav_horizontal_divider.gif' vspace='2' align='top' style='margin-left:8px;'>";
      }
      else
      {
        cloneNode.innerHTML=str;
      }
      cloneNode.lang=prefix + arrLink[i];
      trNode.appendChild(cloneNode);
    }
  }
  return;
}

function space() 
{
  return "";
}

var BackLink="";
function SetLinkPage(Loc,ths) 
{
  if (ths.parentNode.parentNode.parentNode!=null && (document.getElementsByName(ths.name)[0].id!='f1' && document.getElementsByName(ths.name)[0].id!='f2' && document.getElementsByName(ths.name)[0].id!='f3'))
  {
    tby=ths.parentNode.parentNode.parentNode
    for (i=0;i<tby.childNodes.length;i++)
    {
      if (tby.childNodes[i].id!=null)
      {
        tby.childNodes[i].id='blueLink11'
        tby.childNodes[i].childNodes[1].className='font11Bold'
      }
      imgleft=tby.childNodes[i].childNodes[0].childNodes[0]
      if (imgleft.src!=undefined)
      {
        ln=imgleft.src.length-8
        temp=imgleft.src.substring(ln,imgleft.src.length)
        if (temp=="down.gif")
        {
          imgleft.src=imgleft.src.substring(0,imgleft.src.length-8)+"right.gif";
        }
      }
      isThirdFourth=false
      for (k=0;k<tby.childNodes.length;k++)
      {
        if (tby.childNodes[k].childNodes[1].firstChild!=undefined && tby.childNodes[k].childNodes[1].firstChild.id=='f1' || tby.childNodes[k].childNodes[1].firstChild.id=='f2'|| tby.childNodes[k].childNodes[1].firstChild.id=='f3')
        {
          isThirdFourth=true
        } 
      }
      if (isThirdFourth)
      {
        if (tby.childNodes[i].childNodes[1].firstChild.id!='f1' && tby.childNodes[i].childNodes[1].firstChild.id !='f2' && tby.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4')
        {
          tby.childNodes[i].style.display='none'
        }
      }
    }
    BackLink=ths;
    ths.parentNode.parentNode.id="orangeLink11"
    ths.parentNode.className="font11Bold"
    imgsr=ths.parentNode.parentNode.childNodes[0].childNodes[0]
    ln=imgsr.src.length-9
    temp=imgsr.src.substring(ln,imgsr.src.length)
    if (temp=="right.gif")
    {
      imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
    }
  }
  if (document.getElementsByName(ths.name)[0].id=='f1')
  {
    secFlag=false
    tbdy=document.getElementsByName(ths.name)[0].parentNode.parentNode.parentNode
    for (i=0;i<tbdy.childNodes.length;i++)
    {
      tbdy.childNodes[i].id='blueLink11'
      if (i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4')
      {
        tbdy.childNodes[i].className='blueLink'
        tbdy.childNodes[i].childNodes[1].className='blue11'
      }
      if (tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f2')
      {
        secFlag=true
      }
      if (secFlag && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4')
      { 
        tbdy.childNodes[i].style.display='none'
      }
      if (tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f2' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f3' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='lvl4')
      {
        changeArrow(tbdy,i)
      }
      imgsr=document.getElementsByName(ths.name)[0].parentNode.parentNode.childNodes[0].childNodes[0]
      ln=imgsr.src.length-9
      temp=imgsr.src.substring(ln,imgsr.src.length)
      if (temp=="right.gif")
      {
        imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
      }
    }
    ths.parentNode.parentNode.id='orangeLink11'
    ths.parentNode.parentNode.className='orangeLink'
    ths.parentNode.className='orange11'
    document.getElementsByName(ths.name)[0].parentNode.parentNode.id='orangeLink11'
    BackLink=ths;
  }
  else if (document.getElementsByName(ths.name)[0].id=='f2')
  {
    tbdy=document.getElementsByName(ths.name)[0].parentNode.parentNode.parentNode
    secFlag=false
    for (i=0;i<tbdy.childNodes.length;i++)
    {
      tbdy.childNodes[i].id='blueLink11'
      if (i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4')
      {
        tbdy.childNodes[i].className='blueLink'
        tbdy.childNodes[i].childNodes[1].className='blue11'
      }
      if (tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f2')
      {
        secFlag=true 
        tbdy.childNodes[i].id='orangeLink11'
        imgsr=tbdy.childNodes[i].childNodes[0].childNodes[0]
        ln=imgsr.src.length-9
        temp=imgsr.src.substring(ln,imgsr.src.length)
        if (temp=="right.gif")
        {
          imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
        }
      }
      if (i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && !secFlag && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='lvl4' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f3')
      {
        tbdy.childNodes[i].style.display='none'
      }
      if (tbdy.childNodes[i].childNodes[1].childNodes[1]!=null && tbdy.childNodes[i].childNodes[1].childNodes[1].id=='lvl3')
      {
        tbdy.childNodes[i].style.display='none'
      }
      if (i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4')
      {
        tbdy.childNodes[i].className='bluelink'
      }
      if (tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f1' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f3' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='lvl4')
      {
        changeArrow(tbdy,i)
      } 
    }  
    ths.parentNode.parentNode.id='orangeLink11'
    ths.parentNode.className='orange11'
  } 
  else if (document.getElementsByName(ths.name)[0].id=='f3')
  {
    tbdy=document.getElementsByName(ths.name)[0].parentNode.parentNode.parentNode
    secFlag=false
    for (i=0;i<tbdy.childNodes.length;i++)
    {
      tbdy.childNodes[i].id='blueLink11'
      if (i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f1' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4')
      {
        tbdy.childNodes[i].className='blueLink'
        tbdy.childNodes[i].childNodes[1].className='blue11'
      }
      if (tbdy.childNodes[i].childNodes[1].firstChild.id=='f3')
      {
        secFlag=true 
        tbdy.childNodes[i].id='orangeLink11'
        imgsr=tbdy.childNodes[i].childNodes[0].firstChild 
        ln=imgsr.src.length-9
        temp=imgsr.src.substring(ln,imgsr.src.length)
        if (temp=="right.gif") 
        {
          imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
        }
      }
      if (i!=0 && tbdy.childNodes[0].childNodes[1].firstChild.id=='f1' && !secFlag && tbdy.childNodes[i].childNodes[1].firstChild.id!='f2')
      {
        tbdy.childNodes[i].style.display='none'
      } 
      if (i!=0 && tbdy.childNodes[i].childNodes[1].firstChild.id!='f1' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f2' )
      {
        tbdy.childNodes[i].className='bluelink'
      }
      if (tbdy.childNodes[i].childNodes[1].firstChild.id=='f1' || tbdy.childNodes[i].childNodes[1].firstChild.id=='f2' || tbdy.childNodes[i].childNodes[1].firstChild.id=='lvl4')
      {
        changeArrow(tbdy,i)
      }
    }  
    ths.parentNode.parentNode.id='orangeLink11'
    ths.parentNode.className='orange11'
  }
  var temp = new Array();
  paramLoc='../'+Loc
  document.getElementById("maincontent").contentWindow.location.replace(paramLoc);
}

function changeArrow(tbdy,i)
{
  imgsr=tbdy.childNodes[i].childNodes[0].firstChild
  ln=imgsr.src.length-8
  temp=imgsr.src.substring(ln,imgsr.src.length)
  if (temp=="down.gif")
  {
    imgsr.src=imgsr.src.substring(0,imgsr.src.length-8)+"right.gif";
  }
}

function SetSubLinks(name) 
{
  if (navigator.appName.indexOf("Internet Explorer") != -1)
  {
    showRow='inline'
  }
  else
  {
    showRow="table-row";
  }

  var elmnt=document.getElementsByName(name);
  for (var i=1;i<elmnt.length;i++)
  {
    if (elmnt[i].parentNode.parentNode.style.display=='inline' || elmnt[i].parentNode.parentNode.style.display=='table-row')
    {
      elmnt[i].parentNode.parentNode.style.display='none';
    }
    else 
    {
      elmnt[i].parentNode.parentNode.style.display=showRow;   
    }
  }

  if ((BackLink.name!=elmnt.name)&&(elmnt[1].parentNode.parentNode.style.display=='inline' || elmnt[1].parentNode.parentNode.style.display=='table-row'))
  {
    if (BackLink.parentNode!=null)
    {
      BackLink.parentNode.id="blueLink11";
      lngth=BackLink.parentNode.parentNode.parentNode.childNodes.length
      for(i=0; i<lngth; i++)
      {
        if (BackLink.name!=elmnt.name)
          BackLink.parentNode.parentNode.parentNode.childNodes[i].childNodes[1].className='font11bold'
      }
    }
  }
  if (elmnt[1].parentNode.parentNode.style.display=='inline' || elmnt[1].parentNode.parentNode.style.display=='table-row') 
  {
    if (elmnt[1].parentNode.parentNode.parentNode!=null)
    {
      tbdy=elmnt[1].parentNode.parentNode.parentNode
      isOranged=false
      orangeCount=0;
      for (k=0; k<tbdy.childNodes.length; k++)
      {
        if (tbdy.childNodes[k].id=='orangeLink11')
        {
          isOranged=true;
          orangeCount=orangeCount+1
        }
      }
      if (tbdy.childNodes[0].childNodes[1].childNodes[0].tagName=='A' && tbdy.childNodes[0].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[0].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[0].childNodes[1].childNodes[0].id!='f3' && !isOranged)
      {
        tbdy.childNodes[0].childNodes[1].childNodes[0].onclick();
      }
      else
      {
        elmnt[1].onclick(); 
      }
    }
    else
    { 
      elmnt[1].onclick(); 
    }
  }
  if (elmnt[1].parentNode.parentNode.style.display=='inline' || elmnt[1].parentNode.parentNode.style.display=='table-row') 
  {
    elmnt[0].parentNode.className=elmnt[0].parentNode.className+" orangeLink";
    elmnt[0].parentNode.childNodes[0].src='/base/images/arrow_orange_down.gif'
  }
  else 
  {
    elmnt[0].parentNode.id="blueLink";
    elmnt[0].parentNode.childNodes[0].src='/base/images/arrow_orange_right.gif'
  }
}

function FrstLvl(lvlNum,Pname,lvlid)
{
  var str="<tr id='blueLinkBold11'><td align='left' valign='top' class='spacer10Percent leftNavArrowCell'><img src='/base/images/arrow_orange_down.gif' height='6' width='6'/></td><td align='left' valign='top' class='spacer90Percent font11Bold'>";
  str+="<A name='"+lvlNum+"' onclick=SetSubLinks(this.name) href='javascript:void(0)' id='"+lvlid+"' class='pointer'><strong>"+ Pname + "</strong></A>";
  str+="</td></tr>";
  return str;
}

function SecLvl(lvlNum,Pname,Ppath,stu)
{
  var str="<tr style='display:"+stu+"' id='blueLinkBold11'><td align='left' valign='top' class='spacer10Percent leftNavArrowCellMultLine'><img src='/base/images/arrow_orange_right.gif' height='6' width='6' /></td><td align=left valign=middle class='spacer90Percent font11Bold' nowrap>";
  str+="<A name='"+lvlNum+"' onclick=SetLinkPage('"+Ppath+"',this) href='javascript:void(0)' id='"+lvlNum+"'>" + Pname + "</A></td></tr>";
  return str;
}

function FrthLvl(lvlNum,Pname,Ppath,stu)
{
  var str="<tr style='display:"+stu+"' id='blueLink11'><td align='left' valign='top'>&nbsp;</td><td align='left' valign='top' class='orange11' style='text-indent:-10px; padding-left:10px;'>&raquo; ";
  str+="<A name='"+lvlNum+"' onclick=SetLinkPage('"+Ppath+"',this) href='javascript:void(0)' id='"+lvlNum+"'>" + Pname + "</A></td></tr>";
  return str; 
}

function PaintSubTree(cap) 
{
  if (navigator.appName.indexOf("Internet Explorer") != -1)
    showRow='inline'
  else
    showRow="table-row";

  document.getElementById('Tree').style.display=showRow;
  var str="<table cellpadding=0 cellspacing=0 border=0 id=cnt>";
  switch (cap)
  {
    case "1": str="";
         document.getElementById('Tree').style.display='none';
         break;

    /* System */ 
    case "Management":
         str+=SecLvl("lvl4","System Information","base/system/management/sysInfo.html",showRow);
         str+=SecLvl("lvl4","IP Configuration","base/system/net_conn_cfg.html",showRow);
         str+=FrstLvl("lvl1","Time","f1"); 
         str+=FrthLvl("lvl1","SNTP Global Configuration","base/sntp/sntp_global_cfg.html","none"); 
         str+=FrthLvl("lvl1","SNTP Server Configuration","base/sntp/sntp_server_cfg.html","none");
         str+=SecLvl("lvl4","Denial of Service","base/system/dos_cfg.html",showRow);
         str+=FrstLvl("lvl2","DNS","f2"); 
         str+=FrthLvl("lvl2","DNS Configuration","base/dns/dns_cfg.html","none"); 
         str+=FrthLvl("lvl2","Host Configuration","base/dns/host_cfg.html","none");
         break;
    case "Services":
         str+=FrstLvl("lvl1","DHCP Filtering","f1");
         str+=FrthLvl("lvl1","Configuration","switching/dhcp_filtering/dhcp_mode_cfg.html","none");
         str+=FrthLvl("lvl1","Interface Configuration","switching/dhcp_filtering/dhcp_filtering_intf_mode.html","none");
         str+=SecLvl("lvl4","DHCP Relay","routing/relay/relay_cfg.html",showRow);
         break;
    case "Ports":
         str+=SecLvl("lvl1","Port Configuration","base/system/port/port_cfg.html",showRow); 
         str+=SecLvl("lvl1","Flow Control","base/system/flow_ctrl.html",showRow);
         break;
    case "LAG":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","LAG Configuration","switching/lag/trunk_info.html","none");
         str+=FrthLvl("lvl1","LAG Membership","switching/lag/trunk_cfg.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","LAG Configuration","switching/lag/trunk_info.html","none");
         str+=FrthLvl("lvl2","LAG Membership","switching/lag/trunk_cfg.html","none");
         str+=FrthLvl("lvl2","LACP Configuration","switching/lag/lacp_cfg.html","none");
         str+=FrthLvl("lvl2","LACP Port Configuration","switching/lag/lacp_port_cfg.html","none");
         break;
    case "SNMP":
         str+=FrstLvl("lvl1","SNMP V1/V2","f1");
         str+=FrthLvl("lvl1","Community Configuration","base/system/snmp/snmp_comm_cfg.html","none");
         str+=FrthLvl("lvl1","Trap Configuration","base/system/snmp/trap_recvr_cfg.html","none");
         str+=FrthLvl("lvl1","Trap Flags","base/system/trapmgr/trap_flags_cfg.html","none");
         str+=FrstLvl("lvl2","SNMP V3","f2");
         str+=FrthLvl("lvl2","User Configuration","base/system/snmp/snmp_v3_cfg.html","none");
         break;
    case "LLDP":
         str+=FrstLvl("lvl1","LLDP","f1");
         str+=FrthLvl("lvl1","Global Configuration","switching/lldp/lldp_cfg.html","none");
         str+=FrthLvl("lvl1","Interface Configuration","switching/lldp/lldp_intf_cfg.html","none");
         str+=FrthLvl("lvl1","Statistics","switching/lldp/lldp_stat.html","none");
         str+=FrthLvl("lvl1","Local Device Information","switching/lldp/lldp_localdevice.html","none");
         str+=FrthLvl("lvl1","Remote Device Information","switching/lldp/lldp_remotedevice.html","none");
         str+=FrstLvl("lvl2","LLDP-MED","f2");
         str+=FrthLvl("lvl2","Global Configuration","switching/lldp/lldp_med/lldp_med_cfg.html","none");
         str+=FrthLvl("lvl2","Interface Configuration","switching/lldp/lldp_med/lldp_med_intf_cfg.html","none");
         str+=FrthLvl("lvl2","Local Device Information","switching/lldp/lldp_med/lldp_med_local_device_info.html","none");
         str+=FrthLvl("lvl2","Remote Device Information","switching/lldp/lldp_med/lldp_med_remote_device_info.html","none");
         break;  

    /* Switching */ 
    case "VLAN":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","VLAN Configuration","switching/dot1q/vlan_cfg.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","VLAN Configuration","switching/dot1q/vlan_cfg.html","none");
         str+=FrthLvl("lvl2","VLAN Membership","switching/dot1q/vlan_port_cfg.html","none");
         str+=FrthLvl("lvl2","Port PVID Configuration","switching/dot1q/qnp_port_cfg_rw.html","none");
         break;
    case "VoiceVLAN":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","Properties","qos/voip/voip_vlan_cfg.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","Properties","qos/voip/voip_vlan_cfg.html","none");
         str+=FrthLvl("lvl2","Port Setting","qos/voip/voip_vlan_port_cfg.html","none");
         str+=FrthLvl("lvl2","OUI","qos/voip/voip_vlan_oui.html","none");
         break;
    case "STP":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","STP Configuration","switching/spanning_tree/mstp_switch.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","STP Configuration","switching/spanning_tree/mstp_switch.html","none");
         str+=FrthLvl("lvl2","CST Configuration","switching/spanning_tree/mstp_cist_cfg.html","none");
         str+=FrthLvl("lvl2","CST Port Configuration","switching/spanning_tree/cist_port_cfg.html","none");
         str+=FrthLvl("lvl2","CST Port Status","switching/spanning_tree/cst_port_status.html","none");
         str+=FrthLvl("lvl2","RSTP","switching/spanning_tree/rstp_cfg.html","none");
         str+=FrthLvl("lvl2","MST Configuration","switching/spanning_tree/mst_status.html","none");
         str+=FrthLvl("lvl2","MST Port Configuration","switching/spanning_tree/msti_port_status.html","none");
         str+=FrthLvl("lvl2","STP Statistics","switching/spanning_tree/mstp_stats.html","none");
         break;
    case "Multicast":
         str+=FrstLvl("lvl1","IGMP Snooping","f1");
         str+=FrthLvl("lvl1","IGMP Snooping Configuration","switching/igmp_snooping/igmp_snuping_cfg.html","none");
         str+=FrthLvl("lvl1","IGMP Snooping Interface Configuration","switching/igmp_snooping/igmp_intf_cfg.html","none");
         str+=FrthLvl("lvl1","IGMP Snooping Table","switching/mfdb/mfdb_igmp.html","none");
         str+=FrthLvl("lvl1","MFDB Table","switching/mfdb/mfdb_table.html","none");
         str+=FrthLvl("lvl1","GMRP Table","switching/mfdb/mfdb_gmrp.html","none");
         str+=FrthLvl("lvl1","MFDB Statistics","switching/mfdb/mfdb_stats.html","none");
         str+=FrthLvl("lvl1","IGMP Snooping VLAN Configuration","switching/igmp_snooping/igmp_vlan_cfg.html","none");
         str+=FrthLvl("lvl1","Multicast Router Configuration","switching/igmp_snooping/mul_router_cfg.html","none");
         str+=FrthLvl("lvl1","Multicast Router VLAN Configuration","switching/igmp_snooping/mul_vlan_cfg.html","none");
         str+=FrstLvl("lvl2","IGMP Snooping Querier","f2");
         str+=FrthLvl("lvl2","Querier Configuration","switching/igmp_snooping/igmp_snuping_querier.html","none");
         str+=FrthLvl("lvl2","Querier VLAN Configuration","switching/igmp_snooping/igmp_querier_vlan_cfg.html","none");
         str+=FrthLvl("lvl2","Querier VLAN Status","switching/igmp_snooping/igmp_querier_vlan_status.html","none");
         break;
    case "AddressTable":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","Address Table","base/system/fwd_db.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","Dynamic Addresses","base/system/aging.html","none");
         str+=FrthLvl("lvl2","Address Table","base/system/fwd_db.html","none");
         str+=FrthLvl("lvl2","Static MAC Address","switching/port_mac_locking/port_mac_locking_static.html","none");
         break;

    /* Routing */
    case "IP":
         str+=SecLvl("lvl1","IP Configuration","routing/ip/ip_cfg.html",showRow);
         str+=SecLvl("lvl1","Routing Wizard","routing/vlan_routing/vlan_routing_wizard.html",showRow);
         str+=SecLvl("lvl1","Statistics","routing/ip/ip_stats_info.html",showRow);
         break;
    case "VLAN2":
         str+=SecLvl("lvl1","VLAN Routing","routing/vlan_routing/vlan_routing_cfg.html",showRow);
         break;
    case "RouterDiscovery":
         str+=SecLvl("lvl1","Router Discovery Configuration","routing/router_discovery/rtr_discovery_cfg.html",showRow);
         break;
    case "RoutingTable":
         str+=SecLvl("lvl1","Route Configuration","routing/routing/route_configuration.html",showRow);
         break;
    case "ARP":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","ARP Cache","base/system/arp_cache.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","Global ARP Configuration","routing/arp/arp_table_cfg.html","none");
         str+=FrthLvl("lvl2","ARP Entry Configuration","routing/arp/arp_create1.html","none");
         str+=FrthLvl("lvl2","ARP Entry Management","routing/arp/arp_entry_mgmt.html","none");
         break;

    /* QoS */ 
    case "Qos1":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","CoS Configuration","qos/cos/cos_config.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","CoS Configuration","qos/cos/cos_config.html","none");
         str+=FrthLvl("lvl2","CoS Interface Configuartion","qos/cos/cos_intf_cfg.html","none");
         str+=FrthLvl("lvl2","Interface Queue Configuration","qos/cos/cos_intf_queue_cfg_rw.html",showRow);
         str+=FrthLvl("lvl2","802.1p to Queue Mapping", "qos/cos/dot1p_map.html","none");
         str+=FrthLvl("lvl2","DSCP to Queue Mapping", "qos/cos/dscp_map.html","none");
         break;
    case "Diffserv1":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","DiffServ Configuration","qos/diffserv/diffserv_cfg.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","DiffServ Configuration","qos/diffserv/diffserv_cfg.html","none");
         str+=FrthLvl("lvl2","Class Configuration","qos/diffserv/class_configuration.html","none");
         str+=FrthLvl("lvl2","Policy Configuration","qos/diffserv/policy_cfg.html","none");
         str+=FrthLvl("lvl2","Service Configuration","qos/diffserv/service_cfg.html","none");
         str+=FrthLvl("lvl2","Service Statistics","qos/diffserv/service_summ.html","none");
         break;

    /* Security */ 
    case "Mgt.Security":
         str+=FrstLvl("lvl1","User Configuration","f1");
         str+=FrthLvl("lvl1","Change Password","base/system/change_passwd.html","none");
         str+=FrstLvl("lvl2","RADIUS","f2");           
         str+=FrthLvl("lvl2","Global Configuration","security/radius/radius_config.html",showRow);
         str+=FrthLvl("lvl2","Server Configuration","security/radius/radius_server.html","none");
         str+=FrthLvl("lvl2","Accounting Server Configuration","security/radius/radius_acct_server.html","none");
         str+=FrstLvl("lvl3","TACACS+","f3");
         str+=FrthLvl("lvl3","TACACS+ Configuration","security/tacacs/tacacs_cfg.html",showRow);
         str+=FrthLvl("lvl3","Server Configuration","security/tacacs/tacacs_server_cfg.html","none");
         str+=SecLvl("lvl4","Authentication List","base/system/user_mgr/apl_cfg.html",showRow);
         break;
    case "Access":
         str+=FrstLvl("lvl1","HTTP","f1");
         str+=FrthLvl("lvl1","HTTP Configuration","base/system/http_cfg.html","none");
         str+=FrstLvl("lvl2","HTTPS","f2");
         str+=FrthLvl("lvl2","HTTPS Configuration","base/system/https_cfg.html","none");
         str+=FrthLvl("lvl2","Certificate Download","security/ssl/certificate_download.html","none");
         str+=FrstLvl("lvl3","Access Control","f3");
         str+=FrthLvl("lvl3","Access Profile Configuration","base/system/user_mgr/profile_config.html","none");
         str+=FrthLvl("lvl3","Access Rule Configuration","base/system/user_mgr/rule_config.html","none");
         break;
    case "portAuthentication":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","802.1X Configuration","security/dot1x/dot1x_config.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","802.1X Configuration","security/dot1x/dot1x_config.html","none");
         str+=FrthLvl("lvl2","Port Authentication","security/dot1x/dot1x_port_cfg.html","none");
         str+=FrthLvl("lvl2","Port Summary","security/dot1x/dot1x_summ.html","none"); 
         break;
    case "Traffic_Control":
         str+=FrstLvl("lvl1","MAC Filter","f1");
         str+=FrthLvl("lvl1","MAC Filter Configuration","switching/filters/mac_filter_cfg.html","none");
         str+=FrthLvl("lvl1","MAC Filter Summary","switching/filters/mac_filter_summ.html","none");
         str+=SecLvl("lvl4","Storm Control","base/system/switch_cfg.html",showRow);
         str+=FrstLvl("lvl2","Port Security","f2");
         str+=FrthLvl("lvl2","Port Security Configuration","switching/port_mac_locking/port_mac_locking_cfg.html","none");
         str+=FrthLvl("lvl2","Interface Configuration","switching/port_mac_locking/port_mac_locking_setup.html","none");  
         str+=FrthLvl("lvl2","Security MAC Address","switching/port_mac_locking/port_mac_locking_dynamic.html","none");
         str+=SecLvl("lvl4","Protected Ports","switching/protected_ports/protected_ports.html",showRow);
         break;
    case "ACL":
         str+=FrstLvl("lvl1","Basic","f1");
         str+=FrthLvl("lvl1","MAC ACL","qos/acl/mac_acl/mac_acl_cfg.html","none");
         str+=FrthLvl("lvl1","MAC Rules","qos/acl/mac_acl/mac_acl_rule_cfg_rw.html","none");
         str+=FrthLvl("lvl1","MAC Binding Configuration","qos/acl/mac_ip_acl_cfg.html","none");
         str+=FrthLvl("lvl1","Binding Table","qos/acl/mac_acl/mac_binding_table.html","none");
         str+=FrstLvl("lvl2","Advanced","f2");
         str+=FrthLvl("lvl2","IP ACL","qos/acl/acl_config.html","none");
         str+=FrthLvl("lvl2","IP Rules","qos/acl/acl_rule_cfg.html","none");
         str+=FrthLvl("lvl2","IP Extended Rules","qos/acl/acl_ext_rule_cfg.html","none");
         str+=FrthLvl("lvl2","IP Binding Configuration","qos/acl/ip_mac_acl_cfg.html","none");
         str+=FrthLvl("lvl2","Binding Table","qos/acl/ip_binding_table.html","none");
         str+=FrthLvl("lvl2","VLAN ACL Configuration","qos/acl/vlan_acl_cfg.html","none");
         str+=FrthLvl("lvl2","ACL Interface/VLAN Summary","qos/acl/acl_intf_vlan_summary.html","none");
         break;

    /* Monitoring */ 
    case "Ports3":
         str+=SecLvl("lvl1","Switch Statistics","base/system/stats/stats_switch.html",showRow);
         str+=SecLvl("lvl1","Port Statistics","base/system/stats/statsport_summ.html", showRow);
         str+=SecLvl("lvl1","Port Detailed Statistics","base/system/stats/stats_port.html", showRow);
         str+=SecLvl("lvl1","EAP Statistics","security/dot1x/eapStatistics.html", showRow);    
         break;
    case "Logs":
         str+=SecLvl("lvl1","Memory Log","base/system/log/inmemory_cfg.html",showRow);
         str+=SecLvl("lvl1","FLASH Log","base/system/log/persistent_cfg.html",showRow);
         str+=SecLvl("lvl1","Server Log","base/system/log/syslog_cfg.html",showRow);
         str+=SecLvl("lvl1","Trap Logs","base/system/trapmgr/trap_log.html",showRow);
         str+=SecLvl("lvl1","Event Logs","base/system/event_log.html",showRow);
         break; 
    case "Mirroring":
         str+=SecLvl("lvl1","Port Mirroring","base/system/port/multiple_port_mirror.html",showRow);
         break;

    /* Maintenance */ 
    case "Save_Config":
         str+=SecLvl("lvl1","Save Configuration","base/system/save_changes.html",showRow);
         break;
    case "Reset":
         str+=SecLvl("lvl1","Device Reboot","base/system/sys_reset.html",showRow);
         str+=SecLvl("lvl1","Factory Default","base/system/reset_cfg.html",showRow);
         break;
    case "Upload":
         str+=SecLvl("lvl1","File Upload","base/system/file_upload.html",showRow);
         break;
    case "Download":
         str+=SecLvl("lvl1","TFTP File Download","base/system/file_download.html",showRow);
         str+=SecLvl("lvl1","HTTP File Download","base/system/http_file_download.html",showRow);
         break;
    case "Filemanagement":
         str+=FrstLvl("lvl1","Dual Image","f1"); 
         str+=FrthLvl("lvl1","Dual Image Configuration","base/system/dual_image_cfg.html","none");
         str+=FrthLvl("lvl1","Dual Image Status","base/system/image_status.html","none");
         break;
    case "Troubleshooting":
         str+=SecLvl("lvl1","Ping","base/system/ping.html",showRow);
         str+=SecLvl("lvl1","Traceroute","base/system/traceroute.html",showRow);
         break;
    case "OnlineHelp":
         str+=SecLvl("lvl1","Support","base/support.html",showRow);
         str+=SecLvl("lvl1","User Guide","base/userGuide.html",showRow);
         break;
  }
  if (str!="")  
    str+="</table>";
  document.getElementById('TreeFrame').innerHTML=str;
  BackLink="";
  if (document.getElementById('cnt')!=null)
    cntnt=document.getElementById('cnt').rows.length;
  if ((str!="") && (cntnt!=0)) 
  {
    document.getElementsByName('lvl1')[0].onclick(); 
  }
}

function drawHeadsTab(first)
{
  var headTabs;
  headTabs=new Array("System","Switching","Routing","QoS","Security","Monitoring","Maintenance","Help");
    
  document.write("<TD align='center' width=20px>&nbsp;</td>");
  for (var i=0;i<headTabs.length;i++)
  {
    if (!((noRoutingMode) && (headTabs[i] == "Routing"))) 
    {
      document.write("<TD class='navTopCell'><A name='lnk' onclick=setTabset(this); onmouseover=OverTab(this,1); onmouseout=OutTab(this,1); href='javascript:void(0)'><img src='/base/images/tab_" + headTabs[i] + "_off.gif' border=0></A></TD>" );
    }
  }
  if (first) 
  {
    LastTab=document.getElementById("tabs").childNodes[tab].style;
  }
}

function drawHeadsTabs(second)
{
  var headTabss=new Array("Login","Help");
  for (var i=0;i<headTabss.length;i++)
  { 
    if (i==0) 
    { 
      pgclk="#"; pgurl="/base/main_login.html"; 
    }
    else 
    { 
      pgclk="setTabset(this)"; pgurl="javascript:void(0)";
    }
    document.write("<TD class='navTopCell'><A name='lnk' onclick=\""+pgclk+"\"; onmouseover=OverTab(this,1); onmouseout=OutTab(this,1); href=\""+pgurl+"\"><img src='/base/images/tab_" + headTabss[i] + "_off.gif' border=0></A></TD>" ); 
  }
  if (second) 
  { 
    LastTab=document.getElementById("tabss").childNodes[tab].style;
  }
}

function Loading(caption) 
{ 
  var currName="";var currLink="";var prefix="";var SubTree="";
  switch (caption)
  {
    case "Login" :prefix="/base/";
         currLink+="main_login.html";
         break;
    case "System" : prefix="/base/system/";
         currName+=space()+"Management"+space()+"~";currLink+="~";SubTree+="Management~";
         currName+=space()+"Deviceview"+space()+"~";currLink+="deviceview/deviceview.html~";SubTree+="1~";
         currName+=space()+"SNMP"+space()+"~";currLink+="~";SubTree+="SNMP~";
         currName+=space()+"LLDP"+space()+"~";currLink+="~";SubTree+="LLDP~";
         currName+=space()+"Services"+space()+"";currLink+="~";SubTree+="Services";
         break;
    case "Switching" :prefix="/base/Switching/";
         currName+=space()+"Ports"+space()+"~";currLink+="~";SubTree+="Ports~";
         currName+=space()+"LAG"+space()+"~";currLink+="~";SubTree+="LAG~";
         currName+=space()+"VLAN"+space()+"~";currLink+=" ~ ";SubTree+="VLAN~";
         currName+=space()+"VoiceVLAN"+space()+"~";currLink+=" ~ ";SubTree+="VoiceVLAN~";
         currName+=space()+"STP"+space()+"~";currLink+=" ~ ";SubTree+="STP~";
         currName+=space()+"multicast"+space()+"~";currLink+="~";SubTree+="Multicast~";
         currName+=space()+"AddressTable"+space()+"";currLink+="~";SubTree+="AddressTable";
         break;
    case "Routing" :prefix="/base/Routing/";
         currName+=space()+"IP"+space()+"~";currLink+=" ~ ";SubTree+="IP~";
         currName+=space()+"VLAN"+space()+"~";currLink+="~";SubTree+="VLAN2~";
         currName+=space()+"RouterDiscovery"+space()+"~";currLink+="~";SubTree+="RouterDiscovery~";
         currName+=space()+"RoutingTable"+space()+"~";currLink+=" ~ ";SubTree+="RoutingTable~";
         currName+=space()+"ARP"+space()+"";currLink+=" ";SubTree+="ARP";   
         break;
    case "QoS" :prefix="/base/qos/";
         currName+=space()+"CoS"+space()+"~";currLink+="~";SubTree+="Qos1~";
         currName+=space()+"Diffserv"+space()+"";currLink+="";SubTree+="Diffserv1";
         break;  
    case "Security" :prefix="/base/security/";
         currName+=space()+"managementsecurity"+space()+"~";currLink+= " ~ ";SubTree+="Mgt.Security~";
         currName+=space()+"Access"+space()+"~";currLink+= "~";SubTree+="Access~";
         currName+=space()+"PortAuthentication"+space()+"~";currLink+= "~";SubTree+="portAuthentication~";
         currName+=space()+"trafficcontrol"+space()+"~";currLink+="~";SubTree+="Traffic_Control~";
         currName+=space()+"ACL"+space()+"";currLink+=" ";SubTree+="ACL";
         break;
    case "Monitoring" :prefix="/base/monitoring/";
         currName+=space()+"Ports"+space()+"~";currLink+= " ~";SubTree+="Ports3~";
         currName+=space()+"Logs"+space()+"~";currLink+= " ~";SubTree+="Logs~";
         currName+=space()+"Mirroring"+space()+"";currLink+= "";SubTree+="Mirroring";
         break;
    case "Maintenance" :prefix="/base/maintenance/";
         currName+=space()+"saveconfig"+space()+"~";currLink+=" ~ ";SubTree+="Save_Config~";
         currName+=space()+"Reset"+space()+"~"; currLink+=" ~";SubTree+="Reset~";
         currName+=space()+"Upload"+space()+"~"; currLink+=" ~ ";SubTree+="Upload~";
         currName+=space()+"Download"+space()+"~"; currLink+=" ~ ";SubTree+="Download~";
         currName+=space()+"Filemanagement"+space()+"~"; currLink+=" ~ ";SubTree+="Filemanagement~";
         currName+=space()+"Troubleshooting"+space()+"";currLink+="";SubTree+="Troubleshooting";
         break;
    case "Help" :prefix="/base/";
         currName+=space()+"onlinehelp"+space()+"";currLink+="";SubTree+="OnlineHelp";
         break;
  } 
  addTabs(currName.split("~"),currLink.split("~"),prefix,SubTree.split("~"),9)
}

function gtElmid(id)
{
  return document.getElementById(id)
}

function showHelpwindow(name)
{
  var strHelp = "erARP CACHEror";
  switch (name) 
  {
    /*************************************************************************************/
    /************************************ System *****************************************/
    /*************************************************************************************/
    case "consolePort":
         strHelp = "/base/system/help_switch_cfg.html#serport";
         break;
    case "http_cfg":
         strHelp = "/base/system/help_switch_cfg.html#httpserver";
         break;
    case "authenticationList":
         strHelp = "/base/system/user_mgr/help_usermgr.html#logincfg";
         break;
    case "loginSession":
         strHelp = "/base/system/user_mgr/help_usermgr.html#loginsessions";
         break;
    case "userManagement":
         strHelp = "/base/system/help_users.html#useracct";
         break;
    case "changePassword":
         strHelp = "/base/system/help_users.html#respass";
         break;
    case "stormControl":
         strHelp = "/base/system/help_switch_cfg.html#swcfg";
         break;
    case "macFilterConfig":
         strHelp = "/base/system/help_macfilter.html#macFilter";
         break;
    case "macFilterSumm":
         strHelp = "/base/system/help_macfilter.html#macFilterSummary";
         break;
    case "fileDownload":
         strHelp = "/base/system/help_transfer.html#download";
         break;
    case "httpFileDownload":
         strHelp = "/base/system/help_http_file_download.html#filedownload";
         break;
    case "deviceReboot":
         strHelp = "/base/system/help_switch_cfg.html#sysrest";
         break;
    case "factoryDefault":
         strHelp = "/base/system/help_switch_cfg.html#rescfg";
         break;
    case "passReset":
         strHelp = "/base/system/help_switch_cfg.html#passReset";
         break;
    case "configReset":
         strHelp =  "/base/system/help_switch_cfg.html#configReset";
         break;
    case "saveConfiguration":
         strHelp = "/base/system/help_switch_cfg.html#savechange";
         break;
    case "pinDetails":
         strHelp = "/base/system/help_switch_cfg.html#ping";
         break;
    case "traceroute":
         strHelp = "/base/system/help_switch_cfg.html#traceroute";
         break;
    case "fileUpload":
         strHelp = "/base/system/help_transfer.html#upload";
         break;
    case "inmemory_cfg":
         strHelp = "/base/system/log/help_syslog_cfg.html#inmem";
         break;
    case "inmemory_log":
         strHelp = "/base/system/log/help_syslog_cfg.html#messages";
         break;
    case "cmd_logger_cfg":
         strHelp = "/base/system/log/help_syslog_cfg.html#cmd_logger";
         break;
    case "console_log":
         strHelp = "/base/system/log/help_syslog_cfg.html#console";
         break;
    case "syslog_cfg":
         strHelp = "/base/system/log/help_syslog_cfg.html#syslog_cfg";
         break;
    case "syslog_host_cfg":
         strHelp = "/base/system/log/help_syslog_cfg.html#hosts";
         break;
    case "trapLogs":
    case "trap_log":
         strHelp = "/base/system/trapmgr/help_traps.html#traplog";
         break;
    case "eventLogs":
         strHelp = "/base/system/help_sysinfo.html#eventlog";
         break;
    case "portMirroring":
         strHelp = "/base/system/port/help_portcfg.html#portmon";
         break;
    case "portStats":
         strHelp = "/base/system/stats/help_stats.html#portsumstat";
         break;
    case "detailedStatistics":
         strHelp = "/base/system/stats/help_stats.html#portdetstat";
         break;
    case "arpCache":
         strHelp = "/base/system/help_sysinfo.html#arpcache";
         break;
    case "basicAddressTable":
         strHelp = "/base/system/help_sysinfo.html#macaddr";
         break;
    case "dynamicAddress":
         strHelp = "/base/system/help_sysinfo.html#macaddrcfg";
         break;
    case "dnsConfiguration":
         strHelp = "/base/dns/help_dns.html#dns_status_cfg";
         break;
    case "dnsServerConfig":
         strHelp = "/base/dns/help_dns.html#dns_server_cfg";
         break;
    case "dnsHostConfiguration":
         strHelp = "/base/dns/help_dns.html#hostname_mapping_cfg";
         break;
    case "dnsDynamicHostConfiguration":
         strHelp = "/base/dns/help_dns.html#dynamichost_mapping";
         break;
    case "ipConfiguration":
         strHelp = "/base/system/help_switch_cfg.html#netcon";
         break;
    case "sntpGlobalConfiguration":
         strHelp = "/base/sntp/help_sntp.html#sntp_global_cfg";
         break;
    case "SNTPGlobalStatus":
         strHelp = "/base/sntp/help_sntp.html#sntp_global_status";
         break;
    case "sntpServerConfiguration":
         strHelp = "/base/sntp/help_sntp.html#sntp_server_cfg";
         break;
    case "SNTPServerStatus":
         strHelp = "/base/sntp/help_sntp.html#sntp_server_status";
         break;
    case "systemInformation":
         strHelp = "../system/help_sysinfo.html#sysdesc";
         break;
    case "systemStatistics":
         strHelp = "/base/system/stats/help_stats.html#swstat";
         break;
    case "deviceStatus":
         strHelp = "/base/system/help_sysinfo.html#devicestatus";
         break;
    case "portConfig":
         strHelp = "/base/system/port/help_portcfg.html#npcfg";
         break;
    case "portDescription":
         strHelp = "/base/system/port/help_portcfg.html#portdes";
         break;
    case "communityConfiguration":
         strHelp = "/base/system/snmp/help_snmp.html#snmpcomm";
         break;
    case "trapConfiguration":
         strHelp = "/base/system/snmp/help_snmp.html#traprcvr";
         break;
    case "trapFlags":
         strHelp = "/base/system/trapmgr/help_traps.html#trapflag";
         break;
    case "userConfiguration":
         strHelp = "/base/system/snmp/help_snmp.html#snmpv3";
         break;
    case "user":
         strHelp = "/base/system/snmp/help_snmp.html#snmpv3";
         break;
    case "snmpUsernames":
         strHelp = "/base/system/snmp/help_snmp.html#snmpv3";
         break;
    case "userlogin":
         strHelp = "/base/help/help_login.html#userlogin";
         break;
    case "user":
         strHelp = "/base/system/help_users.html#useracct";
         break;
    case "persistlogCfg":
          strHelp = "/base/system/log/help_syslog_cfg.html#pers";
          break;   
    case "persist_log":
         strHelp = "/base/system/log/help_syslog_cfg.html#pers_logs";
         break;
    case "dualImageCfg":
         strHelp = "/base/system/help_transfer.html#imagecfg";
         break;
    case "dualImageStatus":
         strHelp = "/base/system/help_transfer.html#imagestatus";
         break;
    case "dosConfiguration":
         strHelp = "/base/system/help_dos_cfg.html#doscfg";
         break;
    case "accessprofileConfig":
         strHelp = "/base/system/user_mgr/help_mgmt_security.html#profile";
         break;
    case "accessprofileSumm":
         strHelp = "/base/system/user_mgr/help_mgmt_security.html#summary";
         break;
    case "accessruleConfig":
         strHelp = "/base/system/user_mgr/help_mgmt_security.html#rule";
         break;
    case "flowControl":
         strHelp = "/base/system/help_switch_cfg.html#flowCtrl";
         break;

    /*************************************************************************************/
    /************************************ Switching **************************************/
    /*************************************************************************************/
    case "macVlanConfig":
         strHelp = "/switching/mac_vlan/help_mac_vlan.html#macvlancfg";
         break;
    case "securityConfiguration":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmaclockingconfiguration";
         break;
    case "securityViolations":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmacviolationstatus";
         break;
    case "intIfCfg":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmaclockingintifsetup";
         break;
    case "staticMacAddress":
    case "portList":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmaclockingstatic";
         break;
    case "securityConfigurationDynamic":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmaclockingdynamic";
         break;
    case "macInterfaceConfiguration":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmaclockingintifsetup";
         break;
    case "staticAddress":
         strHelp = "/switching/port_mac_locking/help_portmaclocking.html#portmaclockingstatic";
         break;
    case "gmrpTable":
         strHelp = "/switching/mfdb/help_mfdb.html#gmrp_table";
         break;
    case "igmpSnoopingConfiguration":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping.html#switch";
         break;
    case "igmpSnoopingInterfaceConfiguration":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping.html#igmp_interface"; 
         break;
    case "igmpSnoopingTable":
         strHelp = "/switching/mfdb/help_mfdb.html#igmp_table";
         break;
    case "igmpVlanCfg":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping.html#igmp_vlan_cfg";
         break;
    case "mfdbStatistics":
         strHelp = "/switching/mfdb/help_mfdb.html#mfdb_stats";
         break;
    case "mfdbTable":
         strHelp = "/switching/mfdb/help_mfdb.html#mfdb_table";
         break;
    case "multicastRouterConfiguration":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping.html#mrcfg";
         break;
    case "multRtrVlanCfg":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping.html#mul_vlan_cfg";
         break;
    case "cstConfiguration":
         strHelp = "/switching/spanning_tree/help_mstp.html#cstcfg";
         break;
    case "cstPort":
         strHelp = "/switching/spanning_tree/help_mstp.html#cstportcfg";
         break;
    case "cstStatus":
         strHelp = "/switching/spanning_tree/help_mstp.html#cstportstatus";
         break;
    case "rapidSTP":
         strHelp = "/switching/spanning_tree/help_mstp.html#rapidSTPstatus";
         break;
    case "mstCfgStatus":
         strHelp = "/switching/spanning_tree/help_mstp.html#msticfg";
         break;
    case "mstPortConfiguration":
         strHelp = "/switching/spanning_tree/help_mstp.html#mststatus";
         break;
    case "stpConfiguration":
         strHelp = "/switching/spanning_tree/help_mstp.html#mstpswitch";
         break;
    case "stpStatus":
         strHelp = "/switching/spanning_tree/help_mstp.html#mstpswitch";
         break;
    case "stpStatistics":
         strHelp = "/switching/spanning_tree/help_mstp.html#stats";
         break;
    case "garpPortConfiguration":
         strHelp = "/switching/garp/help_garp.html#portgarpcfg";
         break;
    case "garpSwitchConfiguration":
         strHelp = "/switching/garp/help_garp.html#garpcfg";
         break;
    case "vlanMembership":
         strHelp = "/switching/dot1q/help_vlan.html#vlanMembership";
         break;
    case "portPVIDConfiguration":
         strHelp = "/switching/dot1q/help_vlan.html#pvidconfig";
         break;
    case "vlanStatus":
         strHelp = "/switching/dot1q/help_vlan.html#vlanstat";
         break;
    case "basicVlanConfiguration":
         strHelp = "/switching/dot1q/help_vlan.html#vlanconfig";
         break;
    case "resetVlan":
         strHelp = "/switching/dot1q/help_vlan.html#restvlan";
         break;
    case "lagMembership":
         strHelp = "/switching/lag/help_lag.html#lagMembership";
         break;
    case "lacpCfg":
         strHelp = "/switching/lag/help_lag.html#lacp_cfg";
         break;    
    case "lacpPortCfg":
         strHelp = "/switching/lag/help_lag.html#lacp_port_cfg";
         break;
    case "lagConfig":
         strHelp = "/switching/lag/help_lag.html#lagConfiguration";
         break;
    case "lldpConfiguration":
         strHelp = "/switching/lldp/help_lldp.html#lldpcfg";
         break;
    case "lldpIntfCfg":
         strHelp = "/switching/lldp/help_lldp.html#lldpintfcfg";
         break;
    case "lldpStats":
         strHelp = "/switching/lldp/help_lldp.html#lldpstat";
         break;
    case "LclDevInfo":
         strHelp = "/switching/lldp/help_lldp.html#lldplocaldevice";
         break;
    case "RemDevInfo":
         strHelp = "/switching/lldp/help_lldp.html#lldpremotedevice";
         break;
    case "lldpMedGblCfg":
         strHelp = "/switching/lldp/lldp_med/help_lldp_med.html#lldp_med_cfg";
         break;
    case "lldpMedIntfCfg":
         strHelp = "/switching/lldp/lldp_med/help_lldp_med.html#lldp_med_intf_cfg";
         break;
    case "lldpMedLclDevInfo":
         strHelp = "/switching/lldp/lldp_med/help_lldp_med.html#lldp_med_local_device_info";
         break;
    case "lldpMedRemDevInfo":
         strHelp = "/switching/lldp/lldp_med/help_lldp_med.html#lldp_med_remote_device_info";
         break;
    case "vlanStatus":
         strHelp = "/switching/dot1q/help_vlan.html#vlanstat";
         break;
    case "ProPortsCfg":
         strHelp = "/switching/protected_ports/help_protected_ports.html#prot_port_cfg";
         break;
    case "ProPortsSumm":
         strHelp = "/switching/protected_ports/help_protected_ports.html#prot_port_summ";
         break;
    case "DHCPFilterCfg":
         strHelp = "/switching/dhcp_filtering/help_dhcp_filtering.html#dhcpfiltercfg";
         break;
    case "dhcpFilterIntfCfg":
         strHelp = "/switching/dhcp_filtering/help_dhcp_filtering.html#dhcpfilterintfcfg";
         break;
    case "igmpSnupQuerierCfg":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping_querier.html#querier_cfg";
         break;
    case "igmpSnoopQuerierVlanCfg":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping_querier.html#querier_vlan_cfg";
         break;
    case "igmpSnoopQuerierVlanStats":
         strHelp = "/switching/igmp_snooping/help_igmp_snooping_querier.html#querier_vlan_status";
         break;
    
    /*************************************************************************************/
    /************************************ Routing ****************************************/
    /*************************************************************************************/
    case "tableconfiguration":
         strHelp = "/routing/ip/help_layer3ip.html#arp_table";
         break;
    case "arpCfg":
         strHelp = "/routing/ip/help_layer3ip.html#arp_cache";
         break;
    case "arpEntryMgmt":
         strHelp = "/routing/ip/help_layer3ip.html#arp_entry_mgmt";
         break;
    case "arpConfiguration":
         strHelp = "/routing/ip/help_layer3ip.html#arp_create";
         break;
    case "ipInterfaceConfiguration":
         strHelp = "/routing/ip/help_layer3ip.html#intfipcfg";
         break;
    case "secIPAddress":
         strHelp = "/routing/ip/help_layer3ip.html#sec_ip_cfg";
         break;
    case "routingInterface":
         strHelp = "/routing/ip/help_layer3ip.html#sec_ip_cfg";
         break;
    case "routingIpConfiguration":
         strHelp = "/routing/ip/help_layer3ip.html#ipcfg";
         break;
    case "statistics":
         strHelp = "/routing/ip/help_layer3ip.html#ipstats";
         break;
    case "vlanRoutingWizard":
         strHelp = "/routing/vlan_routing/help_vlan_routing.html#vlanrtgwizard";
         break;
    case "vlanRoutingConfiguration":
         strHelp = "/routing/vlan_routing/help_vlan_routing.html#vrcfg";
         break;
    case "neighborConfiguration":
         strHelp = "/routing/routing/help_layer3_nbr.html#nbr_dt";
         break;
    case "neighborTable":
         strHelp = "/routing/routing/help_layer3_nbr.html#nbr_summ";
         break;
    case "routerDiscoveryConfiguration":
         strHelp = "/routing/router_discovery/help_rtr_discovery.html#rtr_discovery";
         break;
    case "advRouteConfiguration":
         strHelp = "/routing/routing/help_router.html#rt_entry";
         break;
    case "routeConfiguration":
         strHelp = "/routing/routing/help_router.html#rt_configured";
         break;
    case "routeLearned":
         strHelp = "/routing/routing/help_router.html#rt_learned";
         break;
    case "routePreferences":
         strHelp = "/routing/routing/help_router.html#rt_prefs";
         break;
    case "dhcpRelay":
         strHelp = "/routing/relay/relay_help.html#cfg";
         break;
    case "dhcpRelayStatus":
         strHelp = "/routing/relay/relay_help.html#status";
         break;
    case "vlanRoutingConfiguration":
         strHelp = "/routing/vlan_routing/help_vlan_routing.html#vrcfg";
         break;
    
    /*************************************************************************************/
    /************************************ QoS ********************************************/
    /*************************************************************************************/
    case "ipACL":
         strHelp = "/qos/acl/help_acl.html#aclcfg";
         break;
    case "ipBindingConfiguration":
         strHelp = "/qos/acl/help_acl.html#ipBindingConfiguration";
         break;
    case "ipbindingTable":
         strHelp = "/qos/acl/help_acl.html#ipBindingTable";
         break;
    case "ipACLrulesConfiguration":
         strHelp = "/qos/acl/help_acl.html#ipRules";
         break;
    case "ipExACLrulesConfiguration":
         strHelp = "/qos/acl/help_acl.html#ipERules";
         break;
    case "ipRules":
         strHelp = "/qos/acl/help_acl.html#ipRules";
         break;
    case "ipExtRules":
         strHelp = "/qos/acl/help_acl.html#ipERules";
         break;
    case "macACL":
         strHelp = "/qos/acl/mac_acl/help_mac_acl.html#mac_acl_cfg";
         break;
    case "macBindingConfiguration":
         strHelp = "/qos/acl/mac_acl/help_mac_acl.html#macBindingConfiguration";
         break;
    case "macRules":
         strHelp = "/qos/acl/mac_acl/help_mac_acl.html#mac_acl_rule_cfg";
         break;
    case "bindingTable":
         strHelp = "/qos/acl/mac_acl/help_mac_acl.html#macBindingTable";
         break;
    case "cosInterfaceConfiguration":
         strHelp = "/qos/cos/help_cos.html#cos_intf_cfg";
         break;
    case "qosConfiguration":
         strHelp = "/qos/cos/help_cos.html#cos_map_table_cfg";
         break;
    case "interfaceQueueConfiguration":
         strHelp = "/qos/cos/help_cos.html#cos_intf_queue_cfg";
         break;
    case "qosQueueMapping":
         strHelp = "/qos/cos/help_cos.html#cos_map_table_cfg";
         break;
    case "diffserv_cfg":
         strHelp = "/qos/diffserv/help_diffserv.html#diffserv_cfg";
         break;
    case "diffservclassinfo":
         strHelp = "/qos/diffserv/help_diffserv_policy.html#policy_clss";
         break;
    case "classCfg":
         strHelp = "/qos/diffserv/help_diffserv_class.html#class_name_cfg";
         break;
    case "classConfiguration":
         strHelp = "/qos/diffserv/help_diffserv_class.html#class_cfg";
         break;
    case "PolicyAttribute":
         strHelp = "/qos/diffserv/help_diffserv_policy.html#policy_clss";
         break;
    case "diffservWizard":
         strHelp = "/qos/diffserv/help_diffserv_wizard.html#diffserv_wiz";
         break;
    case "diffservclassinfo":
         strHelp = "/qos/diffserv/help_diffserv_policy.html#policy_def";
         break;
    case "policyCfg":
         strHelp = "/qos/diffserv/help_diffserv_policy.html#policy_cfg";
         break;
    case "policyName":
         strHelp = "/qos/diffserv/help_diffserv_policy.html#policy_cfg";
         break;
    case "serviceConfig":
         strHelp = "/qos/diffserv/help_diffserv_service.html#servCfg";
         break;
    case "serviceStatistics":
         strHelp = "/qos/diffserv/help_diffserv_service.html#servStatsDet";
         break;
    case "vlanaclCfg":
         strHelp = "/qos/acl/help_acl.html#vlan_acl_cfg";
         break;
    case "assignedACLs":
         strHelp = "/qos/acl/help_acl.html#vlan_acl_cfg";
         break;  
    case "aclVlansumm":
          strHelp = "/qos/acl/help_acl.html#aclIntIfVlanSumm";
          break;
    case "voipVlanProp":
         strHelp = "/qos/voip/help_voip_vlan.html#voip_vlan_cfg";
         break;
    case "voipVlanPort":
         strHelp = "/qos/voip/help_voip_vlan.html#voip_vlan_port";
         break;
    case "voipVlanOUI":
         strHelp = "/qos/voip/help_voip_vlan.html#voip_vlan_oui";
         break;
    case "dot1pMap":
         strHelp = "/qos/cos/help_cos.html#dot1p_queue_map";
         break;
    case "dscp_queue_map":
         strHelp = "/qos/cos/help_cos.html#dscp_queue_map";
         break;
    
    /*************************************************************************************/
    /************************************ Security ***************************************/
    /*************************************************************************************/
    case "dot1xConfiguration":
         strHelp = "/security/dot1x/help_dot1x.html#dot1xcfg";
         break;
    case "802.1XConfiguration":
         strHelp = "/security/dot1x/help_dot1x.html#dot1xcfg";
         break;
    case "portAuth":
         strHelp = "/security/dot1x/help_dot1x.html#dot1xportcfg";
         break;
    case "portSumm":
         strHelp = "/security/dot1x/help_dot1x.html#dot1xportstatus";
         break;
    case "httpsConfiguration":
         strHelp = "/security/ssl/help_https.html";
         break;
    case "downloadCertificate":
         strHelp = "/security/ssl/help_https.html#certificatedownload";
         break;
    case "accountingServerConfiguration":
         strHelp = "/security/radius/help_radius.html#acctcfg";
         break;
    case "accountingServerStat":
         strHelp = "/security/radius/help_radius.html#radacctstats";
         break;
    case "serverConfiguration":
         strHelp = "/security/radius/help_radius.html#radservcfg";
         break;
    case "radiusConfiguration":
         strHelp = "/security/radius/help_radius.html#radcfg";
         break;
    case "serverConfigurationStats":
         strHelp = "/security/radius/help_radius.html#radservstats";
         break;
    case "eapStatistics":
         strHelp = "/security/dot1x/help_dot1x.html#dot1xstats";
         break;
    case "tacacsConfiguration":
          strHelp = "/security/tacacs/help_tacacs.html#tacacscfg";
          break;
    case "tacacsserverConfiguration":
          strHelp = "/security/tacacs/help_tacacs.html#tacacsservercfg";
          break;
    /* Monitoring */
    /* Maintenance */
    /* Help */
  
    default:
         alert('Help page '+name+' not found');
         break;
  }
  document.getElementById('maincontent').contentWindow.location.replace(strHelp);
}

function showWinTitle(name)
{
  var strHelp = "error";
  switch (name) 
  {
    /* System */
    /* Switching */
    case "lacpCfg":
    case "lacpPortCfg":                       	
	document.write("LACP CONFIGURATION HELP");
	break;
    /* Routing */
    /* QoS */
    /* Security */
    /* Monitoring */
    /* Maintenance */
    /* Help */
    case "ipACL":
    case "ipBindingConfiguration":
    case "ipbindingTable":
    case "ipACLrulesConfiguration":
    case "ipExACLrulesConfiguration":
    case "ipRules":
    case "ipExtRules":
         document.write("IP ACCESS CONTROL LIST (ACL) HELP");
         break;
  
    case "macACL":
    case "macBindingConfiguration":
    case "macRules":
    case "bindingTable":
         document.write("MAC ACCESS CONTROL LIST (ACL) HELP");
         break;
  
    case "802.1XConfiguration":
    case "dot1xConfiguration":
    case "portAuth":
    case "portSumm":
         document.write("PORT ACCESS CONTROL HELP");
          break;

    case "macFilterConfig":
    case "macFilterSumm":
         document.write("MAC FILTER HELP");
         break;
  
    case "consolePort":
    case "http_cfg":
         document.write("SWITCH CONFIGURATION HELP");
         break;

    case "httpsConfiguration":
         document.write("SECURE HTTP HELP");
         break;

    case "macVlanConfig":
         document.write("MAC BASED VLAN HELP");
         break;

    case "downloadCertificate":
    case "fileDownload":
    case "fileUpload": 
         document.write("FILE TRANSFER");
         break;

    case "accountingServerConfiguration":
         document.write("RADIUS ACCOUNTING SERVER CONFIGURATION");
         break;

    case "accountingServerStat":
         document.write("RADIUS ACCOUNTING SERVER STATISTICS");
         break;

    case "authenticationList":
         document.write("LOGIN AUTHENTICATION LIST CONFIG");
         break;

    case "loginSession":
         document.write("LOGIN SESSIONS");
         break;

    case "serverConfiguration":
         document.write("RADIUS SERVER CONFIGURATION");
         break;

    case "radiusConfiguration":
         document.write("RADIUS CONFIGURATION");
         break;

    case "serverConfigurationStats":
         document.write("RADIUS SERVER STATISTICS");
         break;

    case "userManagement":
         document.write("ACCOUNT CONFIGURATION HELP");
         break;

    case "securityConfiguration":
    case "securityViolations":
    case "intIfCfg":
    case "staticMacAddress":
    case "securityConfigurationDynamic":
    case "portList":
         document.write("HELP FOR PORT SECURITY");
         break;

    case "stormControl":
         document.write("TRAFFIC CONTROL");
         break;
  
    case "httpFileDownload":
         document.write("HTTP FILE TRANSFER");
         break;

    case "deviceReboot":
         document.write("SYSTEM RESET");
         break;

    case "passReset":
         document.write("RESET PASSWORD");
         break;

    case "factoryDefault":
         document.write("RESET CONFIGURATION TO DEFAULTS");
         break;

    case "saveConfiguration":
         document.write("SAVE ALL APPLIED CHANGES");
         break;

    case "pinDetails":
         document.write("PING HELP");
         break;

    case "traceroute":
         document.write("TRACEROUTE HELP");
         break;

    case "inmemory_cfg":
    case "inmemory_log":
    case "cmd_logger_cfg":
    case "console_log":
    case "syslog_cfg":
    case "syslog_host_cfg":
    case "trapLogs":
    case "trap_log":
    case "eventLogs":
         document.write("SWITCH LOGGING HELP");
         break;

    case "portMirroring":
         document.write("PORT CONFIGURATION HELP");
         break;

    case "eapStatistics":
         document.write("PORT ACCESS CONTROL HELP");
         break;

    case "portStats":
    case "detailedStatistics":
         document.write("PORT STATISTICS HELP");
         break;
  
    case "cosInterfaceConfiguration":
    case "qosConfiguration":
    case "interfaceQueueConfiguration":
    case "qosQueueMapping":
    case "dot1pMap":
    case "dscp_queue_map":
         document.write("CLASS OF SERVICE (CoS) HELP");
         break;

    case "diffserv_cfg":
    case "diffservclassinfo":
    case "classCfg":
    case "classConfiguration":
    case "diffservWizard":
    case "diffservclassinfo":
    case "policyCfg":
    case "PolicyAttribute":
    case "policyName":
    case "serviceConfig":
    case "serviceStatistics":
         document.write("DIFFSERV HELP");
         break;
  
    case "tableconfiguration":
    case "arpCreate":
    case "arpConfiguration":
    case "arpCfg":
    case "arpEntryMgmt":
         document.write("ARP HELP");
         break;

    case "arpCache":
         document.write("ARP CACHE");
         break;

    case "ipInterfaceConfiguration":
    case "routingIpConfiguration":
    case "statistics":
         document.write("IP HELP");
         break;

    case "secIPAddress":
    case "routingInterface":
         document.write("SECONDARY IP HELP");
         break;

    case "vlanRoutingWizard":
    case "vlanRoutingConfiguration":
         document.write("VLAN ROUTING HELP");
         break;
  
    case "routerDiscoveryConfiguration":
         document.write("ROUTER DISCOVERY HELP");
         break;
        
    case "advRouteConfiguration":
    case "routeConfiguration":
    case "routeLearned":
    case "routePreferences":
         document.write("IP ROUTE HELP");
         break;
  
    case "basicAddressTable":
    case "dynamicAddress":
         document.write("ADDRESS TABLE HELP");
         break;

    case "igmpSnoopingConfiguration":
    case "igmpSnoopingInterfaceConfiguration":
    case "igmpVlanCfg":
    case "multicastRouterConfiguration":
    case "multRtrVlanCfg":
         document.write("IGMP SNOOPING HELP");
         break;

    case "igmpSnoopingTable":
    case "mfdbStatistics":
    case "mfdbTable":
    case "gmrpTable":
         document.write("MFDB HELP");
         break;

    case "cstConfiguration":
    case "cstPort":
    case "cstStatus":
    case "rapidSTP":
    case "mstCfgStatus":
    case "mstPortConfiguration":
    case "stpConfiguration":
    case "stpStatistics":
    case "stpStatus":
         document.write("SPANNING TREE HELP");
         break;

    case "slotConfiguration":
    case "slotSummary":
    case "supportedCard":
         document.write("SLOT CONFIGURATION HELP");
         break;
  
    case "garpPortConfiguration":
    case "garpSwitchConfiguration":
         document.write("GARP HELP");
         break;

    case "vlanMembership":
    case "vlanStatus":
    case "resetVlan":
    case "portPVIDConfiguration":
    case "basicVlanConfiguration":
         document.write("VLAN CONFIGURATION HELP");
         break;

    case "lagMembership":
    case "lagConfig":
         document.write("LAG CONFIGURATION HELP");
         break;
  
    case "systemStatistics":
         document.write("SWITCH STATISTICS HELP");
         break;

    case "dnsConfiguration":
    case "dnsServerConfig":
    case "dnsHostConfiguration":
    case "dnsDynamicHostConfiguration":
         document.write("DNS HELP");
         break;

    case "ipConfiguration":
         document.write("IP CONFIGURATION HELP");
         break;

    case "sntpGlobalConfiguration":
    case "sntpServerConfiguration":
    case "SNTPServerStatus":
    case "SNTPGlobalStatus":
         document.write("SNTP HELP");
         break;

    case "systemInformation":
    case "deviceStatus":
         document.write("SYSTEM INFORMATION HELP");
         break;
  
    case "portConfig":
    case "portDescription":
         document.write("PORT CONFIGURATION HELP");
         break;
  
    case "dhcpRelay":
    case "dhcpRelayStatus":
         document.write("DHCP RELAY HELP");
         break;

    case "communityConfiguration":
    case "supportedMibs":
    case "trapConfiguration":
         document.write("SNMP HELP");
         break;

    case "trapFlags":
         document.write("TRAP FLAGS HELP");
         break;

    case "userConfiguration":
    case "user":
         document.write("USER CONFIGURATION HELP");
         break;
  
    case "userlogin":
         document.write("USER LOGIN HELP");
         break;

    case "lldpConfiguration":
    case "lldpIntfCfg":
    case "lldpStats":
    case "LclDevInfo":
    case "RemDevInfo":
         document.write("LLDP CONFIGURATION HELP");
         break;

    case "lldpMedGblCfg":
    case "lldpMedIntfCfg":
    case "lldpMedLclDevInfo":
    case "lldpMedRemDevInfo":
         document.write("LLDP-MED CONFIGURATION HELP");
         break;
    case "macFilterConfig":
    case "macFilterSumm":
         document.write("MAC FILTER HELP");
         break;
    case "persistlogCfg":
    case "persist_log":
         document.write("PERSISTENT LOG HELP");
         break;
    case "tacacsConfiguration":
    case "tacacsserverConfiguration":
         document.write("TACACS CONFIGURATION HELP");
         break;
    case "dualImageCfg":
    case "dualImageStatus":
         document.write("DUAL IMAGE HELP");
         break;
    case "dosConfiguration": 
         document.write("DOS CONFIGURATION HELP");
         break;
    case "DHCPFilterCfg":
    case "dhcpFilterIntfCfg":
         document.write("DHCP FILTERING HELP");
         break;
    case "igmpSnupQuerierCfg":
    case "igmpSnoopQuerierVlanCfg":
    case "igmpSnoopQuerierVlanStats":
         document.write("IGMP SNOOPING QUERIER HELP");
         break;
    case "ProPortsCfg":    
    case "ProPortsSumm":
         document.write("PROTECTED PORTS HELP");
         break;
    case "accessprofileConfig":
    case "accessprofileSumm":
    case "accessruleConfig":
         document.write("ACCESS CONTROL HELP");
         break;
    case "flowControl":
         document.write("FLOW CONTROL HELP");
         break;
    case "vlanaclCfg":  
    case "assignedACLs":  
    case "aclVlansumm":
         document.write("VLAN ACL HELP");
         break;
    case "voipVlanProp":
    case "voipVlanPort":
    case "voipVlanOUI":
         document.write("VOIP VLAN HELP");
         break;
    default:
         alert('Help page '+name+' not found');
         break;
  }
}

