div1.visible:=true; div2.visible:=false;
<div id="x" style="display: none;">Hello, world!</div> <a href="javascript://" onclick="document.getElementById('x').style.display = 'block';">Показать</a>