var totalQuestions=10; var points=0; var curQuestion=0; var resultsPointsMin = new Array(1, 21, 41, 61, 81, 0); var resultsPointsMax = new Array(20, 40, 60, 80, 100, 0); function NextQuestion(obj){ if (obj) { for(i = 0; i < obj.points.length; i++) { if(obj.points[i].checked) points += parseInt(obj.points[i].value); } } window.parent.document.getElementById('d'+curQuestion).style.display="none"; if (curQuestion