// Javascript document function checkValidationAnswers(par1, par2, par3, par4, par5) { var thisAnsw1 = localStorage.getItem(par1); var thisAnsw2 = localStorage.getItem(par2); var thisAnsw3 = localStorage.getItem(par3); var thisAnsw4 = localStorage.getItem(par4); var thisAnsw5 = localStorage.getItem(par5); if (thisAnsw1 == 5 || thisAnsw2 == 5 || thisAnsw3 == 5 || thisAnsw4 == 5 || thisAnsw5 == 5 || thisAnsw1 == 4 || thisAnsw2 == 4 || thisAnsw3 == 4 || thisAnsw4 == 4 || thisAnsw5 == 4) { var thisText = "You have answered having some problems with at least one of the previous questions. You should probably review some of the most difficult notions before going any further."; } else { var thisText = "Excellent! Let's proceed to the next step."; } document.getElementById("ValidationFeedback").innerHTML = thisText; }