html head script function showHide id if document getElementById id st

1
<html><head><script>function showHide(id) {if(document.getElementById(id).style.display != '') document.getElementById(id).style.display = '';else document.getElementById(id).style.display = 'none';}</script></head><table onClick="showHide(tt)"><tr><td>asdasdasd</td></tr></table><table style='display: none;' id=tt><tr><td>WORK</td></tr></table></html>