//window.onload = SetDiv;
window.onresize = SetDiv;

function SetDiv()
{
    var wh = 0;
    
    // Get required div height
    if (typeof(window.innerHeight) == 'number')
        wh = getWindowHeight() - 158;
    else
        wh = getWindowHeight() - 174;
    
    var d = document.getElementById('faq_dataframe'); // Get div element
    d.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;
}