';
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 StartUp(){
//Write the top frame
WriteFeedback(Instructions);
if ((is.mac)&&(is.ns)) {
FocusBoxes = false;
}
//Reduce array if required
if (QsToShow Dans ce po\u00E8me, \u00E0 quel temps est-ce que la majorit\u00E9 des verbes est conjugu\u00E9e?
A l\'imparfait ou au pass\u00E9 compos\u00E9?';
I[0][1] = new Array();
I[0][1][0] = new Array();
I[0][1][0][0]='au pass\u00E9 compos\u00E9';
I[0][1][1] = new Array();
I[0][1][1][0]='La majorit\u00E9 des verbes est conjugu\u00E9e au pass\u00E9 compos\u00E9';
I[1] = new Array();
I[1][0]='Les participes pass\u00E9s ont un accord.
Les participes pass\u00E9s n\'ont pas d\'accord.';
I[1][1] = new Array();
I[1][1][0] = new Array();
I[1][1][0][0]='Les participes pass\u00E9s n\'ont pas d\'accord';
I[2] = new Array();
I[2][0]='Dans le po\u00E8me, "il", c\' est un homme ou une femme?';
I[2][1] = new Array();
I[2][1][0] = new Array();
I[2][1][0][0]='C\'est un homme';
I[3] = new Array();
I[3][0]='Dans le po\u00E8me, "je", c\'est un homme ou une femme?';
I[3][1] = new Array();
I[3][1][0] = new Array();
I[3][1][0][0]='C\'est une femme';
I[4] = new Array();
I[4][0]='Les personnages du po\u00E8me se trouvent a) dans un caf\u00E9 b) \u00E0 la maison';
I[4][1] = new Array();
I[4][1][0] = new Array();
I[4][1][0][0]='Les personnages se trouvent \u00E0 la maison';
I[4][1][1] = new Array();
I[4][1][1][0]='Les personnages du po\u00E8me se trouvent \u00E0 la maison';
I[5] = new Array();
I[5][0]='Dehors, il pleut ou il fait beau temps?';
I[5][1] = new Array();
I[5][1][0] = new Array();
I[5][1][0][0]='Il pleut';
I[5][1][1] = new Array();
I[5][1][1][0]='Dehors, il pleut';
I[6] = new Array();
I[6][0]='Qui fume? L\'homme ou la femme?';
I[6][1] = new Array();
I[6][1][0] = new Array();
I[6][1][0][0]='L\'homme fume';
I[7] = new Array();
I[7][0]='L\'homme a parl\u00E9 \u00E0 la femme, ou il ne lui a pas parl\u00E9?';
I[7][1] = new Array();
I[7][1][0] = new Array();
I[7][1][0][0]='Il ne lui a pas parl\u00E9';
I[7][1][1] = new Array();
I[7][1][1][0]='Non, il ne lui a pas parl\u00E9';
I[8] = new Array();
I[8][0]='Qu\'est-ce que la femme fait \u00E0 la fin du po\u00E8me?';
I[8][1] = new Array();
I[8][1][0] = new Array();
I[8][1][0][0]='Elle pleure';
I[9] = new Array();
I[9][0]='Est-ce que l\'homme regarde la femme encore une fois avant de partir.';
I[9][1] = new Array();
I[9][1][0] = new Array();
I[9][1][0][0]='Non, il ne la regarde pas';
I[9][1][1] = new Array();
I[9][1][1][0]='Non, il ne la regarde plus';
Status = new Array();
function CreateStatusArrays(){
Status.length = 0;
for (i=0; i';
OutString += TitleCode;
OutString += '
';
OutString += NavBar;
OutString += '';
OutString += '';
OutString += StuffToDisplay;
OutString += ' ';
}
Output = Output + BuildQuestion(I.length-1);
Output = TableOpener + Output + TableCloser;
DisplayExercise(Output);
}
function ShowQuestion(QNum){
//First, create the Q number readout at the top
var Readout = (QNum+1) + '/' + I.length;
while (Readout.length 0){
Box.value = Status[QNum][3];
}
Box.focus();
}
}
function TrimString(InString){
var x = 0
if (InString.length != 0) {
while ((InString.charAt(InString.length - 1) == '\u0020') || (InString.charAt(InString.length - 1) == '\u000A') || (InString.charAt(InString.length - 1) == '\u000D')){
InString = InString.substring(0, InString.length - 1)
}
while ((InString.charAt(0) == '\u0020') || (InString.charAt(0) == '\u000A') || (InString.charAt(0) == '\u000D')){
InString = InString.substring(1, InString.length)
}
while (InString.indexOf(' ') != -1) {
x = InString.indexOf(' ')
InString = InString.substring(0, x) + InString.substring(x+1, InString.length)
}
return InString;
}
else {
return '';
}
}
function RemovePunctuation(InString){
var OutString = '';
for (i=0; i
' + OtherAnswers;
}
//Get the score for this question
var HintPenalty = (Status[QNum][2]*10)/CorrectAs[Right].length;
Status[QNum][4] = Math.floor((10 - Status[QNum][1]) - HintPenalty);
//Check whether the quiz is finished
var Finished = true;
for (var i=0; i
' + CorrectBits[2][LongestCorrect];
}
else{
if (ShowHint == false){
Output = IncorrectResponse;
}
}
//Include words found in the answer
var FoundWords = CheckWords(Guess, CorrectAs[LongestCorrect]);
if (FoundWords.length > 0){
Output += '
' + TheseWordsAppear + FoundWords;
}
if (ShowHint == true){
Output += '
' + GiveHint + CorrectBits[3][LongestCorrect];
}
WriteFeedback(Output);
//Put the focus back in the box
if (FocusBoxes==true){
eval('BottomFrame.document.QForm' + (QNum) + '.Guess').focus();
}
}
}
function ShowAnswers(QNum){
//If the question isn't done, mark it as done. Score will be 0;
if (Status[QNum][0] != 1){
//Question is not already done
Status[QNum][0] = 1;
Status[QNum][1] = -1;
Status[QNum][2] = -1;
}
//Get the correct answers and put them into a string
var Output = TheseCorrect + '
';
Output += I[QNum][1][0][0] + '
';
for (var i=1; i';
}
//Check whether the quiz is finished
var Finished = true;
for (var i=0; i