function getBodyWidth() {
    return (document.body.scrollWidth > document.body.offsetWidth) ? document.body.scrollWidth : document.body.offsetWidth;
}
function getBodyHeight() {
    return (document.body.scrollHeight > document.body.offsetHeight) ? document.body.scrollHeight : document.body.offsetHeight;
}
function getClientWidth() {
    return window.innerWidth ? window.innerWidth : document.documentElement ? document.documentElement.clientWidth : document.body ? document.body.clientWidth : 0;
}
function getClientHeight() {
    return window.innerHeight ? window.innerHeight : document.documentElement ? document.documentElement.clientHeight : document.body ? document.body.clientHeight : 0;
}
function getScrollLeft() {
    return window.pageXOffset ? window.pageXOffset : document.documentElement ? document.documentElement.scrollLeft : document.body ? document.body.scrollLeft : 0;
}
function getScrollTop() {
    return window.pageYOffset ? window.pageYOffset : document.documentElement ? document.documentElement.scrollTop : document.body ? document.body.scrollTop : 0;
}
