﻿function BrowserHeight() {
    var theHeight;
    if (window.innerHeight) {
        theHeight = window.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight) {
        theHeight = document.documentElement.clientHeight;
    }
    else if (document.body) {
        theHeight = document.body.clientHeight;
    }
    return theHeight;
}
function SetHeightOfDiv() {
    //sitetopwrapper.height + sitefooterwrapper.height
    var topfooterheight = 155 + 73;
    var windowheight = BrowserHeight();
    var diffheight = windowheight - topfooterheight;
    var actualheight = document.getElementById("mainArticleContainer").scrollHeight;  //clientHeight;
    if (actualheight < diffheight)
    { document.getElementById("mainArticleContainer").style.height = diffheight + "px"; }
}
function SetHeightOfDivPers() {
    //sitetopwrapper.height + sitefooterwrapper.height
    var topfooterheight = 155;
    var windowheight = BrowserHeight();
    var diffheight = windowheight - topfooterheight;
    var actualheight = document.getElementById("mainArticleContainer").scrollHeight;  //clientHeight;
    if (actualheight < diffheight)
    { document.getElementById("mainArticleContainer").style.height = diffheight + "px"; }
} 