ok risolto....
è cosi

var tipo = document.modulo.tipo.value;

solo che non avevo messo i value...