﻿// JScript File

addOnload(handleIFrames);

function handleIFrames() {
    if(document.getElementsByTagName) {
        var iframes = document.getElementsByTagName("IFRAME");
        for(var i=0; i<iframes.length; i++) {
            if(iframes[i].className.match(/\s*resizable\s*/i).length > 0) {
                iframes[i].style.height = ((navigator.appName.indexOf("Microsoft")!=-1) ? document.body.offsetHeight : window.innerHeight) + "px" ;
            }
        }
    }
}

function resizeIFrame() {
    alert("resizing to " & document.body.clientHeight);
    this.style.height = document.body.clientHeight;
}

