change ResizeTable function to accept width, height parameters.

ready for window.onresize = function(){
   var w =document.body.clientWidth;
   var h = document.body.clientHeight;
   ResizeTable(w,h)
}