var ie=document.all?1:0;
 // test for IE 4+
var ns=document.layers?1:0;
 // test for NS 4
var dom=document.getElementById?1:0;
 // test for NS6/IE5+

var onlayer=
ie?function(obj) {
 document.all[obj].style.visibility="visible";
}:
ns?function(obj) {
 document.layers[obj].visibility="show";
}:
function(obj) {
 document.getElementById(obj).style.visibility="visible";
};
var offlayer=
ie?function(obj) {
 document.all[obj].style.visibility="hidden";
}:
ns?function(obj) {
 document.layers[obj].visibility="hide";
}:
function(obj) {
 document.getElementById(obj).style.visibility="hidden"
};

function changeclr(tdobj,stat)
{
  this.id = tdobj
  if(stat == "mov")
   id.style.backgroundColor = "A8A8C8"
  else if(stat == "mot")
   id.style.backgroundColor = "DCDCE9"
}
