Salve, vi invito a guardate queste righe sotto

<tr>
<td><input type="text" name="pz1" size="5" onChange="document.fattura.prezz1.value = document.fattura.pz1.value * document.fattura.pre1.value;"></td>
<td><input type="text" name="pre1" size="7" onChange="document.fattura.prezz1.value = document.fattura.pz1.value * document.fattura.pre1.value;"></td>
<td><input type="text" name="prezz1" size="7"></td>
</tr>
<tr>
<td><input type="text" name="pz2" size="5" onChange="document.fattura.prezz2.value = document.fattura.pz2.value * document.fattura.pre2.value;"></td>
<td><input type="text" name="pre2" size="7" onChange="document.fattura.prezz2.value = document.fattura.pz2.value * document.fattura.pre2.value;"></td>
<td><input type="text" name="prezz2" size="7"></td>
</tr>

C'è qualche modo per far si che una casellina sotto (questa

<input type="text" name="prezTOT" size="7">
Calcoli il totale delle caselline prezz1 e prezz2? Ricordo che qui di calline prezz ce ne sono solo due, ma realmente ne inserirò 30, pertanto esiste un modo per far fare il calcolo solo alla casellina prezzTOT??


Grazie

P.S.: Mi sapete indicare se c'è qualche sito con tutte le funzioni matematiche e se le formule EXCEL hanno qualcosa a che far ecol java?