var x,y;
var test1 = document.body.scrollHeight;
var test2 = document.body.offsetHeight
if (test1 > test2) // 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;
}
str = "<table id=myTable width='100%' border=0 height='";
str +=  y - 144;
//str +=  tableHeight;
str += "' align='center' leftmargin='0' topmargin='0' cellspacing='0' cellpadding='0'>"
document.write(str);
