1function showContent(header, id) 2{ 3 e = document.getElementById(id); 4 if(e.style.display == 'none') 5 { 6 e.style.display = 'block'; 7 e.style.visibility = 'visible'; 8 header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[−]"); 9 } 10 else 11 { 12 e.style.display = 'none'; 13 e.style.visibility = 'hidden'; 14 header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[+]"); 15 } 16}