单选框就加个 name 取值唯一
[CODE]<script language="JavaScript">
function Change(){
if (document.myform.P1.checked) {document.myform.PW1.disabled=false;}else{document.myform.PW1.disabled=true;}
if (document.myform.P2.checked) {document.myform.PW2.disabled=false;}else{document.myform.PW2.disabled=true;}
if (document.myform.P3.checked) {document.myform.PW3.disabled=false;}else{document.myform.PW3.disabled=true;}
if (document.myform.P4.checked) {document.myform.PW4.disabled=false;}else{document.myform.PW4.disabled=true;}
if (document.myform.P5.checked) {document.myform.PW5.disabled=false;}else{document.myform.PW5.disabled=true;}
if (document.myform.P6.checked) {document.myform.PW6.disabled=false;}else{document.myform.PW6.disabled=true;}
if (document.myform.P7.checked) {document.myform.PW7.disabled=false;}else{document.myform.PW7.disabled=true;}
}
</script>
<form name="myform">
<input type="text" name="PW1" value="abcdefghij" disabled /><input type="radio" name="P" id="P1" onclick="Change();" /><br />
<input type="text" name="PW2" value="9876543210" disabled /><input type="radio" name="P" id="P2" onclick="Change();" /><br />
<input type="text" name="PW3" value="hkjhlkhhjl" disabled /><input type="radio" name="P" id="P3" onclick="Change();" /><br />
<input type="text" name="PW4" value="safdsfasdf" disabled /><input type="radio" name="P" id="P4" onclick="Change();" /><br />
<input type="text" name="PW5" value="3534545545" disabled /><input type="radio" name="P" id="P5" onclick="Change();" /><br />
<input type="text" name="PW6" value="jljkllkyui" disabled /><input type="radio" name="P" id="P6" onclick="Change();" /><br />
<input type="text" name="PW7" value="0123456789" disabled /><input type="radio" name="P" id="P7" onclick="Change();" /><br />
</form>[/CODE]