function iFrameHeight() { var h = 0; if ( !document.all ) { h = document.getElementById('blockrandom').contentDocument.height; document.getElementById('blockrandom').style.height = h + 60 + 'px'; document.getElementById('blockrandom').contentDocument.location.hash = document.getElementById('blockrandom').contentDocument.location.hash; } else if( document.all ) { h = document.frames('blockrandom').document.body.scrollHeight; document.all.blockrandom.style.height = h + 20 + 'px'; document.frames('blockrandom').window.location.hash = document.frames('blockrandom').window.location.hash; } }