var x,y;
var bd_ht = document.body.scrollHeight;
var bd_wd = document.body.offsetHeight
if (bd_ht > bd_wd) // all but Explorer Mac
{
	x = document.body.scrollWidth;
	y = document.body.scrollHeight;
}
else // Explorer Mac;
     //would also work in Explorer 6 Strict, Mozilla and Safari
{
	x = document.body.offsetWidth;
	y = document.body.offsetHeight;
}

if(document.getElementById('leftWrap') || document.getElementById('rightWrap'))
{
	document.getElementById('leftWrap').style.height = y - 228 + 'px';
	document.getElementById('rightWrap').style.height = y - 225 + 'px';
}
if(document.getElementById('leftWrapNew') || document.getElementById('rightWrapNew'))
{
	document.getElementById('leftWrapNew').style.height = y - 228 + 'px';
	document.getElementById('rightWrapNew').style.height = y - 254 + 'px';
}