home *** CD-ROM | disk | FTP | other *** search
- var modTitle = "Evaluation Title";
- var copyright = "⌐ 2003 My Organization Name";
- var useSCORM = true;
- var shuffleEvalQuestions = true;
- var intNumQuestions = 1;
-
- EvalID = arrQuestions.length;
- thisID = EvalID+1;
- arrQuestions[EvalID] = new objEvalQuestion(thisID, "radio");
- arrQuestions[EvalID].evalQuestion = "Enter a question here.";
- thisOpt = arrQuestions[EvalID].evalDistractors.length;
- arrQuestions[EvalID].addDistractor(true);
- arrQuestions[EvalID].evalDistractors[thisOpt].txtValue = "1";
- arrQuestions[EvalID].evalDistractors[thisOpt].txtDisplay = "True";
- thisOpt = arrQuestions[EvalID].evalDistractors.length;
- arrQuestions[EvalID].addDistractor(false);
- arrQuestions[EvalID].evalDistractors[thisOpt].txtValue = "2";
- arrQuestions[EvalID].evalDistractors[thisOpt].txtDisplay = "False";
- arrQuestions[EvalID].evalRationale = "What should it say when the learner answers this question?";
-
- if(intNumQuestions > arrQuestions.length)
- intNumQuestions = arrQuestions.length;
-
- //Used to randomize order of questions
- if(shuffleEvalQuestions)
- arrQuestions = shuffle(arrQuestions);