function adjustLayout()
{
    var targetHeight = Math.max(xHeight("railLeft"), (Math.max(xHeight("main"), xHeight("railRight"))));
    xHeight("contentContainer", targetHeight + 60);    
}

function ConfirmDelete()
{
    return confirm("Are you sure you want to delete this item?");
}

window.onload = function()
{
    adjustLayout();
    initLinks();
}

// Script written by Drew Noakes -- http://drewnoakes.com
function initLinks() {
  for (i in document.links) {
    link = document.links[i];
    if (link.rel && link.rel.indexOf('external')!=-1) {
      link.onclick = onExternalLinkActivate;
      link.onkeypress = onExternalLinkActivate;
    }
  }
}

function onExternalLinkActivate() {
  window.open(this.href);
  return false;
}