ok risolto....
č cosi

var tipo = document.modulo.tipo.value;

solo che non avevo messo i value...