
function redrawScreen(){
document.body.style.overflow = "hidden" //use document.documentElement if your DTD is strict
THIS_DIV_WRAPPER = document.getElementById("container")
THIS_DIV_WRAPPER.style.height = Math.abs(parseInt(document.body.clientHeight)) - 20 + "px" // use document.documentElement if your DTD is strict. subtract the container margin
THIS_DIV_WRAPPER.style.width = Math.abs(parseInt(document.body.clientWidth)) - 20  + "px" // subtract the container margin
if(parseInt(document.getElementById("container").style.width,10) == document.getElementById("container").scrollWidth){
document.getElementById("container").style.overflowX = "hidden"
}else{
document.getElementById("container").style.overflowX = "auto"
}
window.onresize = redrawScreen;
}


