/*

Este codigo reliza que el iFrame sea calculado el alto del mismo
para asi mostrar todo el contencido.

Se aplica asi:

<iframe 
	id="tree" 
	name="tree" 
	src="tree.htm" 
	onload="if (window.parent && window.parent.autoIframe) {window.parent.autoIframe('tree');}">
	</iframe>

Lo utilize en las encuestas inicialmente...

*/


function autoIframe(frameId){
	try{
		frame = document.getElementById(frameId);
		innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
		objToResize = (frame.style) ? frame.style : frame;
		objToResize.height = innerDoc.body.scrollHeight + 12;
	}
	catch(err){
		window.status = err.message;
	}
}