function funz(nomeText, nomeSelect ){
document.nomeForm.elements[nomeText].value =
document.nomeForm.elements[nomeSelect].options[document.nomeForm.elements[nomeSelect].selectedIndex].value;
}