'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; 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 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('S','P','E','C','T','R','O','M','E','T','E','R','','R','','',''); L[1] = new Array('','','X','','','','','','','','','','','O','','C',''); L[2] = new Array('D','A','T','A','H','A','N','D','L','I','N','G','','C','','O',''); L[3] = new Array('','','E','','','','','','','','','','','K','','L',''); L[4] = new Array('','','R','','','','','','','','','','','E','','U',''); L[5] = new Array('L','A','N','D','I','N','G','S','U','B','S','Y','S','T','E','M',''); L[6] = new Array('','','A','','','','','','','','','','','B','','B',''); L[7] = new Array('','','L','','','','','R','','','','','','O','','I',''); L[8] = new Array('','','F','','','','','E','','','','','','O','','A',''); L[9] = new Array('','','U','','','','','T','','','','','','S','','',''); L[10] = new Array('','','E','','','','','R','','','','','','T','','',''); L[11] = new Array('','','L','','','','C','O','N','T','I','N','G','E','N','C','Y'); L[12] = new Array('','','T','','','','','F','','','','','','R','','',''); L[13] = new Array('','','A','','O','R','B','I','T','E','R','','','S','','',''); L[14] = new Array('','','N','','','','','R','','','','','','','','',''); L[15] = new Array('','','K','','','','S','E','C','O','N','D','S','T','A','G','E'); C = new Array(); C[0] = new Array(1,0,2,0,0,0,0,0,0,0,0,0,0,3,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0); C[2] = new Array(5,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,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(6,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); C[7] = new Array(0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,0,0,0,0,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); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,10,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('','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='Name the instrument housed in the spacecraft which receives light from a distant source and measures amplitude of the individual wavelengths'; A[5]='The main function of this subsystem is to interpret commands from earth and format data which is to be telemetered'; A[6]='This subsystem is equipped with parachute, drogue, descent engine to guide the spacecraft through controlled landing on the surface of a planet'; A[8]='Name the abort mode, which is adopted when there is a loss of more then one engine or when the system fails'; A[9]='The part of the space shuttle which houses the crew'; A[10]='During this stage main engine shuts down and external tank is separated from the shuttle'; D = new Array(); D[2]='It is the largest part of the space shuttle and provides structural backbone to the entire system. Its main purpose is to carry fuels to provide thrust'; D[3]='They provide most of the thrust to lift off the shuttle from launch pad '; D[4]='The first flight of space shuttle was in 1981 with this space shuttle'; D[7]='Name the process in which the spacecraft spins through 1800 and thrusters fire to reduce the speed of the shuttle by 200 mph'; 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...'; } //--> //]]> -->