function setDiv(nm,value){
 if (document.all) { // IE 4 & IE 5
    style=document.all(nm).style
 } 
 else {
     if (document.getElementById) { // IE 5+, NN6+ & Opera 
        style = document.getElementById(nm).style
     }
    else {
        if (document.layers) { // NN 4
           style = document.layers[nm]
       }
      else {
          style = null // all other browsers
      }
   }
 } 
 if (style) {
  if (value) {
    style.visibility= "inherit" // element inherits visibility 
  }
  else {
    style.visibility= "hidden" // hide the element
  }
 }
}

