var linksshown = true;

if (!document.getElementById)
  document.getElementById = getElementByIdVariations;

function getElementByIdVariations(strValue)
{
  if (document.ids)
    return eval('document.ids.' + strValue);
  else if (document.all)
    return eval('document.all.' + strValue);
}

function openIn(anInput)
{
  if (document.getElementById && document.getElementById('basement').setAttribute)
  {
    document.getElementById('basement').setAttribute('target',anInput.options[anInput.selectedIndex].value);
  }
}

function targetBack()
{
  document.getElementById('theTarget').history.go(-1);
}

function targetForward()
{
  document.getElementById('theTarget').history.go(1);
}

/* Change ifw.location to new webpg and update display */
function openpage(webpg)
{
  document.getElementById('theTarget').src = webpg;
}

function showhidelinks()
{
  if (linksshown)
  {
    document.getElementById('linkside').style.width = '0%';
    document.getElementById('frameside').style.width = '100%';
    document.getElementById('btnShowHide').value = '>>';
    linksshown = false;
  }
  else
  {
    document.getElementById('linkside').style.width = '15%';
    document.getElementById('frameside').style.width = '85%';
    document.getElementById('btnShowHide').value = '^';
    linksshown = true;
  }
}

