//show / hide function sh(parentId) { myParent = document.getElementById(parentId); if (myParent.style.display=="none") { myParent.style.display="block"; //this.focus(); } else { myParent.style.display="none" } } //show function show(parentId) { myParent = document.getElementById(parentId); myParent.style.display="block"; } //hide function hide(parentId) { myParent = document.getElementById(parentId); myParent.style.display="none"; }