﻿function AutoHeight(autoSizeObjectID, bottomObjectID, bottomPXPadding) 
{
    var AutoSizeObj = document.getElementById(autoSizeObjectID);
    var BottomObj = document.getElementById(bottomObjectID);

    var AutoHeight = BottomObj.offsetTop;
    AutoHeight -= AutoSizeObj.offsetTop;
    AutoHeight -= bottomPXPadding;

    AutoSizeObj.style.height = AutoHeight + "px";
}

function HasScrollbars(objectID) 
{
    var _Elem = document.getElementById(objectID);
    if (_Elem.clientHeight < _Elem.scrollHeight) {
        return true; 
    }
    else {
        return false;
    }
}
