//window.onload = SetDiv;
window.onresize = SetDiv;

function SetDiv()
{
    var wh = 0;
    var br = 0;
    
    // Get required div height
    if (typeof(window.innerHeight) == 'number')
    {
        wh = getWindowHeight() - 158;
        br = getWindowHeight() -60;
    }
    else
    {
        wh = getWindowHeight() - 174;
        br = getWindowHeight() - 60;
    }
    
    var d = document.getElementById('faq_dataframe'); // Get div element
    
    if(d != null)
    d.style.height = wh + 'px'; // Set div height to window height
    
    var e = document.getElementById('browse_dataframe'); // Get div element
    if(e != null)
        e.style.height = wh + 'px'; // Set div height to window height
}

function getWindowHeight()
{
    var windowHeight = 0;
    
    if (typeof(window.innerHeight) == 'number')
        windowHeight = window.innerHeight;
    else
    {
        if (document.documentElement && document.documentElement.clientHeight)
            windowHeight = document.documentElement.clientHeight;
        else
        {
            if (document.body && document.body.clientHeight)
                windowHeight = document.body.clientHeight;
        }
    }
    		
    return windowHeight;
}