How do I get JS to change a <div> 's visibility,
<div id="main" style="visibility: show">
but I want a link like this
<a href="#" onclick="switchMain()">Change</a>
and clicking on that link will hide or show the layer.
but it doesnt work ? ?