function iframeWidth (id, wd) {
  var width = 0;
  var myIframe = document.getElementById (id);
  var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
  if (wd != null)
    width = wd;
	else if (isOpera)
    width = myIframe.contentDocument.documentElement.offsetWidth;
  else if (myIframe.contentDocument &&
      myIframe.contentDocument.body.offsetWidth)
    width = myIframe.contentDocument.body.offsetWidth;
  else
		width = myIframe.Document.body.scrollWidth;
  return Math.abs (width);
}

function iframeHeight (id, ht) {
  var height = 0;
  var myIframe = document.getElementById (id);
  var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
  if (ht != null)
		height = ht;
  else if (isOpera)
    height = myIframe.contentDocument.documentElement.offsetHeight - 20;
  else if (myIframe.contentDocument &&
      myIframe.contentDocument.body.offsetHeight)
    height = myIframe.contentDocument.body.offsetHeight;
  else 
    height = parseInt (myIframe.Document.body.scrollHeight) -
			parseInt (myIframe.Document.body.offsetTop) - 20;
  return Math.abs (height);
}


