/* 
to be included in iframe pages of mini-applications.  This function should be set as the onload
function to be called upon loading the iframe content.  It will dynamically resize the window and reset the 
browser's scroll back to the top of the page.
*/
function handleLoadedIFrame(iframe) {
	try {
		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);
	}
}