/***
  Laz: new javascript file for MBR specific stuff
  ***/

// calculate the height of an iframe based on the page it is loading
function calcHeight(id) 
{
  var iframeEl = document.getElementById ? document.getElementById(id): document.all? document.all[id]: null;
  if (iframeEl) 
  {
    iframeEl.style.height = "auto"; // helps resize (for some) if new doc shorter than previous
    var h = alertSize(id);
    var new_h = (h - 150);
    iframeEl.style.height = new_h + "px";
    // alert('set height to ' + new_h + 'px');
  }
}

function alertSize(id) 
{
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Height = ' + myHeight );
  return myHeight;
}




function showLinkToMe(id)
{
  obj = document.getElementById(id);
  obj.style.display = "block";
  obj.style.visibility = "visible";
   return(false);
}

