/* This File Holds functions to abstract browser differences in IFrame handling */
function LoadFrame(frameId, url)
{
    document.getElementById(frameId).src = url;
}

function GetDocumentFromFrame(theFrame)
{
    var theDocument;
    
    if(theFrame.contentWindow.document)
    {
        theDocument = theFrame.contentWindow.document;
    }
    else
    {
        theDocument = theFrame.contentDocument;
    }
    
    return theDocument;
}

function resizeCaller()
{
    var height = window.innerWidth;//Firefox
    
    if (document.body.clientHeight)
    {
	    height=document.body.clientHeight;//IE
    }
    
    //resize the iframe according to the size of the window
    document.getElementById("FrameLMS").style.height = parseInt(height - document.getElementById("FrameLMS").offsetTop-8)+"px";
}