Index: lams_tool_lamc/web/monitoring/newQuestionBox.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/monitoring/Attic/newQuestionBox.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_lamc/web/monitoring/newQuestionBox.jsp 18 Oct 2006 03:12:46 -0000 1.5 +++ lams_tool_lamc/web/monitoring/newQuestionBox.jsp 31 Oct 2006 23:58:18 -0000 1.6 @@ -49,9 +49,34 @@ document.McMonitoringForm.candidateIndex.value=candidateIndexValue; submitMethod("removeAddedCandidate"); } + + function validateDuplicateCorrectAnswers() + { + var correctCount = 0; + for(i = 1; i < 51; i++) + { + var currentId="select".concat(i) + var currentField=document.getElementById(currentId); + + if (currentField != null) + { + if ((typeof(currentField) != 'undefined') && (typeof(currentField) != null)) + { + if (currentField.value == 'Correct') + { + correctCount = correctCount + 1; + } + } + } + } + + if (correctCount > 1) + { + var msg = ""; + alert(msg); + } + } - - @@ -61,6 +86,7 @@ + @@ -143,7 +169,7 @@
                     - +