var funWindowResize;
var funBodyResize;
var nMaxWidth = 830;
var nMinWidth = 710;

//var newWindow;
//newWindow = window.open('','','');

function funTblSize()
   {
   var tbl1;
   var sX;
   sX = document.body.clientWidth - 30 ;
   tbl1 = document.getElementById("Table1");
//   newWindow.document.write('sX='+sX+'<br>');
//   newWindow.document.write('<br>');
   if (sX > nMaxWidth)      {
      tbl1.style.width = nMaxWidth;
      }
   else
      {
      if (sX < nMinWidth )
         {
         tbl1.style.width = nMinWidth;
         }
      else
         tbl1.style.width = sX;
      }
   //alert(funBodyResize);
   if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0) 
      {
      if (funWindowResize != null)
         funWindowResize();
      }
   else 
      if (funBodyResize != null)
         funBodyResize();
   }
funWindowResize = null;
funWindowResize = window.onresize;
window.onresize = funTblSize;
funBodyResize = null;
funBodyResize = document.body.onresize;
document.body.onresize = funTblSize;
funTblSize();
