function toggleDisplay(tdID)
{
  tElt = document.getElementById(tdID);
  lElt = document.getElementById(tdID + "text");
  if (tElt.style.display == "")
  {
    tElt.style.display = "none";
    lElt.innerHTML = "[+] Expand for";
  }
  else
  {
    tElt.style.display = "";
    lElt.innerHTML = "[-] Collapse";
  }
}

function hideElts()
{
  var divContainers = document.getElementsByTagName('div');
  for (var i=0 ; i<divContainers.length ; i++)
  {
    try
    {
      containerID = divContainers[i].id
    }
    catch(e)
    {
      containerID = divContainers[i].getAttribute('id');
    }
    if (containerID != "" && containerID != null)
    {
      if (containerID.substr(0, 7) == "contact" ||
          containerID.substr(0, 9) == "suboffice" || 
          containerID == "offices")
      {
        divContainers[i].style.display = 'none';
      }
    }
  }
}

function goToOffice(frmObj)
{
  if (!isNaN(parseInt(frmObj.value))) {
    theForm = document.getElementById("officeForm");
    theForm.submit();
  }
}

window.onload = function()
{
  hideElts();
}
