'; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += '\''+Morefields+'\''; ResultForm += '
Hosted by www.Geocities.ws

'; // -------------------------------- end of changes ------------------------- // var NavBar=''; // ------- navigationsleiste fuer php-ergebnisse änderung beim index ------- // NavBar+='
'; NavBar+=''; NavBar+=''; NavBar+='
'; if (is.CRAPBrowser){NavBar=ResolveAllURLs(NavBar);} // -------------------------------- end of changes ------------------------- // var TitleCode = ''; TitleCode += '' + ExerciseTitle + '
'; TitleCode += '' + ExerciseSubtitle + '
'; TitleCode += '
'; var WordBox = ''; var ClozeOpener = ''; ClozeOpener += ''; var Buttons = '
'; ClozeOpener += '
'; var ClozeCloser = '
'; Buttons += '
'; Buttons += ''; Buttons += '
'; var GapCode = ''; var ClueButton = ''; ClueButton = ''; function GoBack(){ var BackSkip = history.length - PreviousPage; if (BackSkip > 0){ history.go((BackSkip+1)*-1); } else{ parent.history.back(); } } function BuildExercise(){ var OutString = ''; var ClozeStuff = ''; for (var i=0; i'; } else{ GapLen = I[i][1][0][0].length; if (GapLen < 3){GapLen = 3;} Gap = ReplaceStuff('[strGapSize]', GapLen, GapCode); Gap = ReplaceStuff('[strGapName]', 'Gap' + i + '', Gap); Gap = ReplaceStuff('[strItemNum]', i + '', Gap); Gap = ReplaceStuff('[strValue]', State[i][5], Gap); ClozeStuff += Gap; //Create and add the clue button if (I[i][2].length > 0){ Btn = ReplaceStuff('[strItemNum]', i + '', ClueButton); ClozeStuff += Btn; } } } //Add the last bit if (Text.length > I.length){ ClozeStuff += Text[Text.length-1]; } //Put the final pieces together OutString = ClozeOpener + ClozeStuff + ClozeCloser + Buttons; BuiltCloze = OutString; } function WriteFeedback(Feedback) { if (is.CRAPBrowser){Feedback=ResolveAllURLs(Feedback);} //Build the output string var OutString = ''; OutString += ''; OutString += '
'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
Hosted by www.Geocities.ws

'; //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 += ''; //-----Modified by Valérie Maret: strip the bottom button---// //OutString += NavBar; //-----End of changes-----// OutString += '
'; if (WordBox.length > 0){ OutString += WordBox; } OutString += ''; OutString += BuiltCloze; OutString += '
Hosted by www.Geocities.ws

'; 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 ShowClue(ItemNum){ //alert(ItemNum); State[ItemNum][0] = 1; WriteFeedback(I[ItemNum][2]); } function SaveCurrentAnswers(){ for (var i=0; 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; } I = new Array(); I[0] = new Array(); I[0][1] = new Array(); I[0][1][0] = new Array(); I[0][1][0][0]='will telephone'; I[0][1][1] = new Array(); I[0][1][1][0]='\'ll telephone'; I[0][2]=''; I[1] = new Array(); I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='hears'; I[1][2]=''; I[2] = new Array(); I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='would not have been printed'; I[2][1][1] = new Array(); I[2][1][1][0]='wouldn\'t have beeen printed'; I[2][2]=''; I[3] = new Array(); I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='will you repay'; I[3][2]=''; I[4] = new Array(); I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='would be brought'; I[4][2]=''; I[5] = new Array(); I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='had been given'; I[5][1][1] = new Array(); I[5][1][1][0]='\'d been given'; I[5][2]=''; I[6] = new Array(); I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='did not tell'; I[6][1][1] = new Array(); I[6][1][1][0]='didn\'t tell'; I[6][2]=''; I[7] = new Array(); I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='were'; I[7][1][1] = new Array(); I[7][1][1][0]='was'; I[7][2]=''; I[8] = new Array(); I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='would have'; I[8][1][1] = new Array(); I[8][1][1][0]='\'d have'; I[8][2]=''; I[9] = new Array(); I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='will be sent'; I[9][2]=''; I[10] = new Array(); I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='remind'; I[10][2]=''; I[11] = new Array(); I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='would you do'; I[11][2]=''; I[12] = new Array(); I[12][1] = new Array(); I[12][1][0] = new Array(); I[12][1][0][0]='had not worn'; I[12][1][1] = new Array(); I[12][1][1][0]='hadn\'t worn'; I[12][2]=''; I[13] = new Array(); I[13][1] = new Array(); I[13][1][0] = new Array(); I[13][1][0][0]='would not be delivered'; I[13][1][1] = new Array(); I[13][1][1][0]='doesn\'t turn up'; I[13][2]=''; I[14] = new Array(); I[14][1] = new Array(); I[14][1][0] = new Array(); I[14][1][0][0]='does not turn up'; I[14][1][1] = new Array(); I[14][1][1][0]='doesn\'t turn up'; I[14][2]=''; Text = new Array(); Text[0]='Put the infinitive into the appropriate tense/form: in some sentences a PASSIVE will be necessary!


1. If I find your passport, I '; Text[1]=' ( to telephone) you at once.
2. If she '; Text[2]=' (to hear) about it, she will get terribly angry.
3. The story '; Text[3]=' (not to print = nicht drucken) in the paper if it hadn\'t been true.
4. If I lend you ten pounds, when '; Text[4]=' (? you/to repay= zur\u00FCckzahlen) me?
5. The meal '; Text[5]=' (to bring) by the waiter if he could see us.
6. If I '; Text[6]=' (to give) so much money, I would have said, "Thank you."
7. He would be a nice guy if he '; Text[7]=' (not to tell) so many lies.
8. If I '; Text[8]=' (to be) you, I would work more carefully.
9. If he cut his har, he '; Text[9]=' (to have) better chances.
10. The letter '; Text[10]=' (to send) to her if she puts "please forward"(bitte nachsenden) on it.
11. He\'ll forget about it unless you '; Text[11]=' (to remind) him of it.
12. If you saw a brontosaurus walking down Oxford Street, what '; Text[12]=' ? (? you/to do)
13. If he '; Text[13]=' (to wear) a false beard nobody would have recognized him.
14. The post '; Text[14]=' (not to deliver = zustellen) if the postman were ill.
15. If your sister '; Text[15]=' (not to turn up = auftauchen) by Monday, there\'ll be no chance.



'; State = new Array(); function StartUp(){ var i = 0; State.length = 0; for (i=0; i -1){ var TotalChars = GetGapValue(i).length; State[i][3] = (TotalChars-State[i][1])/TotalChars; if (State[i][0] > 0){State[i][3] = State[i][3]/2;} if (State[i][3]<0){State[i][3] = 0;} State[i][4] = 1; } else{ //Otherwise, add zero to the array and increment the hints for this item, as a penalty State[i][1]++; State[i][3] = 0; //then set the flag AllCorrect = 0; } } } //Calculate the total score var TotalScore = 0; for (i=0; i'; ///--------Modified by Valerie Maret 2003 ----------------/// //Select a sound file per random and play it once //soundfile(); //Output += ''; //Create Button to send Results and play Sound //Output += '
'; //Change Part for IndexButton so that it disappears. NavBar=''; NavBar+=''; NavBar+=''; //NavBar+=''; NavBar+=''; ///--------End of changes ----------------/// } Output += YourScoreIs + ' ' + TotalScore + '%.
'; if (AllCorrect == 0){ Output += '
' + Incorrect; } BuildExercise(); WriteFeedback(Output); ///--------Modified by Valerie Maret 2003 ----------------// //This part is no longer interesting for us /*if (AllCorrect==1){ setTimeout('SendResults(' + TotalScore + ')', 50); return; } */ //End of changes--------// DisplayExercise(); RestoreCurrentAnswers(); } function TrackFocus(BoxNumber){ CurrentWord = BoxNumber; } function CheckBeginning(Guess, Answer){ var OutString = ''; var i = 0; var UpperGuess = ''; var UpperAnswer = ''; if (CaseSensitive == false) { UpperGuess = Guess.toUpperCase(); UpperAnswer = Answer.toUpperCase(); } else { UpperGuess = Guess; UpperAnswer = Answer; } while (UpperGuess.charAt(i) == UpperAnswer.charAt(i)) { OutString += Guess.charAt(i); i++; } OutString += Answer.charAt(i); return OutString; } function FindLongest(InArray){ if (InArray.length < 1){return -1;} var Longest = 0; for (var i=1; i InArray[Longest].length){ Longest = i; } } return Longest; } function GetGapValue(GNum){ var RetVal = ''; if ((GNum<0)||(GNum>=I.length)){return RetVal;} if (eval('BottomFrame.document.Cloze.Gap' + GNum) != null){ RetVal = eval('BottomFrame.document.Cloze.Gap' + GNum).value; RetVal = TrimString(RetVal); } else{ RetVal = State[GNum][5]; } return RetVal; } function SetGapValue(GNum, Val){ if ((GNum<0)||(GNum>=I.length)){return;} if (eval('BottomFrame.document.Cloze.Gap' + GNum) != null){ eval('BottomFrame.document.Cloze.Gap' + GNum).value = Val; } } function FindCurrent() { var x = 0; FoundCurrent = -1; //Test the current word: //If it's state is not set to already correct, check the word. if (State[CurrentWord][4] != 1){ if (CheckAnswer(CurrentWord, false) < 0){ return CurrentWord; } } x=CurrentWord + 1; while (x -1){return ''} RightBits = new Array(); for (var i=0; i 0){ SetGapValue(CurrGap, HintString); State[CurrGap][1] = State[CurrGap][1] + 1; } WriteFeedback(GiveHint); } // -------------------- dieser teil ist komplett geändert ------------------ // // Der Inhalt von inclSendResults ist ausgelagert. Siehe Pfad oben --------- // // -------------------------------------- valerie maret -------------------- // function Blank(){ return '
©Half-Baked Software.

Sprachwerkstatt der Romanistik Wien

Hosted by www.Geocities.ws

'; } //--> //]]>
Hosted by www.Geocities.ws

1