codice:
<script>
function attdis() {
	r = document.form1.anticipo_hotel[1];
	a = document.getElementById("anticipo");
	a.readOnly = r.checked;
	a.style.backgroundColor = (r.checked) ? "#CCCCCC" : "#FFFFFF" ;
}
</script>



<form id="form1" name="form1" method="post" action="">



<input type="radio" name="anticipo_hotel" value="0" onclick="attdis()">
</p>



<input type="radio" name="anticipo_hotel" value="1" onclick="attdis()">

</p>



<input type="radio" name="anticipo_hotel" value="2" onclick="attdis()">




</p>



<input name="anticipo" id="anticipo" type="text" />
</p>
</form>
ciao