<script language="JavaScript">
/*
dumps an object obj properties in a new window
*/
function objDump (obj, except) {
var dump = window.open ('about:blank', 'dumpWindow', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=400, height=400');
var i;
dump.document.write ('<h3>Dumping object: ' + obj.toString () + '</h3>');
for (i in obj) {
if (except && except.inArray (i)) continue;
dump.document.write ('<b>' + i + '</b>: ');
dump.document.write (obj[i] + '<br>');
}
document.close ();
return false;
}
</script>
<table>
<tr>
<td>
<div id="TopMenu" style="positon:relative">Menu</div>
</td>
</tr>
</table>
<script language="JavaScript">
el = document.getElementById("TopMenu");
objDump(el);
</script>