// JavaScript Document
function popup(url,windowname,width,height) {
 var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
 if (width) {
  if (window.screen.width > width)
   features+=", left="+(window.screen.width-width)/2;
  else width=window.screen.width;
  features+=", width="+width;
 }
 if (height) {
  if (window.screen.height > height)
   features+=", top="+(window.screen.height-height)/2;
  else height=window.screen.height;
  features+=", height="+height;
 }
 window.open(url,windowname,features);
}

function PopupWindow(pUrl) {
@var mWinName = 'myPop';
@var mOption = 'width=500, height=260, location=no, menubar=no, toolbar=no, scrollbars=no, resizable=yes';
@window.open(pUrl, mWinName, mOption);
}

function LoadFrame(frid) {
var IFR = document.getElementById(frid);
IFR.style.height = (IFR.contentWindow)?
IFR.contentWindow.document.body.scrollHeight:
document.frames[frid].document.body.scrollHeight;
}

function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('dnn_ctr445_IFrame_htmIFrame').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('dnn_ctr445_IFrame_htmIFrame').height=
      the_height;
}

function calcHeight02()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('dnn_ctr446_IFrame_htmIFrame').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('dnn_ctr446_IFrame_htmIFrame').height=
      the_height;
}
