function switchContent(controlID, contentURL)
{
  var control = document.getElementById(controlID);
  if (control != null)
  {
    if (-1 == control.src.indexOf(contentURL))
    {
      control.src = contentURL;
    }
  }
}

function setObjectHeight(objectID, height)
{
  var obj = document.getElementById(objectID)
  if (obj != null)
  {
    obj.style.height = height;
  }
}

function showFrame(frameID, isVisible)
{
  var frameobj = document.getElementById(frameID);
  if (frameobj != null)
  {
    if (isVisible == false)
    {
      frameobj.style.display = "none";
      frameobj.src = "about:blank";
      frameobj.innerHTML = "";
      frameobj.attributes["src"] = "about:blank";
      frameobj.navigate("about:blank");
      frameobj.window.location = "about:blank";
    }
    else
    {
      frameobj.style.display = "block";
    }
  }
}

