'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function BuildSelector(){ DropDownList = ''; } function StartUp(){ if ((is.mac)&&(is.ns)){ CorrectIndicator = unescape(macrightchar); IncorrectIndicator = unescape(macwrongchar); } else{ CorrectIndicator = unescape(winrightchar); IncorrectIndicator = unescape(winwrongchar); } CorrectIndicator = '' + CorrectIndicator + ''; IncorrectIndicator = '' + IncorrectIndicator + ''; //Write the top frame WriteFeedback(Instructions); //Create the right-item/distractor array, and shuffle it var DuplicateItem = false; for (var i=0; i 0){ TotalUnfixedLeftItems++; } DuplicateItem = false; //and it's not already in the array for (var j=0; j 0){ TempRow = IRow; TempRow = ReplaceStuff('[strLeftItem]', I[i][0], TempRow); //if not fixed and not yet answered correctly if ((I[i][2] < 1)&&(Status[i][0] < 1)){ TempRow = ReplaceStuff('[strRightItem]', DropDownList, TempRow); } else{ TempRow = ReplaceStuff('[strRightItem]', I[i][1], TempRow); } //if it's not fixed, and it's been attempted, mark it appropriately if ((I[i][2] < 1)&&(Status[i][1] > 0)){ if (Status[i][0] < 1){ TempRow = ReplaceStuff('[Mark]', IncorrectIndicator, TempRow); } else{ TempRow = ReplaceStuff('[Mark]', CorrectIndicator, TempRow); } } else{ TempRow = ReplaceStuff('[Mark]', '', TempRow); } TempRow = ReplaceStuff('[INum]', i, TempRow); Exercise += TempRow; } } //Add the check button Exercise += CheckButton; //Make it into a table Exercise = TableOpener + Exercise + TableCloser; } I = new Array(); I[0] = new Array(); I[0][0] = 'running.gifa running race of 200 meters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[0][1] = 'Stade race'; I[0][2] = 0; I[1] = new Array(); I[1][0] = 'a running race of 400 meters or two stades
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[1][1] = 'Diaulos'; I[1][2] = 0; I[2] = new Array(); I[2][0] = 'a running race of 1,400 to 1,800 meters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[2][1] = 'Dolichos'; I[2][2] = 0; I[3] = new Array(); I[3][0] = 'a running race of 400 to 800 meters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[3][1] = 'Hoplitodromos'; I[3][2] = 0; I[4] = new Array(); I[4][0] = 'a combination of five events: discus, javelin, long jump, running, and wrestling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[4][1] = 'Pentathlon'; I[4][2] = 0; I[5] = new Array(); I[5][0] = 'wrestling.gifevent involving a combination of wrestling and boxing though no himantes, boxing gloves, were used
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[5][1] = 'Pankration'; I[5][2] = 0; I[6] = new Array(); I[6][0] = 'a four-horsed chariot race for twelve laps OR four foals pulling a chariot for eight laps
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[6][1] = 'Tethrippon'; I[6][2] = 0; I[7] = new Array(); I[7][0] = 'race with two mules pulling a chariot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[7][1] = 'Apene'; I[7][2] = 0; I[8] = new Array(); I[8][0] = 'chariot2.gifa two-horse chariot race for eight laps OR two foals pulling a chariot for three laps
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[8][1] = 'Synoris'; I[8][2] = 0; I[9] = new Array(); I[9][0] = 'winners had the honor of announcing the names of victors and sounding the start of all events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[9][1] = 'Trumpeters and Heralds'; I[9][2] = 0; I[10] = new Array(); I[10][0] = 'pankration.gifupright wrestling - opponents tried to throw the other to the ground three times during a match, and a match did not end until this happened.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[10][1] = 'Orthia Pale'; I[10][2] = 0; I[11] = new Array(); I[11][0] = 'ground wrestling - opponents fought until one acknowledged defeat by holding up his right hand with his index finger extended.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[11][1] = 'Kato Pale'; I[11][2] = 0; I[12] = new Array(); I[12][0] = 'jumped into a pit approximately 50 feet long and landed with their feet together.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[12][1] = 'Jumping'; I[12][2] = 0; I[13] = new Array(); I[13][0] = 'discus.gifthrew stone or metal disc for distance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[13][1] = 'Discus'; I[13][2] = 0; I[14] = new Array(); I[14][0] = 'javelin.gifthrew the spear at a target while on horseback OR threw the spear for distance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'; I[14][1] = 'Javelin'; I[14][2] = 0; Status = new Array(); RItems = new Array(); function CreateStatusArrays(){ for (var x=0; x-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 EscapeDoubleQuotes(InString){ var Result = ''; for (var i=0; i'; 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 GetAnswer(INum){ var Result = -1; var s = eval('BottomFrame.document.QForm.sel' + INum); if (s != null){ Result = s.selectedIndex - 1; } return Result; } function CheckAnswers(){ var AllDone = true; TotCorrectChoices = 0; //for each item not fixed or a distractor for (var i=0; i 0)){ //if it hasn't been answered correctly yet if (Status[i][0] < 1){ //Add one to the number of tries for this item Status[i][1]++; //Get the answer if (GetAnswer(i) == I[i][3]){ //The answer is correct, so set the status flag Status[i][0] = 1; } //else the answer is wrong, so remember that else{ AllDone = false; } } //If it's correct, count it if (Status[i][0] == 1){ TotCorrectChoices++; } } } //Calculate the score var Score = Math.floor(((TotCorrectChoices-Penalties)/TotalUnfixedLeftItems)*100); var Feedback = ''; //Build the feedback if (AllDone == true){ Feedback = CorrectResponse + '
' + YourScoreIs + Score + '%.'; } else{ Feedback = IncorrectResponse + '
' + YourScoreIs + Score + '%.'; //Penalty for incorrect check Penalties++; } //Show the feedback and rebuild the exercise WriteFeedback(Feedback); BuildExercise(); DisplayExercise(Exercise); } function Blank(){ return '©Half-Baked Software. Loading...'; } //--> //]]> -->

Go to a printable version of this page. -->