var points=0; var curQuestion=0; var resultsPointsMin = n

var points=0; var curQuestion=0; var resultsPointsMin = new Array(10, 13, 0); var resultsPointsMax = new Array(12, 20, 0); function NextQuestion(obj){ var next = 1 var res = 0; if (obj) { for(i = 0; i < obj.points.length; i++) { if(obj.points[i].checked) { points += parseInt(obj.points[i].value); next = parseInt(obj.next[i].value); if (obj.res[i]) res = obj.res[i].value; } } } window.parent.document.getElementById(\'d\'+curQuestion).style.display="none"; if (next!=0) { window.parent.document.getElementById(\'d\'+next).style.display=""; curQuestion=next; } else { if (res) window.parent.document.getElementById(\'d\'+res).style.display=""; for(i=0;i=resultsPointsMin[i]) && (points