¿Te sirve esto?
ejemplo
Código PHP:
<html>
<head>
<script>
function deshabilitar(accion){
for(a=1;a<4;a++){
eval("document.formulario.campo"+a+".disabled="+accion);
}
}
</script>
<style>
input{
font:normal 10px/15px verdana;
border:solid 1px black;
}
body{font:normal 10px/15px verdana;}
</style>
</head>
<body >
<form action="javascript:alert("Enviado!")"
method="post"
name="formulario"
id="formulario">
Campo 1 <input type="text"
name="campo1"><br>
Campo 2 <input type="text"
name="campo2"><br>
Campo 3 <input type="text"
name="campo3"><br>
¿Quiere escribir?
<input style="border:none" type="radio"
name="comprobar"
value="1" onclick="deshabilitar(false)">sí
<input style="border:none" type="radio"
name="comprobar"
value="0" onclick="deshabilitar(true)">no
</form>
</form>
</body>
</html>