'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function StartUp(){ //Reduce array if required if (QsToShow < I.length){ ReduceItems(); } //Shuffle stuff if required if (ShuffleQs == true){ I = Shuffle(I); } if (ShuffleAs == true){ for (var i=0; i'; I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='Marc Garneau'; I[1][1][0][1]='OUPS!!!'; I[1][1][0][2] = 0; I[1][1][1] = new Array(); I[1][1][1][0]='Neil Armstrong'; I[1][1][1][1]='Bravo!!!'; I[1][1][1][2] = 1; I[1][1][2] = new Array(); I[1][1][2][0]='Mendeleiv'; I[1][1][2][1]='OUPS!!!'; I[1][1][2][2] = 0; I[1][1][3] = new Array(); I[1][1][3][0]='Mark Shuttleswork'; I[1][1][3][1]='OUPS!!!'; I[1][1][3][2] = 0; I[1][1][4] = new Array(); I[1][1][4][0]='Julie Pailette'; I[1][1][4][1]='OUPS!!!'; I[1][1][4][2] = 0; I[1][2] = 0; I[2] = new Array(); I[2][0]='Comment se nomme ces fusées?apollosoyuz.gif'; I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='Apollo et suyuz'; I[2][1][0][1]='oups!'; I[2][1][0][2] = 0; I[2][1][1] = new Array(); I[2][1][1][0]='Sarturn5 et Arianne'; I[2][1][1][1]='oups!'; I[2][1][1][2] = 0; I[2][1][2] = new Array(); I[2][1][2][0]='Arianne et Anick'; I[2][1][2][1]='oups!'; I[2][1][2][2] = 0; I[2][1][3] = new Array(); I[2][1][3][0]='Apollo13 et Viking'; I[2][1][3][1]='BRAVO!!'; I[2][1][3][2] = 1; I[2][1][4] = new Array(); I[2][1][4][0]='Viking et Saturn10'; I[2][1][4][1]='oups!'; I[2][1][4][2] = 0; I[2][2] = 0; I[3] = new Array(); I[3][0]='Comment se nomme cette fusée?viking.jpg'; I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='Anick'; I[3][1][0][1]='oups!'; I[3][1][0][2] = 0; I[3][1][1] = new Array(); I[3][1][1][0]='Apollo'; I[3][1][1][1]='oups!'; I[3][1][1][2] = 0; I[3][1][2] = new Array(); I[3][1][2][0]='Suyuz'; I[3][1][2][1]='oups!'; I[3][1][2][2] = 0; I[3][1][3] = new Array(); I[3][1][3][0]='Saturn5'; I[3][1][3][1]='oups!'; I[3][1][3][2] = 0; I[3][1][4] = new Array(); I[3][1][4][0]='Viking'; I[3][1][4][1]='BRAVO!!!'; I[3][1][4][2] = 1; I[3][2] = 0; I[4] = new Array(); I[4][0]='Comment se nomme cette fusée?saturn5.jpg'; I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='Saturn5'; I[4][1][0][1]='BRAVO!!'; I[4][1][0][2] = 1; I[4][1][1] = new Array(); I[4][1][1][0]='Apollo'; I[4][1][1][1]='oups!'; I[4][1][1][2] = 0; I[4][1][2] = new Array(); I[4][1][2][0]='Arianne'; I[4][1][2][1]='oups!'; I[4][1][2][2] = 0; I[4][1][3] = new Array(); I[4][1][3][0]='Saturn10'; I[4][1][3][1]='oups!'; I[4][1][3][2] = 0; I[4][1][4] = new Array(); I[4][1][4][0]='Suyuz'; I[4][1][4][1]='oups!'; I[4][1][4][2] = 0; I[4][2] = 0; I[5] = new Array(); I[5][0]='Comment se nomme cette fusée?apollo13.jpg'; I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='Apollo13'; I[5][1][0][1]='FÉLICITATION!!!'; I[5][1][0][2] = 1; I[5][1][1] = new Array(); I[5][1][1][0]='Arianne'; I[5][1][1][1]='oups!'; I[5][1][1][2] = 0; I[5][1][2] = new Array(); I[5][1][2][0]='Saturn5'; I[5][1][2][1]='oups!'; I[5][1][2][2] = 0; I[5][1][3] = new Array(); I[5][1][3][0]='Anick'; I[5][1][3][1]='oups!'; I[5][1][3][2] = 0; I[5][1][4] = new Array(); I[5][1][4][0]='Suyuz'; I[5][1][4][1]='oups!'; I[5][1][4][2] = 0; I[5][2] = 0; I[6] = new Array(); I[6][0]='Ce drapeau représente quel pays?usa..gif'; I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='Canada
'; I[6][1][0][1]='oups!'; I[6][1][0][2] = 0; I[6][1][1] = new Array(); I[6][1][1][0]='Japon'; I[6][1][1][1]='oups!'; I[6][1][1][2] = 0; I[6][1][2] = new Array(); I[6][1][2][0]='États-Unis'; I[6][1][2][1]='BRAVO!!!'; I[6][1][2][2] = 1; I[6][1][3] = new Array(); I[6][1][3][0]='Chine'; I[6][1][3][1]='oups!'; I[6][1][3][2] = 0; I[6][1][4] = new Array(); I[6][1][4][0]='Russie'; I[6][1][4][1]='oups!'; I[6][1][4][2] = 0; I[6][2] = 0; I[7] = new Array(); I[7][0]='Comment se nomme cette fusée?x15.jpg'; I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='Apollo13'; I[7][1][0][1]='oups!'; I[7][1][0][2] = 0; I[7][1][1] = new Array(); I[7][1][1][0]='Anick'; I[7][1][1][1]='oups!'; I[7][1][1][2] = 0; I[7][1][2] = new Array(); I[7][1][2][0]='Suyuz'; I[7][1][2][1]='oups!'; I[7][1][2][2] = 0; I[7][1][3] = new Array(); I[7][1][3][0]='x15'; I[7][1][3][1]='BRAVO!!!'; I[7][1][3][2] = 1; I[7][1][4] = new Array(); I[7][1][4][0]='Saturn5'; I[7][1][4][1]='oups!'; I[7][1][4][2] = 0; I[7][2] = 0; I[8] = new Array(); I[8][0]='Comment se nomme cette fusée?skylab.jpg'; I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='Saturn5'; I[8][1][0][1]='oups!'; I[8][1][0][2] = 0; I[8][1][1] = new Array(); I[8][1][1][0]='Apollo'; I[8][1][1][1]='oups!'; I[8][1][1][2] = 0; I[8][1][2] = new Array(); I[8][1][2][0]='Skylab'; I[8][1][2][1]='BRAVO!!!'; I[8][1][2][2] = 1; I[8][1][3] = new Array(); I[8][1][3][0]='Mariner'; I[8][1][3][1]='oups!'; I[8][1][3][2] = 0; I[8][1][4] = new Array(); I[8][1][4][0]='Suyuz'; I[8][1][4][1]='oups!'; I[8][1][4][2] = 0; I[8][2] = 0; I[9] = new Array(); I[9][0]='Comment se nomme cette fusée?endeavour.jpg'; I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='endeavour'; I[9][1][0][1]='BRAVO!!!'; I[9][1][0][2] = 1; I[9][1][1] = new Array(); I[9][1][1][0]='Saturn5'; I[9][1][1][1]='oups!'; I[9][1][1][2] = 0; I[9][1][2] = new Array(); I[9][1][2][0]='Apollo13'; I[9][1][2][1]='oups!'; I[9][1][2][2] = 0; I[9][1][3] = new Array(); I[9][1][3][0]='Suyuz'; I[9][1][3][1]='oups!'; I[9][1][3][2] = 0; I[9][1][4] = new Array(); I[9][1][4][0]='Skylab'; I[9][1][4][1]='oups!'; I[9][1][4][2] = 0; I[9][2] = 0; Status = new Array(); function CreateStatusArrays(){ for (var x=0; x= Status[QNum][1].length-1){ Status[QNum][0] = 1; for (var i=0; i-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } function ChangeQ(ChangeBy){ var NewNum = CurrQNum + ChangeBy; if ((NewNum >= 0)&&(NewNum '; OutString += '
'; OutString += TitleCode; OutString += ''; OutString += NavBar; OutString += '
'; OutString += ''; OutString += StuffToDisplay; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame BottomFrame.document.clear(); BottomFrame.document.open(); BottomFrame.document.write(OutString); BottomFrame.document.close(); } function ShowAllQs(){ var Output = ''; for (var i=0; i
'; } Output = Output + BuildQuestion(I.length-1); Output = TableOpener + Output + TableCloser; DisplayExercise(Output); } function ShowQuestion(QNum){ //First, create the Q number readout at the top var Readout = (QNum+1) + '/' + I.length; while (Readout.length < 7){ Readout = ' ' + Readout + ' '; } Readout = QButtonsOpener + Readout + QButtonsCloser; var Output = BuildQuestion(QNum); Output = TableOpener + Output + TableCloser; DisplayExercise(Readout + Output); //Mark the answers already done for (i=0; i=0; i--){ //Find any incorrect choices var b = eval('BottomFrame.document.QForm.A_' + QNum + '_' + i); if (b != null){ //if it's wrong, count it if (b.checked == true){ Status[QNum][1][i] = 'C'; } else{ Status[QNum][1][i] = 'U'; } if (((b.checked == true) && (b.value == "0"))||((b.checked == false)&&(b.value == "1"))){ TotWrong++; } } } if (TotWrong == 0){ Output = DefaultRight; } else{ Output = DefaultWrong + '
' + (TotAns-TotWrong) + '/' + TotAns; } //If you haven't tried the question before if (Status[QNum][0] == 0){ if (TotWrong > 0){ Status[QNum][2]++; } if (TotWrong == 0){ Status[QNum][0] = 1; //Calculate the score for this question as a floating-point fraction of 1 Status[QNum][3] = ((Status[QNum][1].length - Status[QNum][2]) - 1) / (Status[QNum][1].length - 1); //If less than zero, set to zero if (Status[QNum][3] < 0){Status[QNum][3] = 0;} } } //Check whether the quiz is finished var Finished = true; for (var i=0; i' + YourScoreIs + ' ' + Score + '%.'; } if (Finished == true){ EraseFeedback = false; var CFT = 0; for (i=0; i 0){ WriteFeedback(Output); } } function CheckAnswer(QNum, ANum){ var Output = I[QNum][1][ANum][1]; if (Output==''){ if (I[QNum][1][ANum][2] == 1){ Output = DefaultRight; } else{ Output = DefaultWrong; } } //If it's not been previously answered correctly if (Status[QNum][0] == 0){ //If it's a correct answer if (I[QNum][1][ANum][2] == 1){ Status[QNum][0] = 1;//Mark the Q as done Status[QNum][1][ANum] = 'R'; MarkAnswer(QNum, ANum, true); //Calculate the score for this question as a floating-point fraction of 1 var PossibleWrongs = 0; for (var i=0; i' + YourScoreIs + ' ' + Score + '%.'; } if (Finished == true){ EraseFeedback = false; var CFT = 0; for (i=0; i 0){ WriteFeedback(Output); } } function CalculateScore(){ var TriedQs = 0; var TotalScore = 0; for (var i=0; i 0)||(Status[i][3] == 1)){ TriedQs++; TotalScore += Status[i][3]; } } if (TriedQs == 0){ Score = 0; } else{ Score = (Math.floor(100 * (TotalScore/TriedQs))); } } function MarkAnswer(QNum, ANum, Right){ var Mark = CorrectIndicator; if (Right == false){Mark = IncorrectIndicator;} if (eval('BottomFrame.document.QForm.FB_' + QNum + '_' + ANum) != null){ eval('BottomFrame.document.QForm.FB_' + QNum + '_' + ANum).value = Mark; } } function CheckCheckbox(QNum, ANum){ if (eval('BottomFrame.document.QForm.A_' + QNum + '_' + ANum) != null){ eval('BottomFrame.document.QForm.A_' + QNum + '_' + ANum).checked = true; } } function Blank(){ return '
©Half-Baked Software. Loading...
Hosted by www.Geocities.ws

'; } //--> //]]>
Hosted by www.Geocities.ws

1