'; 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','A','D','M','I','U','M','','','','','','B','','','','','E','',''); L[1] = new Array('','','','G','','','','R','','','','','','','I','','','','','V','',''); L[2] = new Array('','','','R','A','D','I','A','T','I','O','N','','','O','','','','','A','',''); L[3] = new Array('','','','I','','','','N','','','','','','','D','','','','','P','',''); L[4] = new Array('','','','C','','','','I','','','','','','','I','','R','A','D','O','N',''); L[5] = new Array('','','','U','','','','U','','','','','','','V','','','','','R','',''); L[6] = new Array('','','','L','','','','M','','','','','','','E','','','','','A','',''); L[7] = new Array('','','','T','','','','','','','','','','','R','','S','','','T','',''); L[8] = new Array('','','','U','','','E','','','','','A','I','R','S','P','A','R','G','I','N','G'); L[9] = new Array('M','I','C','R','O','O','R','G','A','N','I','S','M','','I','','R','','','O','',''); L[10] = new Array('','','','E','','','O','','','','','','P','','T','','A','','','N','',''); L[11] = new Array('','','','','','','S','','','','','','A','','Y','','','','','','',''); L[12] = new Array('','','','','','','I','','','','','','C','','','','','','','','',''); L[13] = new Array('','','','','','','O','','','','','','T','','','','','','','','',''); L[14] = new Array('','','','','','','N','','','','','','S','','','','','','','','',''); C = new Array(); C[0] = new Array(0,0,1,2,0,0,0,3,0,0,0,0,0,0,4,0,0,0,0,5,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,6,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,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,7,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,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,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,0,9,0,0,0,0,10,11,0,0,0,0,0,0,0,0,0); C[9] = new Array(12,0,0,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,0,0,0); C[11] = new Array(0,0,0,0,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,0,0,0,0,0,0,0,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,0,0,0); C[14] = new Array(0,0,0,0,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('','','','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='A heavy metal that accumulates in the environment (Cd)'; A[6]='Transmission of energy through space or any medium. Also known as radiant energy.'; A[7]='A colorless naturally occurring, radioactive, inert gas formed by radioactive decay of radium atoms in soil or rocks'; A[10]='Injecting air or oxygen into an aquifer to strip or flush volatile contaminants as air bubbles up through the ground water and is captured by a vapor extraction system'; A[12]='Tiny and microscopic organism'; D = new Array(); D[2]='Activity of farming for domesticated vegetation and animals. '; D[3]='Heavy silvery white radioactive metal which is a combustible solid'; D[4]='Diversity of plant and animal lifes'; D[5]='Gradual transition of liquid phase to vapor or gas'; D[8]='Initials for Superfund Amendments and Reauthorization Act'; D[9]='The wearing away of land surface by wind or water, intensified by land-clearing practices related to farming, residential or industrial development, road building, or logging'; D[10]='Initials of a metalloid and gray brittle non-metal flake'; D[11]='Distortion of food web, contamination of food, acid rain are ... of pollution.'; 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...'; } //--> //]]> -->