    function resizeIframe() {

        var docHeight;
        if (typeof document.height != 'undefined') {
            docHeight = document.height;
        }
        else if (document.compatMode && document.compatMode != 'BackCompat') {
            docHeight = document.documentElement.scrollHeight;
        }
        else if (document.body
            && typeof document.body.scrollHeight != 'undefined') {
            docHeight = document.body.scrollHeight;
        }

        // magic number: suppress generation of scrollbars...
        docHeight += 25;

        parent.document.getElementById('childframe').style.height = docHeight + "px";
    }
if (self != top) {
    parent.document.getElementById('childframe').onload = resizeIframe;
    parent.window.onresize = resizeIframe;
}

