function setFooter() 
{
	var a;
	var b;
	var c;

	var footerHeight=150;
	
	a=document.getElementById('container').clientHeight;
	b=document.documentElement.clientHeight;
	c=document.getElementById('footer');

	if (((b-a)<footerHeight) && (b-a>0)) 
	{
		c.style.margin=-footerHeight+125+"px auto";
	}
	else
	{
		if (b<=a+footerHeight)
		{ 
			c.style.margin="0px auto";
		}
	}
}

function getDocHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}



function setConteinerHeight()
{
	var originalHeight = document.getElementById('container');
	originalHeight.style.height=String(getDocHeight())+'px';

	alert(a);

}



