function toggleDisplay(id) { var elt = document.getElementById(id); if (elt.style.display == 'none') { elt.style.display = 'block'; } else { elt.style.display = 'none'; } } function hideAll(cls) { var testClass = new RegExp("(^|s)" + cls + "(s|$)"); var tag = tag || "*"; var elements = document.getElementsByTagName("div"); var current; var length = elements.length; for(var i=0; i