在data()中不根据r1.value进行判断。修改如下:
<SCRIPT LANGUAGE="Javascript">
function data()
{ if(document.frmEdit.R1(0).checked)
  {alert("用户名不能为空!");
  document.frmEdit.action="operator_add.jsp";}
  
  else if(document.frmEdit.R1(1).checked)
  document.frmEdit.action="operator_delete.jsp";
  
  else if(document.frmEdit.R1(2).checked)
  document.frmEdit.action="operator_modify.jsp";
}
</SCRIPT>
其余不变。测试通过dwmx+winxp