ciao, in una pagina ho un elenco di oggetti ai quali assegnati alcuni valori, tipo prezzo, quantità, sconto e totale.

da php stampo tutti i valori e la funzione JS che dovrebbe farmi il calcolo:

Codice PHP:
function aggiornaProposta35(){
 var 
myObj152 document.getElementById('totaleOggetto152').value;
 var 
myObj151 document.getElementById('totaleOggetto151').value;
 var 
myObj150 document.getElementById('totaleOggetto150').value;
 var 
myObj153 document.getElementById('totaleOggetto153').value;
 var 
myObj154 document.getElementById('totaleOggetto154').value;
 var 
totale = (1*1) + ( myObj152 ) + ( myObj151 ) + ( myObj150 ) + ( myObj153 ) + ( myObj154 );
 
 
document.getElementById('totaleSommeProposta35') = totale;

il problema è che sia firefox che ie7 mi danno errore:

invalid assignment left-hand side
aggiornaProposta35()pagine.php... (line 581)
onclick(click clientX=0, clientY=0)pagine-php... (line 1)
[Break on this error] var myObj153 = document.getElementById('totaleOggetto153').value;

eppure il campo di testo totaleOggetto153 è come tutti gli altri -_-

che errore è?!?
e perchè salta fuori al 153 e mi lascia passare il 152, 151 e 150?!?