function test()
{
 alert("test");
}

function UpdateIFrame()
{
	test();
}

function resize()
{
        try
        {
	  // var iframe = window.frames['contentFrame'].Document; 
	  // var iframe = document.forms['main'].elements['contentFrame]; 
	  var iframe = document.getElementById?parent.document.getElementById('contentFrame'):document.all.contentFrame;

          // iframe.style.display = "none";

          var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
          if (innerDoc.body.offsetHeight) //ns6 syntax
          {
             iframe.height = innerDoc.body.offsetHeight + 32; //Extra height FireFox
          }
          else if (iframe.Document && iframe.Document.body.scrollHeight) //ie5+ syntax
          {
             iframe.height = iframe.Document.body.scrollHeight;
          }
        }
        catch(err)
        {
          alert(err.message);
        }

/*
var oframe = document.getElementById("content");
// oframe.height = oframe.contentDocument.body.offsetHeight;

//***
//var odoc = oframe.document; //(1)
var odoc = oframe.Document; //(2)
var obody = odoc.body;

// oframe.height = oframe.offsetHeight;
oframe.height = obody.scrollHeight;
*/
}
