Хозяйке на заметку:
<script type="text/javascript">
window.onload = function(){
document.getElementsByTagName('a')[0].onclick = function(){
var div = document.getElementsByTagName('div')[0];
div.style.display = (div.style.display == '') ? 'block' : '';
};
};
</script>
<style type="text/css">
div {background: red; display: none; width: 50px; height: 50px;}
</style>
<a href="#">click</a>
<div></div>