Make your own free website on Tripod.com
"); parent.frames[0].document.writeln ("
"); parent.frames[0].document.writeln (Feedback); parent.frames[0].document.writeln ("
"); parent.frames[0].document.close(); } function Cheat(){ CurrentAnswers = new Array(4); CorrectBits = new Array(4); var CurrentAnswer = FindCurrent(); if (CurrentAnswer == -1) { return; } CurrentAnswers[1] = AnswerList[(CurrentAnswer * 4) + 1]; CurrentAnswers[2] = AnswerList[(CurrentAnswer * 4) + 2]; CurrentAnswers[3] = AnswerList[(CurrentAnswer * 4) + 3]; CurrentAnswers[4] = AnswerList[(CurrentAnswer * 4) + 4]; CorrectBits[1] = CheckBeginning(document.cloze.elements[CurrentAnswer].value, CurrentAnswers[1]); CorrectBits[2] = CheckBeginning(document.cloze.elements[CurrentAnswer].value, CurrentAnswers[2]); CorrectBits[3] = CheckBeginning(document.cloze.elements[CurrentAnswer].value, CurrentAnswers[3]); CorrectBits[4] = CheckBeginning(document.cloze.elements[CurrentAnswer].value, CurrentAnswers[4]); Longest = FindLongest(CorrectBits[1], CorrectBits[2], CorrectBits[3], CorrectBits[4]); document.cloze.elements[CurrentAnswer].value = CorrectBits[Longest]; WriteFeedback(GiveHint); } function TrackFocus(BoxNumber){ CurrentWord = BoxNumber; } function CheckBeginning(Guess, Answer){ var OutString = ''; var i = 0; var UpperGuess = ''; var UpperAnswer = ''; if (CaseSensitive == 'False') { UpperGuess = ConvertCase(Guess, 1); UpperAnswer = ConvertCase(Answer, 1); } else { UpperGuess = Guess; UpperAnswer = Answer; } while (UpperGuess.charAt(i) == UpperAnswer.charAt(i)) { OutString += Guess.charAt(i); i++; } OutString += Answer.charAt(i); return OutString; } function CheckAnswer(Guess, AnsNum){ if (CaseSensitive == 'True'){ if ((Guess == AnswerList[(AnsNum * 4) + 1]) || (Guess == AnswerList[(AnsNum * 4) + 2]) || (Guess == AnswerList[(AnsNum * 4) + 3]) || (Guess == AnswerList[(AnsNum * 4) + 4])) { return true; } else { return false; } } else{ Guess = ConvertCase(Guess, 1); if ((Guess == ConvertCase(AnswerList[(AnsNum * 4) + 1], 1)) || (Guess == ConvertCase(AnswerList[(AnsNum * 4) + 2], 1)) || (Guess == ConvertCase(AnswerList[(AnsNum * 4) + 3], 1)) || (Guess == ConvertCase(AnswerList[(AnsNum * 4) + 4], 1))) { return true; } else { return false; } } } function FindCurrent() { var FoundCurrent = -1; var x = 0; if (CheckAnswer(document.cloze.elements[CurrentWord].value, CurrentWord) == false) { FoundCurrent = CurrentWord; } else { x=CurrentWord + 1; while ((FoundCurrent == -1) && (x= LongString.length){ Longest = 3; LongString = Third; } if (Second.length >= LongString.length){ Longest = 2; LongString = Second; } if (First.length >= LongString.length){ Longest = 1; LongString = First; } return Longest; }

Food Puzzle

What are these mixed up foods?

1. korp
2. likm