function resizeIframe(iframeID,sourceID) { 

if(self==parent) return false; /* Checks that page is in iframe. */ 

var obj = document.getElementById(sourceID);

var FramePageHeight =obj.offsetHeight + 10; 

/* framePage 

is the ID of the framed page's BODY tag. The added 10 pixels prevent an 
unnecessary scrollbar. */ 

parent.document.getElementById(iframeID).style.height=FramePageHeight+'px'; 
/* "iframeID" is the ID of the inline frame in the parent page. */ 

} 

