Hi I am trying to change the display property to block when link is clicked and back to none when clicked outside of the div. It workd perfect with one div. The problem is that I need it to work for 5 divs. I appreciate any help anyone can offer.
Here is the javascript that I have

<script type="text/javascript">
document.onclick=check;
function check(e){
var target = (e && e.target) || (event && event.srcElement);
var obj = document.getElementById('contactMenu');
var obj2 = document.getElementById('contact');
checkParent(target)?obj.style.display='none':null;
target==obj2?obj.style.display='block':null;
}
function checkParent(t){
while(t.parentNode){
if(t==document.getElementById('contactMenu')){
return false
}
t=t.parentNode
}
return true
}

</script>

I would like to perform the same tasks on the same page for other divs and triggers such as 'property' and 'propertyMenu', 'map' and 'mapMenu' etc.

Again,

Thanks for your help