something wrong with this javascript. help. thanks
-------
<HTML>
<HEAD>
<TITLE>DDC Buttons</TITLE>
<SCRIPT>
function ButtonPress(buttonnumber) {
document.layers.cust.document.write('data'+buttonnumber);
}
</SCRIPT>
</HEAD>
<BODY>
<table>
<tr><td><input type="radio" name="test" onclick="ButtonPress(1);">Button 1
<BUTTON onclick="ButtonPress(2);">Button 2</BUTTON>
<BUTTON onclick="ButtonPress(3);">Button 3</BUTTON>
<input type="radio" name="test" onclick="ButtonPress(4);">Button 4</td></tr>
<tr><td><span id=cust style="position:relative"></span>
</td></tr>
</table>
</BODY>
</HTML> [sig][/sig]
-------
<HTML>
<HEAD>
<TITLE>DDC Buttons</TITLE>
<SCRIPT>
function ButtonPress(buttonnumber) {
document.layers.cust.document.write('data'+buttonnumber);
}
</SCRIPT>
</HEAD>
<BODY>
<table>
<tr><td><input type="radio" name="test" onclick="ButtonPress(1);">Button 1
<BUTTON onclick="ButtonPress(2);">Button 2</BUTTON>
<BUTTON onclick="ButtonPress(3);">Button 3</BUTTON>
<input type="radio" name="test" onclick="ButtonPress(4);">Button 4</td></tr>
<tr><td><span id=cust style="position:relative"></span>
</td></tr>
</table>
</BODY>
</HTML> [sig][/sig]