I use the followinf script to resize the an iframe depending on the scroll size of the page within the frame. Saves having another scroll bar on the page.

Code:
<script language="javascript"> 
function checkiFrame() 
{ if ((document.all('imain').readyState=="complete")) 
	{ 
		if (document.frames('imain',0).document.body.scrollHeight > 500) 
		{ document.all('imain').style.height = document.frames('imain',0).document.body.scrollHeight;}
	  	else
	  	{ document.all('imain').style.height = 500;} 
    } 
} 
</script>
Problem is, it doesn't work in Netscape and Opera. Just Internet Explorer.

Anyone know what's wrong? I don't tend to use Java Script that much so I haven't got a clue.