function check_table_1 (xid, xminwidth)
 {if (navigator.appName == "Netscape")
   {var winwidth = window.innerWidth;}
  else
   {var winwidth = document.body.offsetWidth;}

  if (winwidth < xminwidth)
   {if (document.getElementById)
     {document.getElementById(xid).style.width = winwidth + 'px';}
    else
     {if (document.all)
      {document.all[xid].style.width = winwidth + 'px';}}}
  else
   {if (document.getElementById)
     {document.getElementById(xid).style.width = '100%';}
    else
     {if (document.all)
      {document.all[xid].style.width = '100%';}}}}

function check_table_2 (xid, xmaxwidth, xsetwidth)
 {if (navigator.appName == "Netscape")
   {var winwidth = window.innerWidth;}
  else
   {var winwidth = document.body.offsetWidth;}

  if (winwidth > xmaxwidth)
   {if (document.getElementById)
     {document.getElementById(xid).style.width = xsetwidth + 'px';}
    else
     {if (document.all)
      {document.all[xid].style.width = xsetwidth + 'px';}}}
  else
   {if (document.getElementById)
     {document.getElementById(xid).style.width = '90%';}
    else
     {if (document.all)
      {document.all[xid].style.width = '90%';}}}}
