function getDocHeight(doc)
{
  var docHt = 0, sh, oh;
  if (doc.height) docHt = doc.height;
  else if (doc.body) {
    if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
    if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
    if (sh && oh) docHt = Math.max(sh, oh);
  }
  return docHt;
}

function parent_resize()
{
	var nHeight = getDocHeight(document);
	parent.content_resize(nHeight);
}

function content_resize(nHeight)
{
	oContent = document.getElementById("content_frame");
	if (nHeight < 300) {
		oContent.height = 1000;
		oContent.scrolling = "yes";
	}
	else {
		oContent.height = nHeight;
		oContent.scrolling = "no";
	}
}
