function a_click id document getElementById id if style display style

1
2
3
4
5
function a_click(id){
a = document.getElementById(id);
if (a.style.display == "") a.style.display = "block";
else a.style.display = "";
}