codice:
function NextLevel () {
var utente = (name=="")?'Ciao Ospite ' : 'Ciao '+name
var htm = "<span style='color:#BCF2ED'>"+utente+", il tuo punteggio è di<span style='color:white'> " + score + "</span> su <span style='color: white'>" + (ans.length-1) +"</span>" +
"

";
htm += " <span style='color:white'>Resoconto risposte (tra parentesi le risposte esatte del quiz)</span>

";
for ( var j = 1; j < stat.length; j++) {
htm += "<span style='color:white'>Risposta " + j +":</span> <span style='color:"+ ( stat[ j ] ? "#BCF2ED'>esatta ("+ans[j]+")" : "#ff0000'>errata data è "+document.getElementById(j).value+" <span style='color:#BCF2ED'>la risposta corretta era ("+ans[j]+")</span>")+"</span>

";
}
htm += "vedi risposte";
document.getElementById( 'risultato' ).innerHTML = htm;
}
Sostituisci tutta la funzione Ciao e benvenuto.