function changetable(id) 
{
// make sure document.getElementById and 
// document.getElementByTagName 
// are understood first 
//alert(id)
if (!document.getElementsByTagName && !document.getElementById) { return null; } 
//alert('in')
var myperson=0
if (document.changeform.i.checked==true){myperson=myperson+1}
if (document.changeform.c.checked==true){myperson=myperson+2}
if (document.changeform.w.checked==true){myperson=myperson+4}
if (document.changeform.m.checked==true){myperson=myperson+8}
//alert(myperson)
if (myperson==0)
{
myperson=15
document.changeform.i.checked = true
document.changeform.c.checked = true
document.changeform.w.checked = true
document.changeform.m.checked = true
}
var mytags
var myalt
mytags = document.changeform.getElementsByTagName('tr')
mylength=mytags.length
//alert(mylength)
//mylength=30
//alert(mylength)
for (var x = 0; x < mylength; x++)
{
  mytags[x].style.display = "";
}
if (myperson==15){return}
for (var x = 0; x < mylength; x++)
{
//alert(x)
//netscape
myalt = mytags[x].getAttribute("class")
//internet explorer
myalt2 = mytags[x].ch
//alert(myalt)
//alert(myalt2)
// if myalt is null, find all <tr, checking for class and ch
// if class and ch are meaningless, set them to "none"
if (myalt2 > "b") {myalt = myalt2}
if (myalt=="none") {myalt = "icwm"}
if (myperson==14)
{
  if (myalt.indexOf('c') == -1)
  {
    if (myalt.indexOf('w') == -1)
    {
      if (myalt.indexOf('m') == -1)
      {
      mytags[x].style.display = "none";
      }
    }
  }
}
if (myperson==13)
{
  if (myalt.indexOf('i') == -1)
  {
    if (myalt.indexOf('w') == -1)
    {
      if (myalt.indexOf('m') == -1)
      {
      mytags[x].style.display = "none";
      }
    }
  }
}
if (myperson==12)
{
  if (myalt.indexOf('w') == -1)
  {
    if (myalt.indexOf('m') == -1)
    {
    mytags[x].style.display = "none";
    }
  }
}
if (myperson==11)
{
  if (myalt.indexOf('i') == -1)
  {
    if (myalt.indexOf('c') == -1)
    {
      if (myalt.indexOf('m') == -1)
      {
      mytags[x].style.display = "none";
      }
    }
  }
}
if (myperson==10)
{
  if (myalt.indexOf('c') == -1)
  {
    if (myalt.indexOf('m') == -1)
    {
    mytags[x].style.display = "none";
    }
  }
}
if (myperson==9)
{
  if (myalt.indexOf('i') == -1)
  {
    if (myalt.indexOf('m') == -1)
    {
    mytags[x].style.display = "none";
    }
  }
}
if (myperson==8)
{
  id='m'
  if (myalt.indexOf(id) == -1)
  {
  mytags[x].style.display = "none";
  }
}
if (myperson==7)
{
  if (myalt.indexOf('i') == -1)
  {
    if (myalt.indexOf('c') == -1)
    {
      if (myalt.indexOf('w') == -1)
      {
      mytags[x].style.display = "none";
      }
    }
  }
}
if (myperson==6)
{
  if (myalt.indexOf('c') == -1)
  {
    if (myalt.indexOf('w') == -1)
    {
    mytags[x].style.display = "none";
    }
  }
}
if (myperson==5)
{
  if (myalt.indexOf('i') == -1)
  {
    if (myalt.indexOf('w') == -1)
    {
    mytags[x].style.display = "none";
    }
  }
}
if (myperson==4)
{
  id='w'
  if (myalt.indexOf(id) == -1)
  {
  mytags[x].style.display = "none";
  }
}
if (myperson==3)
{
  if (myalt.indexOf('i') == -1)
  { if(myalt.indexOf('c') == -1)
    {
    mytags[x].style.display = "none";
    }
  }
}
if (myperson==2)
{
  id='c'
  if (myalt.indexOf(id) == -1)
  {
  mytags[x].style.display = "none";
  }
}
if (myperson==1)
{
  if (myalt.indexOf('i') == -1)
  {
  mytags[x].style.display = "none";
  }
}
}
}
