'; 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 DisplayExercise(){ //Build the output string var OutString = ''; OutString += ''; OutString += ''; OutString += '
'; OutString += TitleCode; OutString += Buttons1; OutString += BuiltExercise; OutString += Buttons2; OutString += BuiltClues; OutString += NavBar; OutString += '
'; 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 BuildClue(ClueNum,x,y,Across){ var OutString = ''; if (Across == true){ if (ClueNum >= A.length){ return ''; } if (A[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j= D.length){ return ''; } if (D[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i 0){ OutString += '
'; } OutString = OutString + 'Down: ' + ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (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; } L = new Array(); L[0] = new Array('','','','','','','','','','','','','','','','','C','',''); L[1] = new Array('','','','','','','','','','','','F','U','E','L','R','O','D',''); L[2] = new Array('','','','','','','','','','','','','','','','','N','',''); L[3] = new Array('','','','','','N','','','','','','','','F','','','T','',''); L[4] = new Array('','','','','','U','R','A','N','I','U','M','','I','','','R','',''); L[5] = new Array('','','','','','C','','','E','','','','','S','','','O','',''); L[6] = new Array('','','','','','L','','','U','','','','','S','','','L','',''); L[7] = new Array('','','','','','E','','','T','','','','','I','','','R','','B'); L[8] = new Array('','','','','','U','','','R','E','A','C','T','O','R','C','O','R','E'); L[9] = new Array('','','','','','S','','','O','','L','','','N','','','D','','T'); L[10] = new Array('','','','','','','','','N','','P','','','','','','','','A'); L[11] = new Array('I','','','','','','','','','','H','','','','','','','','R'); L[12] = new Array('S','','','','','','','P','','','A','T','O','M','','','','','A'); L[13] = new Array('O','','','','','','','R','','','R','','','','','','','','Y'); L[14] = new Array('T','','','','','','C','O','O','L','A','N','T','','','','','',''); L[15] = new Array('O','','','','','','','T','','','Y','','','','','','','',''); L[16] = new Array('P','','','','','','','O','','','','','','','','','','',''); L[17] = new Array('E','L','E','C','T','R','O','N','','','','','','','','','','',''); C = new Array(); C[0] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,3,0,0,0,0,0,0,0,4,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,5,0,0,6,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7); C[8] = new Array(0,0,0,0,0,0,0,0,8,0,9,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,0,11,0,0,12,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); G = new Array(); G[0] = new Array('','','','','','','','','','','','','','','','','','',''); G[1] = new Array('','','','','','','','','','','','','','','','','','',''); G[2] = new Array('','','','','','','','','','','','','','','','','','',''); G[3] = new Array('','','','','','','','','','','','','','','','','','',''); G[4] = new Array('','','','','','','','','','','','','','','','','','',''); G[5] = new Array('','','','','','','','','','','','','','','','','','',''); G[6] = new Array('','','','','','','','','','','','','','','','','','',''); G[7] = new Array('','','','','','','','','','','','','','','','','','',''); G[8] = new Array('','','','','','','','','','','','','','','','','','',''); G[9] = new Array('','','','','','','','','','','','','','','','','','',''); G[10] = new Array('','','','','','','','','','','','','','','','','','',''); G[11] = new Array('','','','','','','','','','','','','','','','','','',''); G[12] = new Array('','','','','','','','','','','','','','','','','','',''); G[13] = new Array('','','','','','','','','','','','','','','','','','',''); G[14] = new Array('','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','',''); A = new Array(); A[2]='This holds the uranium-235 needed for the plant.'; A[5]='A natural radioactive material used in nuclear power plants'; A[8]='The part of the reactor where atoms are split to give off heat.'; A[12]='Something consisting of electrons orbiting a nucleus.'; A[13]='Something that circulates to cool the reactor and turn into steam to spin the turbine'; A[14]='A sub-atomic part of the atom with a negative charge.'; D = new Array(); D[1]='This controls the amount of heat and energy is realeased.'; D[3]='The part of the atom with the protons and neutrons.'; D[4]='When an atom splits.'; D[6]='A sub-atomic part of the atom with no charge.'; D[7]='When a neutron turns into a proton, antineutrino, and electron.'; D[9]='A ray that is made of two neutrons and two protons.'; D[10]='A different form of one element.'; D[11]='A sub-atomic part of the atom with a positive charge.'; function StartUp(){ BuildExercise(); WriteFeedback(Instructions); DisplayExercise(); } function CheckAnswers(){ var AllCorrect = true; var TotLetters = 0; var CorrectLetters = 0; //Check each letter for (var i=0; i'; } Output += YourScoreIs + ' ' + Score + '%.
'; if (AllCorrect == false){ Output += '
' + Incorrect; Penalties++; } BuildExercise(); WriteFeedback(Output); DisplayExercise(); } function DoNothing(){} function Blank(){ return '©Half-Baked Software. Loading...'; } //--> //]]> -->