/*
**************************************************************************************************
	div.js

 	JavaScript functions for hiding and displaying DIV elements
**************************************************************************************************

*** Note ***
Refresh or reopen browser if these scripts are updated; file is cached by browser!!

*/

function showDIV(divName){
     if(document.getElementById) {
          document.getElementById(divName).style.display = 'block';
          document.getElementById(divName).style.visibility='visible';
     }
     else if(document.layers) {
          for (i=0; i < document.layers.length; i++) {
               var whichEl = document.layers[i];

               if (whichEl.id.indexOf(divName) != -1) {
                    whichEl.display = 'block';
                    whichEl.visibility='show';
               }
          }
     }
     else if(document.all) {
          document.all(divName).style.display = 'block';
          document.all(divName).style.visibility='visible';
     }
}

function hideDIV(divName){
     if(document.getElementById) {
          document.getElementById(divName).style.visibility='hidden';
          document.getElementById(divName).style.display = 'none';
     }
     else if(document.layers) {
          for (i=0; i < document.layers.length; i++) {
               var whichEl = document.layers[i];

               if (whichEl.id.indexOf(divName) != -1) {
                    whichEl.display = 'none';
                    whichEl.visibility='hide';
               }
          }
     }
     else if(document.all) {
          document.layers[divName].display = 'none';
          document.all(divName).style.visibility='hidden';
     }
}

