'; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += '
'; var NavBar=''; NavBar+='
'; NavBar+=''; NavBar+=''; NavBar+=''; NavBar+=''; NavBar+='
'; if (is.CRAPBrowser){NavBar=ResolveAllURLs(NavBar);} var TitleCode = ''; TitleCode += '' + ExerciseTitle + '
'; TitleCode += '' + ExerciseSubtitle + '
'; TitleCode += '
'; var GridOpener = ''; var GridRowOpener = ''; var GridRowCloser = ''; var BlankCell = ''; var LetterOnlyCell = ''; var NumLetterCell = ''; var GridCloser = '
 [Letter]'; if (! is.CRAPBrowser){ NumLetterCell += '[ClueNum]'; } else{ NumLetterCell += '[ClueNum]'; } NumLetterCell += ' [Letter]
'; var Buttons = '
'; Buttons += ''; Buttons += ''; Buttons += '
'; var Buttons1 = ReplaceStuff('[Num]', '1', Buttons); var Buttons2 = ReplaceStuff('[Num]', '2', Buttons); var GetAnswerOpener = '
'; var GetAnswer = ' '; GetAnswer += ' '; GetAnswer += ''; var GetAnswerCloser = '
'; function GoBack(){ var BackSkip = history.length - PreviousPage; if (BackSkip > 0){ history.go((BackSkip+1)*-1); } else{ parent.history.back(); } } function BuildExercise(){ var OutString = ''; var Temp = ''; var GridStuff = GridOpener; for (var i=0; i 0){ Temp = NumLetterCell; Temp = ReplaceStuff('[ClueNum]', C[i][j], Temp); //Add location info Temp = ReplaceStuff('[x]', i, Temp); Temp = ReplaceStuff('[y]', j, Temp); } //Otherwise add a blank cell else{ Temp = LetterOnlyCell; } //If the cell is already answered, add the letter from the Guess array if (G[i][j] != ''){ Temp = ReplaceStuff('[Letter]', G[i][j], Temp); } //Otherwise, put in a non-breaking space else{ Temp = ReplaceStuff('[Letter]', ' ', Temp); } GridStuff += Temp; } } GridStuff += GridRowCloser; } GridStuff += GridCloser; //Put the final pieces together OutString = GridStuff; BuiltExercise = OutString; } function WriteFeedback(Feedback) { //Build the output string var OutString = ''; OutString += ''; OutString += ''; 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){ AcrossClues += BuildClue(C[i][j], i, j, true); DownClues += BuildClue(C[i][j], i, j, false); } } } OutString += ''; OutString += CluesAcross + '

' + AcrossClues + '

'; OutString += ''; OutString += CluesDown + '

' + DownClues + '
' OutString += ''; BuiltClues = OutString; } function ShowClue(ClueNum,x,y){ var OutString = ''; var AnsLength = 0; var i; var j; CurrBoxElement = ClueNum; if (A[ClueNum] != null){ OutString = OutString + 'Across: ' + 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 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('M','O','N','I','T','O','R','','','','','O','B','J','E','C','T','O','R','I','E','N','T','E','D','','',''); L[1] = new Array('A','','','','','','O','','','R','','','Y','','','','','','O','','','','','','I','','',''); L[2] = new Array('C','','','I','','','M','E','G','A','B','Y','T','E','','','','','U','','','','','','G','','',''); L[3] = new Array('I','','','N','','','','','','M','','','E','','','C','H','A','T','R','O','O','M','','I','','L',''); L[4] = new Array('N','','','T','','','','','','','','','','','','','','','E','','','','','','T','','O',''); L[5] = new Array('T','','','E','','','','','','','','','','','','I','','','R','','','','A','N','A','L','O','G'); L[6] = new Array('O','P','E','R','A','T','I','N','G','S','Y','S','T','E','M','S','','','','','','','L','','L','','P',''); L[7] = new Array('S','','','N','','','','','U','','','','','','','P','','','','','','','G','','','','',''); L[8] = new Array('H','','','E','','A','','G','I','F','','','','','','S','','','','','','','O','','','','',''); L[9] = new Array('','','','T','','S','','','','','','','','','','','','','','','','','R','','','','',''); L[10] = new Array('','','','','','C','','','','','','','','P','A','S','S','W','O','R','D','','I','','','','',''); L[11] = new Array('','R','','','A','I','','','','','J','A','V','A','','','E','','','','H','','T','','','','',''); L[12] = new Array('','E','','','','I','N','P','U','T','','','','L','','','R','','','','T','','H','','P','','',''); L[13] = new Array('','S','','','','','','','','','','','','M','','','V','','','','M','','M','','I','','',''); L[14] = new Array('','T','','','','','','','','','','','','','','','E','','','','L','I','N','U','X','','',''); L[15] = new Array('D','A','T','A','B','A','S','E','','','','','','','','','R','','','','','','','','E','','',''); L[16] = new Array('','R','','R','','','C','','','','','','','','','','','','H','','','','','','L','','',''); L[17] = new Array('','T','','R','','','A','','U','N','I','X','','','','','','','A','','','','','','','','',''); L[18] = new Array('','','','A','','','N','','S','','','M','','','','','','','R','','','','','I','','','',''); L[19] = new Array('','','','Y','','','N','','B','','','L','O','G','O','','','','D','','S','P','A','M','','','',''); L[20] = new Array('','','','','','','E','','','','','','','U','','','','','D','','C','','O','','','','',''); L[21] = new Array('','','B','I','N','A','R','Y','','','','','Z','I','P','','','','R','','S','','L','','','','',''); L[22] = new Array('C','','','','','','','','','','','','','','','','C','G','I','B','I','N','','','','','',''); L[23] = new Array('O','','','','W','I','N','D','O','W','S','X','P','','','','','','V','','','O','','','','','',''); L[24] = new Array('M','','','','Y','','','O','','','','M','','','','','','','E','','','R','','','','','',''); L[25] = new Array('P','I','','','S','','','S','','','','L','','','','','','','','','','T','','','','','',''); L[26] = new Array('I','','','S','I','T','','','','P','','','','','','','','','','','','O','','','','','',''); L[27] = new Array('L','','','','W','','','','','A','','','','','','','','','S','W','I','N','G','','','','',''); L[28] = new Array('E','','K','E','Y','B','O','A','R','D','','','','','','','','','','','','','','','','','',''); L[29] = new Array('R','','','','G','','','','','','','','','','','','','','','','','','','','','','',''); C = new Array(); C[0] = new Array(1,0,0,0,0,0,2,0,0,0,0,3,4,0,0,0,0,0,5,0,0,0,0,0,6,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,7,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,8,0,0,9,0,0,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,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,11,0); C[4] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,12,0,0,0,0,0,0,13,0,0,0,0,0); C[6] = new Array(14,0,0,0,0,0,0,0,15,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,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,16,0,17,0,0,0,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,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,18,0,0,19,0,0,0,20,0,0,0,0,0,0,0); C[11] = new Array(0,21,0,0,22,0,0,0,0,0,23,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,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,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,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,26,0,0,0,0,0,0,0); C[15] = new Array(27,0,0,28,0,0,29,0,0,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,30,0,0,0,0,0,0,0,0,0); C[17] = new Array(0,0,0,0,0,0,0,0,31,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,0,0,0); C[19] = new Array(0,0,0,0,0,0,0,0,0,0,0,34,0,35,0,0,0,0,0,0,36,0,37,0,0,0,0,0); C[20] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[21] = new Array(0,0,38,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[22] = new Array(40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,42,0,0,0,0,0,0); C[23] = new Array(0,0,0,0,43,0,0,44,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[24] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[25] = new Array(46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[26] = new Array(0,0,0,47,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[27] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0); C[28] = new Array(0,0,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[29] = new Array(0,0,0,0,0,0,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('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[20] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[21] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[22] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[23] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[24] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[25] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[26] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[27] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[28] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); G[29] = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1] = 'Connected to Harddrive to show a visual representation of what is on the harddrive.'; A[3] = 'C++ and Jave are _________ languages.'; A[9] = '1000 KB.'; A[10] = 'Synchronous discussion space that is online.'; A[13] = 'Before Digital; like a cassette tape.'; A[14] = 'Windows and Jaguar are examples of these.'; A[17] = 'Not a jpeg.'; A[18] = 'After you enter your username, please enter your_________.'; A[22] = 'Computers with consciousness and sentience.'; A[23] = 'OO language that reminds you have coffee.'; A[24] = 'Not output.'; A[26] = '_______ and Lucy from Charlie Brown.'; A[27] = 'Access and SQL are types of ________ software.'; A[31] = 'Solaris was developed on this platform.'; A[34] = 'A computer language for young children that uses a \'turtle\'.'; A[36] = 'Junk Mail.'; A[38] = 'At the most basic level, computers have 1\'s and 0\'s. A _________ language.'; A[39] = 'External disk drive for Windows. '; A[41] = 'To submit forms, you must have this on your server to POST.'; A[43] = 'Latest operating system software from Microsoft. '; A[46] = '3.214.........'; A[47] = 'A and extension of a file that was compressed by StuffIt for the Macintosh'; A[49] = 'Java 2 is popular because of this five letter word that begins with an S.'; A[50] = 'You type on this.'; D = new Array(); D[1] = 'iBooks, iMacs, Powerbooks, G4s are all types of these Apple made computers.'; D[2] = 'Not RAM'; D[4] = 'Mega____ or Giga____'; D[5] = '<'; D[6] = '______ Camera.'; D[7] = 'A computer can of 32, 64, 128, 256, etc... type of this internal memory.'; D[8] = 'The WWW is anothe name for the _________?'; D[11] = 'A repetition in a programing snippet.'; D[12] = 'Earthlink, AOL, MSN, Snet.net are all examples of these.'; D[13] = '<'; D[15] = 'Gateway User Interface'; D[16] = 'Ask key?'; D[18] = '____ Pilot'; D[19] = 'Mail waitress or waiter.'; D[20] = 'It\'s Dynamic hypertext markup language!'; D[21] = 'Reboot'; D[25] = 'Resolution value'; D[28] = 'Collection in OO Programming like JAVA.'; D[29] = 'Scan her.'; D[30] = 'The brain of the CPU. '; D[31] = 'Universal Serial Port'; D[32] = 'Not DHTML and NOT Html.'; D[33] = 'Instant Message'; D[35] = 'Graphic User interface'; D[36] = 'Before the USB port, there was this.'; D[37] = '"You\'ve Got Mail"'; D[40] = 'Once you have written code in a programming language, you need this application to put it together and make it run!'; D[42] = 'Anti Virus System Software is made by this famous company.'; D[43] = 'what you see is what you get.'; D[44] = 'DOs'; D[45] = 'Not DHTML and not HTML'; D[48] = 'Mouse ___'; function StartUp(){ //Try to get user name UserName = prompt('Please enter your name:',''); UserName += ''; if ((UserName.substring(0,4) == 'null')||(UserName.length < 1)){ UserName = prompt('Please enter your name:',''); UserName += ''; if ((UserName.substring(0,4) == 'null')||(UserName.length < 1)){ window.location = PreviousPage; } } BuildExercise(); BuildCompleteClues(); 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); if (AllCorrect == true){ setTimeout('SendResults(' + Score + ')', 50); return; } DisplayExercise(); } function SendResults(Score){ var today = new Date; var NewName = '' + today.getTime(); var NewWin = window.open('', NewName, 'toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,,width=400,height=300'); NewWin.document.clear(); NewWin.document.open(); NewWin.document.write(ResultForm); NewWin.document.close(); NewWin.document.Results.Score.value = Score + '%'; NewWin.document.Results.realname.value = UserName; NewWin.document.Results.End_Time.value = (new Date()).toLocaleString(); NewWin.document.Results.Start_Time.value = StartTime; NewWin.document.Results.submit(); } function DoNothing(){} function Blank(){ return '©Half-Baked Software. Loading...'; } //--> //]]>