// JavaScript Document

function readval(nomec, tipoc){
	var valore,i
	var d=eval("document.autov."+nomec);
	if (tipoc=="radio"){
		for (i=0;i<d.length;i++){
			if (d[i].checked==true){
			valore=d[i].value;
			}
		}
	}
	if (tipoc=="text"){
		valore=d.value;
	}
	if (tipoc=="select"){
		for ( i=0; i<d.length ; i++){
			if (d.options[i].selected == true ) {
				valore=d.options[i].value;
			}
		}
		valore=d.value;
	}
	return valore;

}