﻿function FixFooter() {
    var tela_x = screen.width;
    var tela_y = screen.height;
    var MasterHeight = gE('master').clientHeight;
    var FooterHeight = gE('container_inferior').clientHeight;
    var HeaderHeight = gE('header').clientHeight;
    var BodyHeight = document.body.parentNode.clientHeight;
    var ContentHeight = gE("content").clientHeight;
    var WebHeight = gE("web").clientHeight;
    /*if (MasterHeight < BodyHeight) {
        gE("container_inferior").style.position = "absolute";
        gE("container_inferior").style.bottom = "0px";
        
        var WebSize = BodyHeight - FooterHeight - HeaderHeight - 30;
        gE("web").style.height = WebSize + "px";
        
    }
    else {*/
    
    if (ContentHeight < WebHeight) {
        if (MasterHeight < BodyHeight) {
            gE("container_inferior").style.position = "absolute";
            gE("container_inferior").style.bottom = "0px";
            var WebSize = BodyHeight - FooterHeight - HeaderHeight - 30;
            gE("web").style.height = WebSize + "px";
        } else {
            gE("web").style.height = WebHeight + "px";
        }
    }
    else {
        gE("web").style.height = ContentHeight + "px";
    }
    /*}*/
}