function positionFooter() {
        var heightContent = 0;
        var headerHeight = 120;
        var wrapperHeight = 0;
        
        //names of two panes to use in calculation and footer and container
        var div0 = "";
        var div1 = "";
        var footer = "";
        var container = "";
        
        //set to the names of the panes for this application and container
        div0 = "Pane1";
        div1 = "Pane3";
        footer = "Pane4";
        container = "Layout";
        
        //if the columns are spaced lower for some reason , eg. another pane is above,
        //this can be compensated for
        var divOffset = 0;
        var div0Offset = 0;
        var div1Offset = 40;
        
        
        //alert(document.getElementById(div0).offsetHeight + ' ' + document.getElementById(div1).offsetHeight + ' ' + heightContent);
        
        
   
        // Get biggest column height
        //Check div0
        if (document.getElementById(div0))
        {
            heightContent = document.getElementById(div0).offsetHeight+div0Offset;       
            //add offset
            //divOffset = div0Offset;     
        }

        //Check if div1 is higher
        if (document.getElementById(div1))
        {
            //heightContent = document.getElementById(div1).offsetHeight > heightContent ? document.getElementById(div1).offsetHeight : heightContent;
            if (document.getElementById(div1).offsetHeight+div1Offset > heightContent) {
                heightContent = document.getElementById(div1).offsetHeight+div1Offset;
            }
            //add offset
            //divOffset = div1Offset;  
        }
                
        //add on any offset height
        heightContent = heightContent + divOffset; 
                
        heightContent = heightContent + headerHeight;     
        
        var div0Height = heightContent-140;  
        var div1Height = heightContent-210;  
       
        
        wrapperHeight = heightContent;
        
        if (document.getElementById(footer))
        {
            // IE or not IE?
            if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0)
            {
                document.getElementById(footer).style.setAttribute('top', heightContent + 'px');
                document.getElementById(container).style.setAttribute('height', wrapperHeight + 'px');
                document.getElementById(div0).style.setAttribute('height', div0Height + 'px');
                document.getElementById(div1).style.setAttribute('height', div1Height + 'px');
            }
            else
            {
                document.getElementById(footer).style.setProperty('top', heightContent + 'px', null);
                document.getElementById(container).style.setProperty('height', wrapperHeight + 'px', null);
                document.getElementById(div0).style.setProperty('height', div0Height + 'px', null);
                document.getElementById(div1).style.setProperty('height', div1Height + 'px', null);
            }
        }
        
     
        
    }