
 // Function toggles the visibility of an element identified by the attribute which is an id
 function toggle(list){ 
 var listElementStyle=document.getElementById(list).style; 
 if (listElementStyle.display=="none"){ 
   listElementStyle.display="block"; 
   }
   else{ listElementStyle.display="none"; 
   } 
} 
