objHTTP.onreadystatechange=aggiungi() {

questa riga ha un errore di sintassi, forse volevi scrivere

objHTTP.onreadystatechange= function() {