Add this:
Between your <script> tags:
Code:
function handle_click(e) {
e = e || event;
var target = e.target || e.srcElement;
if (target.id == 'Table1') {
e.cancelBubble = true;
if (e.stopPropagation) {
e.stopPropagation();
}
} else {
document.getElementById('Table1').style.display = 'none';
}
}
And add this to your body tag:
Code:
onclick="handle_click();"
Code:
<body onclick="handle_click();">