Index: lams_tool_lamc/web/authoring/editQuestionBox.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/authoring/editQuestionBox.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_lamc/web/authoring/editQuestionBox.jsp 20 Oct 2006 09:25:42 -0000 1.6 +++ lams_tool_lamc/web/authoring/editQuestionBox.jsp 31 Oct 2006 23:58:18 -0000 1.7 @@ -68,7 +68,34 @@ document.McAuthoringForm.questionIndex.value=questionIndexValue; submitMethod("removeCandidate"); } - + + 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); + } + } + @@ -78,6 +105,7 @@ styleId="newQuestionForm" enctype="multipart/form-data" method="POST"> + @@ -131,7 +159,7 @@
-