I have several hidden divs inside large div, they can be shown one by one or all at once
It looks like this:

```
<div class="maindiv">
   Print "<a href=javascript:show()>Click here to show all</a>
   <a href="javascript:showhide(document.getElementById('div1'))">Show/hide div1</a>
   <div id="div1" style="display:none;">.....</div>
   <a href="javascript:showhide(document.getElementById('div2'))">Show/hide div2</a>
   <div id="div2" style="display:none;">.....</div>
   ....
</div>

```

showhide() function is ok showing/hiding given div, show() works too but like this:

```
function show(){
   div1.style.display="block";
   div2.style.display="block";
   ...
}

```

so if I'll have 100 divs I'll have to enter it there 100 times
so my question is, how can I find all hidden divs in div with class maindiv and show em other way than enumerate? Or is the way I do ok?