function adattaIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; }