scusate è stata una svista...
c'era un errore nel codice html!
naturalmente javascript legge anche i campi di tipo hidden

Scusate e grazie ancora