Qualcosa del genere:
codice:
function disattiva(id){
  document.getElementById("nome_"+id).disabled=true;
}