var blankSize = "10";

var numberofQ = 10;

var ExerciseType = "Conjugation";

var ExerciseTitle = "L'imparfait : le pass&eacute; compos&eacute; (1)";

var ExerciseInstruction = "Compl&eacute;tez le tableau.";

var HTML_header1 = "<HTML><BODY BGCOLOR=#ffffff><FONT face=\"Helvetica\" color=\"#339933\"> ";
var HTML_header2 = "<p></font>";
var HTML_header3 = "<hr><font face=\"Helvetica\">";

var HTML_footer  = "</table><br><br><br>&#169 Les &Eacute;ditions Didier 2000</BODY></HTML>";

var Questions =	   new Array (numberofQ);
var Explanations = new Array (numberofQ);
var HTML_objects = new Array (numberofQ);

Questions[0] = "<TR><TD><b>&ecirc;tre&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;&nbsp;&nbsp;j'&eacute;tais&nbsp;&nbsp;</TD><TD>&nbsp;&nbsp;nous&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;ils&nbsp;&nbsp;&nbsp;&nbsp;<BLANK1></TD></TR>"; 
Questions[1] = "<TR><TD><b>faire&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;tu&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;vous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;on&nbsp;&nbsp;&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[2] = "<TR><TD><b>dire&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;il&nbsp;&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;nous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;elles&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[3] = "<TR><TD><b>mettre&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;tu&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;elle&nbsp;&nbsp;&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;elles&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[4] = "<TR><TD><b>croire&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;on&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;vous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;il&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[5] = "<TR><TD><b>aller&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;je&nbsp;&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;tu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;il&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[6] = "<TR><TD><b>finir&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;tu&nbsp;&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;nous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;vous&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[7] = "<TR><TD><b>parler&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;tu&nbsp;&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;nous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;ils&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[8] = "<TR><TD><b>prendre&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;tu&nbsp;&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;nous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;vous&nbsp;&nbsp;<BLANK2></TD></TR>";
Questions[9] = "<TR><TD><b>avoir&nbsp;&nbsp;&nbsp;&nbsp;</b></TD><TD>&nbsp;&nbsp;il&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BLANK0></TD><TD>&nbsp;&nbsp;nous&nbsp;&nbsp;<BLANK1></TD><TD>&nbsp;&nbsp;vous&nbsp;&nbsp;<BLANK2></TD></TR>";


Explanations[0] = "";
Explanations[1] = "";
Explanations[2] = "";
Explanations[3] = "";
Explanations[4] = "";
Explanations[5] = "";
Explanations[6] = "";
Explanations[7] = "";
Explanations[8] = "";
Explanations[9] = "";


HTML_objects[0] = "<table BORDER CELLPADDING=4  BORDERCOLOR=\"#000000\" >";
HTML_objects[1] = ""
HTML_objects[2] = "";
HTML_objects[3] = "";
HTML_objects[4] = "";
HTML_objects[5] = "";
HTML_objects[6] = "";
HTML_objects[7] = "";
HTML_objects[8] = "";
HTML_objects[9] = "";



var numberofBlanks = new Array (numberofQ);

//enter in the number of blanks per question

numberofBlanks[0] = 2;
numberofBlanks[1] = 3;
numberofBlanks[2] = 3;
numberofBlanks[3] = 3;
numberofBlanks[4] = 3;
numberofBlanks[5] = 3;
numberofBlanks[6] = 3;
numberofBlanks[7] = 3;
numberofBlanks[8] = 3;
numberofBlanks[9] = 3;


var numberofBlanksTotal = 0; 

for ( var i = 0; i < numberofQ; i++ )
{
    numberofBlanksTotal += numberofBlanks[i];
}

var Options =	   new Array (numberofBlanksTotal);
var Answers =	   new Array (numberofBlanksTotal);


Answers[0] = "&eacute;tions";
Answers[1] = "&eacute;taient";
Answers[2] = "faisais";
Answers[3] = "faisiez";
Answers[4] = "faisait";
Answers[5] = "disait";
Answers[6] = "disions";
Answers[7] = "disaient";
Answers[8] = "mettais";
Answers[9] = "mettait";
Answers[10] = "mettaient";
Answers[11] = "croyait";
Answers[12] = "croyiez";
Answers[13] = "croyait";
Answers[14] = "allais";
Answers[15] = "allais";
Answers[16] = "allait";
Answers[17] = "finissais";
Answers[18] = "finissions";
Answers[19] = "finissiez";
Answers[20] = "parlais";
Answers[21] = "parlions";
Answers[22] = "parlaient";
Answers[23] = "prenais";
Answers[24] = "prenions";
Answers[25] = "preniez";
Answers[26] = "avait";
Answers[27] = "avions";
Answers[28] = "aviez";
