<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function Get(a) {
a=document.getElementsByName(a)
alert(a[0].value)
alert(a[1].value)
alert(a[2].value)
}
</script>
</head>
<body>
<form>
<pre>
<input type=radio name='b' value=1>1
<input type=radio name='b' value=2>2
<input type=radio name='b' value=3>3
<input type=button onclick="Get('b')" value="go">
</pre>
</form>
</body>
</html>