';
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(){
//Reduce array if required
if (QsToShow
';
I[0][1][0][1]='';
I[0][1][0][2] = 0;
I[0][1][1] = new Array();
I[0][1][1][0]='La forme du poème est irrégulière';
I[0][1][1][1]='';
I[0][1][1][2] = 1;
I[0][2] = 0;
I[1] = new Array();
I[1][0]='Ce poème se compose de 4 strophes.';
I[1][1] = new Array();
I[1][1][0] = new Array();
I[1][1][0][0]='les 4 strophes contiennent le même nombre de vers.
';
I[1][1][0][1]='';
I[1][1][0][2] = 0;
I[1][1][1] = new Array();
I[1][1][1][0]='les 4 strophes sont irrégulières.';
I[1][1][1][1]='';
I[1][1][1][2] = 1;
I[1][2] = 0;
I[2] = new Array();
I[2][0]='Dans ce poème, ';
I[2][1] = new Array();
I[2][1][0] = new Array();
I[2][1][0][0]='les vers ne riment pas.
';
I[2][1][0][1]='';
I[2][1][0][2] = 1;
I[2][1][1] = new Array();
I[2][1][1][0]='les vers riment.';
I[2][1][1][1]='';
I[2][1][1][2] = 0;
I[2][2] = 0;
I[3] = new Array();
I[3][0]='le vocabulaire du poème';
I[3][1] = new Array();
I[3][1][0] = new Array();
I[3][1][0][0]='est riche et poétique';
I[3][1][0][1]='';
I[3][1][0][2] = 0;
I[3][1][1] = new Array();
I[3][1][1][0]='est simple et parlé';
I[3][1][1][1]='';
I[3][1][1][2] = 1;
I[3][2] = 0;
Status = new Array();
function CreateStatusArrays(){
for (var x=0; x';
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; i--){
//Find any incorrect choices
var b = eval('BottomFrame.document.QForm.A_' + QNum + '_' + i);
if (b != null){
//if it's wrong, count it
if (b.checked == true){
Status[QNum][1][i] = 'C';
}
else{
Status[QNum][1][i] = 'U';
}
if (((b.checked == true) && (b.value == "0"))||((b.checked == false)&&(b.value == "1"))){
TotWrong++;
}
}
}
if (TotWrong == 0){
Output = DefaultRight;
}
else{
Output = DefaultWrong + '
' + (TotAns-TotWrong) + '/' + TotAns;
}
//If you haven't tried the question before
if (Status[QNum][0] == 0){
if (TotWrong > 0){
Status[QNum][2]++;
}
if (TotWrong == 0){
Status[QNum][0] = 1;
//Calculate the score for this question as a floating-point fraction of 1
Status[QNum][3] = ((Status[QNum][1].length - Status[QNum][2]) - 1) / (Status[QNum][1].length - 1);
//If less than zero, set to zero
if (Status[QNum][3] ' + YourScoreIs + ' ' + Score + '%.';
}
if (Finished == true){
EraseFeedback = false;
var CFT = 0;
for (i=0; i