This code works in IE but not in Netscape. The form elements do not show up. I'm new to javascript and this code I found is from msdn.
I want the textbox to be filled according to which radio button is clicked.

<html>
<HEAD>
<title>hope this works</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JScript">
function CookieGroup()
{
document.getElementsByName("txtOutput").value = window.event.srcElement.value;
}
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFFF">
<form>
<!-- Controls are grouped by giving them the same NAME but unique IDs. -->
Grouped Radio Buttons<BR>
<INPUT TYPE=radio NAME=rdoTest ID=Cookies VALUE="I am the champion"
onclick="CookieGroup()">
Yep<BR>
<INPUT TYPE=radio NAME=rdoTest ID=NoCookies VALUE="better luck next time"
onclick="CookieGroup()">
Maybe<BR>
<INPUT TYPE=radio NAME=rdoTest ID=None VALUE="None" CHECKED
onclick="CookieGroup()">
None<BR>
Value of control on which the onclick event has fired<BR>
<TEXTAREA NAME=txtOutput STYLE="width:250"></TEXTAREA>
</form>
</BODY>
</html>

Thanks!