<!doctype html>
<html>
 <script language="
javascript">
<!--
function change(radio_oj,avalue){//传入一个对象
   for(var i=0;i<radio_oj.length;i++) {//循环
        if(radio_oj[i].value==avalue){  //比较值
            radio_oj[i].
checked=true; //修改选中状态
            
break; //停止循环
        }
   }
}
   -->
</script>
</head>
<body>
<form method="post" action="" name="myform">
<input type="radio" name="test" value="1" checked>第一
<input type="radio" name="test" value="2">第二
<input type="radio" name="test" value="3">第三
<br>
</form>
<input type="button" value="第一" onclick="change(document.myform.test,'1')"> 
<input type="button" value="第二" onclick="change(document.myform.test,'2')"> 
<input type="button" value="第三" onclick="change(document.myform.test,'3')">
</body>
</html>