function setContentDimension()
{
var windowWidth, windowHeight;
if (self.innerHeight) {	// all except Explorer
	//windowWidth = self.innerWidth;
	windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
	//windowWidth = document.documentElement.clientWidth;
	windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
	//windowWidth = document.body.clientWidth;
	windowHeight = document.body.clientHeight;
}
    myHeight=windowHeight-270;
    if(myHeight > 80)
    {
        mainObj=document.getElementById('main');
        mainObj.style.height = myHeight+'px'; 
        document.body.style.overflowY='hidden';  
        document.getElementsByTagName("html")[0].style.overflowY='hidden'; 
    }        
    else 
        resetScrollbar();                              
}

function resetScrollbar()
{
    //document.body.style.overflowY='auto'; 
    document.getElementsByTagName("html")[0].style.overflowY='auto';
}