function reSize_iframe()
{
 try{
  var oBody = iframe1.document.body;
  var oFrame = document.all('iframe1');

/*
alert(oBody.scrollHeight);
alert(oBody.offsetHeight);
alert(oBody.clientHeight);
*/
  
  oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
  oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);

  
 }
 //An error is raised if the IFrame domain != its container's domain
 catch(e)
 {
  //window.status = 'Error: ' + e.number + '; ' + e.description;
 }
}