function setFooter() 
{
if (document.getElementById) 
{
var windowHeight=getWindowHeight();
if (windowHeight>0) 
{
var contentHeight_1=document.getElementById('frame').offsetHeight + 10;

var contentHeight_2=windowHeight-40;
//var contentHeight_2=document.getElementById('cont').offsetHeight + 125;
var contentHeight=(contentHeight_2 > contentHeight_1)?contentHeight_2:contentHeight_1;
//var contentHeight=contentHeight_1;
var footerElement=document.getElementById('footer');            
var footerHeight=footerElement.offsetHeight;

footerElement.style.position='absolute';
footerElement.style.top=(contentHeight+footerHeight)+'px';

footerElement.style.visibility='visible'; 
}

}
}
function setFooterHome() 
{
if (document.getElementById) 
{
var windowHeight=getWindowHeight();
if (windowHeight>0) 
{
var contentHeight_1=document.getElementById('frame').offsetHeight + 20;

var contentHeight_2=windowHeight-40;
//var contentHeight_2=document.getElementById('cont').offsetHeight + 125;
var contentHeight=(contentHeight_2 > contentHeight_1)?contentHeight_2:contentHeight_1;
//var contentHeight=contentHeight_1;
var footerElement=document.getElementById('footer');  
var bottomElement=document.getElementById('bottom');            
var footerHeight=footerElement.offsetHeight;
var bottomHeight=footerHeight-30;

//bottom
bottomElement.style.position='absolute';
bottomElement.style.top=(contentHeight+bottomHeight)+'px';
bottomElement.style.visibility='visible'; 
//footer
footerElement.style.position='absolute';
footerElement.style.top=(contentHeight+footerHeight)+'px';
footerElement.style.visibility='visible'; 
}

}
}
function getWindowHeight() 
{
var windowHeight=0;
if (typeof(window.innerHeight)=='number') {
windowHeight=window.innerHeight;
}
else {
if (document.documentElement&&
document.documentElement.clientHeight) {
windowHeight=
document.documentElement.clientHeight;
}
else {
if (document.body&&document.body.clientHeight) {
windowHeight=document.body.clientHeight;
}
}
}
return windowHeight;
}
