Saludos a todos: 
En un formulario tengo que hacer que cuando se selecciona el campo barniz que es un checkbox se deshabiliten dos radiobutton llamados cristal. 
Siguiendo sus instrucciones he hecho el script siguiente:
Cuando el campo barniz está habilitado vale cero
 
<SCRIPT LANGUAGE="javascript">
function deshabilitarradio(valor)
{
if(valor ="0")
{
document.getElementById('cristal').disabled = true;
}
else 
{
document.getElementById('cristal').disabled = false;
}
}
</SCRIPT> 
 
y la llamada la hago así:
 
<input name="barniz" type="checkbox" id="barniz" value="0" onChange="deshabilitarradio(document.getElementByI  d('barniz').options[document.getElementById('barniz').selectedIndex].value)">
 
Saben ustedes por qué no funciona
 
Gracias 
  
 
