codice:
function sel()   {

   var AA = document.myform.corretto
   var BB = AA.options[AA.selectedIndex].value;

   if(BB === 'No') { 
   
   document.getElementById('ic').onclick=Function('return true')
   document.getElementById("codice").value = ""; 

}
	else{
		document.getElementById('ic').onclick=Function('return false')
		document.getElementById("codice").value = "-";
	}
   
}