'; 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 += ''; OutString += NavBar; 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]='A'; I[0][1][1] = new Array(); I[0][1][1][0]='a'; I[0][2]='Remember, passive structures use the pattern (to be) + past participle.
For example: ...they are refracted ...'; I[1] = new Array(); I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='A'; I[1][1][1] = new Array(); I[1][1][1][0]='a'; I[1][2]='Remember, passive structures use the pattern (to be) + past participle.
For example: ...they are refracted ...'; I[2] = new Array(); I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='A'; I[2][1][1] = new Array(); I[2][1][1][0]='a'; I[2][2]='Remember, passive structures use the pattern (to be) + past participle.
For example: ...they are refracted ...'; I[3] = new Array(); I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='A'; I[3][1][1] = new Array(); I[3][1][1][0]='a'; I[3][2]='Remember, passive structures use the pattern (to be) + past participle.
For example: ...they are refracted ...'; I[4] = new Array(); I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='P'; I[4][1][1] = new Array(); I[4][1][1][0]='p'; I[4][2]='Remember, passive structures use the pattern (to be) + past participle.
This clause is a good example of this structure.'; I[5] = new Array(); I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='A'; I[5][1][1] = new Array(); I[5][1][1][0]='a'; I[5][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[6] = new Array(); I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='P'; I[6][1][1] = new Array(); I[6][1][1][0]='p'; I[6][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[7] = new Array(); I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='P'; I[7][1][1] = new Array(); I[7][1][1][0]='p'; I[7][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[8] = new Array(); I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='P'; I[8][1][1] = new Array(); I[8][1][1][0]='p'; I[8][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[9] = new Array(); I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='A'; I[9][1][1] = new Array(); I[9][1][1][0]='a'; I[9][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[10] = new Array(); I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='P'; I[10][1][1] = new Array(); I[10][1][1][0]='p'; I[10][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[11] = new Array(); I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='A'; I[11][1][1] = new Array(); I[11][1][1][0]='a'; I[11][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[12] = new Array(); I[12][1] = new Array(); I[12][1][0] = new Array(); I[12][1][0][0]='A'; I[12][1][1] = new Array(); I[12][1][1][0]='a'; I[12][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[13] = new Array(); I[13][1] = new Array(); I[13][1][0] = new Array(); I[13][1][0][0]='A'; I[13][1][1] = new Array(); I[13][1][1][0]='a'; I[13][2]='Remember, passive structures use the pattern (to be) + past participle.'; I[14] = new Array(); I[14][1] = new Array(); I[14][1][0] = new Array(); I[14][1][0][0]='P'; I[14][1][1] = new Array(); I[14][1][1][0]='p'; I[14][2]='Remember, passive structures use the pattern (to be) + past participle.
The verb often takes takes a modal, such as may, must, can, could, shall should, etc.'; I[15] = new Array(); I[15][1] = new Array(); I[15][1][0] = new Array(); I[15][1][0][0]='A'; I[15][1][1] = new Array(); I[15][1][1][0]='a'; I[15][2]='Remember, passive structures use the pattern (to be) + past participle.
The verb often takes takes a modal, such as may, must, can, could, shall should, etc.'; I[16] = new Array(); I[16][1] = new Array(); I[16][1][0] = new Array(); I[16][1][0][0]='P'; I[16][1][1] = new Array(); I[16][1][1][0]='p'; I[16][2]='Remember, passive structures use the pattern (to be) + past participle.
The verb often takes takes a modal, such as may, must, can, could, shall should, etc.'; I[17] = new Array(); I[17][1] = new Array(); I[17][1][0] = new Array(); I[17][1][0][0]='P'; I[17][1][1] = new Array(); I[17][1][1][0]='p'; I[17][2]='Remember, passive structures use the pattern (to be) + past participle.
The verb often takes takes a modal, such as may, must, can, could, shall should, etc.'; I[18] = new Array(); I[18][1] = new Array(); I[18][1][0] = new Array(); I[18][1][0][0]='P'; I[18][1][1] = new Array(); I[18][1][1][0]='p'; I[18][2]='Remember, passive structures use the pattern (to be) + past participle.
The verb often takes takes a modal, such as may, must, can, could, shall should, etc.'; I[19] = new Array(); I[19][1] = new Array(); I[19][1][0] = new Array(); I[19][1][0][0]='P'; I[19][1][1] = new Array(); I[19][1][1][0]='p'; I[19][2]='Remember, passive structures use the pattern (to be) + past participle.
The verb often takes takes a modal, such as may, must, can, could, shall should, etc.'; Text = new Array(); Text[0]='
What is a rainbow?

image/rainbow.jpg

Problem: What is a rainbow? Where do its colors come from?

Information: Textbooks such as Concepts and Challenges in Physical Science explain '; Text[1]=' that sunlight seems to be '; Text[2]=' colorless, but in fact contains '; Text[3]=' a spectrum of colors. The colors do not appear '; Text[4]=' unless they are refracted (bent) '; Text[5]=' through water. Theories explain '; Text[6]=' that, as sunlight is reflected '; Text[7]=' through raindrops, it is refracted, '; Text[8]=' and its spectrum of colors, in the form of a rainbow, is reflected '; Text[9]=' in the sky. Related theories about sunlight say '; Text[10]=' that sunlight is more easily reflected '; Text[11]=' on light-colored surfaces rather than dark.

Analysis: In order to prove '; Text[12]=' what a rainbow is and where its colors come from, the student-scientist needs to reproduce '; Text[13]=' the conditions in which a rainbow appears. '; Text[14]=' Sunlight must be viewed through water and reflected '; Text[15]=' onto a surface. But it will be difficult to make '; Text[16]=' a rainbow in the sky. The same effect must be produced '; Text[17]=' in a more controlled environment. The sunlight should be reflected '; Text[18]=' through water, bent, and shone onto a light-colored surface such as a piece of white paper. A glass of water could be used, '; Text[19]=' and a way to block all of the light except for a band of light (like a rainbow) should be devised '; 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'; } Output += YourScoreIs + ' ' + TotalScore + '%.
'; if (AllCorrect == 0){ Output += '
' + Incorrect; } BuildExercise(); WriteFeedback(Output); 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); } function Blank(){ return '
�Half-Baked Software. Loading...
Hosted by www.Geocities.ws

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

1