i got this code to popup a small menu when you right click on the page but i want ti to only work when you right click isnide the table1 id:

<?php
include "popup.js";
?>

<table border="1" width="50" height="50" id="table1">
<tr>
<td>work here</td>
</tr>
</table>

<!---------------------POPUP MENU-------------------------->
<div id="menudiv" style="position:absolute;display:none;top:0px;left:0px;z-index:10000;" onmouseover="javascriptverpopupmenu=true;" onmouseout="javascriptverpopupmenu=false;">
<table width=82 cellspacing=1 cellpadding=0 bgcolor=lightgray>
<tr><td>
<table width=80 cellspacing=0 cellpadding=0>
<tr>
<td id="item1" bgcolor="#FFFFFF" width="80" height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="#">Item1</a></td>
</tr>
<tr>
<td id="item2" bgcolor="#FFFFFF" width="80" height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="#">Item2</a></td>
</tr>
<tr>
<td id="item3" bgcolor="#FFFFFF" width="80" height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="#">Item3</a></td>
</tr>
<tr>
<td id="item4" bgcolor="#ffffff" width="80" height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="#">Item4</a></td>
</tr>
</table>
</td></tr>
</table>
</div>