// Functions to hide and display page sections

// Based on concept by Andrew Cranwell / http://www.factum.co.uk
// For DIVs use 'block' ('inline' would be possible, though)
function divShow(item) {
  formobj=document.getElementById(item);
  formobj.style.display="block";
}
function divHide(item) {
  formobj=document.getElementById(item);
  formobj.style.display="none";
}

// For SPANs use 'inline' ('block' would be possible, though)
function spanShow(item) {
  formobj=document.getElementById(item);
  formobj.style.display="inline";
}
function spanHide(item) {
  formobj=document.getElementById(item);
  formobj.style.display="none";
}

// another approach
function divToggle(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")  
   if (visible) {
      obj.style.display="none";
   } else {
      obj.style.display="block";
   }
}