Javascript i <td>
Jeg prøver at få et javascript til at indsætte et tilfældig billede i en td i min tabel. Men det fungerer bare ikkeDet ser ud som følger - selve scriptet er nederst
<body>
<div align="center">
<table border="0" style="border: 1px solid #319a63" width="956" cellspacing="0" cellpadding="0" height="660">
<tr>
<td valign="bottom" width="956" height="153" id="menu" colspan="3"><img name="someimage" src="">menu</td>
</tr>
<tr>
<td width="956" height="5" bgcolor="#339966" colspan="3"></td>
</tr>
<tr>
<td valign="top" width="200" height="497" id="kabelon">kabelon</td>
<td valign="top" width="606" height="497" id="content">content</td>
<td valign="top" width="150" height="497" bgcolor="#FFFFFF">
<p><p><div id="alternativtIndhold2">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" </div>
</a>
<p><div id="alternativtIndhold1">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" </div>
</a>
<tr>
<td width="956" height="5" align="center" valign="bottom" bgcolor="#319a63" colspan="3">
<p align="center"><font size="2" font face="Verdana" color="#FFFFFF">Test site</font></td>
</tr>
</table>
</div>
</body>
<script type="text/javascript">
var aryimages = new Array('2.jpg');
document.getElementsByName("someimage").src = aryimages[Math.floor(Math.random() * aryimages.length)];
</script>
</HTML>
Jeg håber der er nogle java kyndige der kan hjælpe mig