function Valid_Mark(theForm)
{
  var correct;
  var radioSelected = false;
  var a1,a2,a3,a4,a5,a6,a7,a8,a9;
  var percent;
  for (i = 0;  i < theForm.Q1.length;  i++)
  {
    if (theForm.Q1[i].checked)
        radioSelected = true;
  }

  if (!radioSelected)
  {
    alert("Please select one of the \"Q1\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q2.length;  i++)
  {
    if (theForm.Q2[i].checked)
          radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q2\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q3.length;  i++)
  {
    if (theForm.Q3[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q3\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q4.length;  i++)
  {
    if (theForm.Q4[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q4\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q5.length;  i++)
  {
    if (theForm.Q5[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q5\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q6.length;  i++)
  {
    if (theForm.Q6[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q6\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q7.length;  i++)
  {
    if (theForm.Q7[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q7\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q8.length;  i++)
  {
    if (theForm.Q8[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q8\" options.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Q9.length;  i++)
  {
    if (theForm.Q9[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Q9\" options.");
    return (false);
  }
   
   correct=0;
        if (theForm.Q1[0].checked){
		a1="a";
                correct++;
	}
        if (theForm.Q1[1].checked)
		a1="b"; 
        if (theForm.Q1[2].checked)
		a1="c";
        if (theForm.Q1[3].checked)
		a1="d";
        if (theForm.Q2[0].checked)
		a2="a";
        if (theForm.Q2[1].checked){
		a2="b";
                correct++;
	}
        if (theForm.Q2[2].checked)
		a2="c";
        if (theForm.Q2[3].checked)
		a2="d";   
        if (theForm.Q3[0].checked)
		a3="a";
        if (theForm.Q3[1].checked)
		a3="b";
        if (theForm.Q3[2].checked)
		a3="c";
        if (theForm.Q3[3].checked){    
		a3="d";
                correct++;
	}
        if (theForm.Q4[0].checked)
		a4="a";
        if (theForm.Q4[1].checked)
		a4="b";
        if (theForm.Q4[2].checked)
		a4="c";
        if (theForm.Q4[3].checked){
		a4="d";   
                correct++;
	}
        if (theForm.Q4[4].checked)
		a4="e";
        if (theForm.Q5[0].checked)
		a5="a";
        if (theForm.Q5[1].checked)
		a5="b";  
        if (theForm.Q5[2].checked)
		a5="c";
        if (theForm.Q5[3].checked){
		a5="d";
                correct++;
	}
        if (theForm.Q6[0].checked){
		a6="a";
                correct++;
	}
        if (theForm.Q6[1].checked)
		a6="b";
        if (theForm.Q6[2].checked)
		a6="c";   
        if (theForm.Q6[3].checked)
		a6="d"; 
        if (theForm.Q7[0].checked)
		a7="a";
        if (theForm.Q7[1].checked){   
		a7="b";
                correct++;
	}
        if (theForm.Q7[2].checked)
		a7="c";
        if (theForm.Q7[3].checked)
		a7="d";
        if (theForm.Q8[0].checked)
		a8="a";
        if (theForm.Q8[1].checked)
		a8="b";
        if (theForm.Q8[2].checked){
		a8="c";   
                correct++;
	}
        if (theForm.Q8[3].checked)
		a8="d"; 
        if (theForm.Q9[0].checked){
		a9="a";
                correct++;
	}
        if (theForm.Q9[1].checked)
		a9="b";
        if (theForm.Q9[2].checked)
		a9="c";
        if (theForm.Q9[3].checked)
		a9="d"; 

        alert ("You have "+correct+" out of 9 correct!");
	percent=correct/9*100;
	percent=Math.round(percent);

//myWin= open("","displayWindow","width=500,height=400,toolbar=yes,resizable=yes,scrollbars=yes");
self.document.open("text/html");
self.document.write("<html><head><title>Progress Quiz 2");
self.document.write("</title></head><body bgcolor=#FFFFFF>");
self.document.write("<h1>Unit Two Progress Quiz</h1><p>");
self.document.write("<h2>You have "+correct+" out of 9 correct! "+percent+"%</h2><p>");
self.document.write("<hr>");
self.document.write("<p>1. According to the Royal Commission on Aboriginal People, how many jobs must be created for Aboriginal people between 1991 and 2016 to bring Aboriginal employment levels up to the Canadian standard?</p>");
self.document.write("<blockquote>");
self.document.write("<p>");
if (a1=="a")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. 300,000<br>");
if (a1=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. 100,000<br>");
if (a1=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. 200,000<br>");
if (a1=="d")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. 400,000</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a1+"</b>. The answer is <b>c.</b></p>");
self.document.write("<p>2. Which of the following is not among the guiding principles for economic development developed by the people of the Meadow Lake Tribal Council?</p>");
self.document.write("<blockquote><p>");
if (a2=="a")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. Self-reliance as communities, families and individuals.<br>");
if (a2=="b")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. Employment maximization as opposed to profit maximization.<br>");
if (a2=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. Community decision-making.<br>");
if (a2=="d")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. Respect for the environment.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <strong>"+a2+"</strong>. The answer is <strong>b. </strong><br></p>");
self.document.write("<p>3. Which of the following statements is true about the relationship between economic development, self-government, control over traditional lands, and traditional values and practices?</p>");
self.document.write("<blockquote><p>");
if (a3=="a")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. Control over tradition land enables Aboriginal economic development.<br>");
if (a3=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. Economic development and economic self-sufficiency is essential to true self-government.<br>");
if (a3=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. Traditional culture and values can be respected  and used in the practise of economic development.<br>");
if (a3=="d")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. All are true.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a3+"</b>. The answer is <b>d.</b></p>");
self.document.write("<p>4. According to J. Rick Ponting (1986, 194), which of the following is not a purpose for comprehensive land claims and modern treaties?</p>");
self.document.write("<blockquote><p>");
if (a4=="a")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. Carry Indians forward with a viable traditional sector for those who chose that way of life<br>");
if (a4=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. Provide an adequate share of political-economic power or local influence to be used to protect Indian interests<br>");
if (a4=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. Create enduring economic opportunity of the non-traditional type<br>");
if (a4=="d")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. Provide individual Aboriginal people with a cash settlement in return for their Aboriginal rights to land and resources.<br>");
if (a4=="e")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("e. All are among the purposes of land claims and modern treaties</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a4+"</b>. The answer is <b>d.</b></p>");
self.document.write("<p>5. Which of the following is one of the purposes of the Aboriginal approach to economic development?</p>");
self.document.write("<blockquote><p>");
if (a5=="a")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. The attainment of economic self-sufficiency as individuals and communities.<br>");
if (a5=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. The improvement of socioeconomic circumstances of individuals and communities.<br>");
if (a5=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. The preservation and strengthening of traditional culture, values and languages.<br>");
if (a5=="d")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. All are purposes.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a5+"</b>. The answer is <b>d.</b></p>");
self.document.write("<p>6. Which of the following is not a reason why the appointment of Justice Berger to head the MacKenzie Valley Pipeline Inquiry had such a great impact on comprehensive land claims and modern treaties?</p>");
self.document.write("<blockquote><p>");
if (a6=="a")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. The power and influence of Justice Berger within the Liberal Party of Canada (which formed the national government at the time of the inquiry).<br>");
if (a6=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. The respect Aboriginal people had for Justice Berger’s honesty and fairness.<br>");
if (a6=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. Justice Berger’s experience with and understanding of Aboriginal rights.<br>");
if (a6=="d")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. Justice Berger’s interpretation of the mandate of his inquiry.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a6+"</b>. The answer is <b>a. </b></p>");
self.document.write("<p>7. Which of the following is not amongst the views expressed by the proponents of the MacKenzie Valley Pipeline?</p>");
self.document.write("<blockquote><p>");
if (a7=="a")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. Industrialization is inevitable, desirable, and beneficial – the more the better.<br>");
if (a7=="b")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. When all the riches have been taken out from under them by foreign companies, Native land and culture will have been destroyed and people left with nothing.<br>");
if (a7=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. All Canadians have an equal interest in the North and its resources.<br>");
if (a7=="d")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. A higher standard of living, a better quality of life, and greater personal choice will emerge from industrialization.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a7+"</b>. The answer is <b>b. </b></p>");
self.document.write("<p>8. In 1997, how many people were employed by the Cree Regional Economic Enterprises Company (CREECO)?</p>");
self.document.write("<blockquote><p>");
if (a8=="a")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. 400<br>");
if (a8=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. 600<br>");
if (a8=="c")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. 525<br>");
if (a8=="d")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. 390</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a8+"</b>. The answer is <b>c. </b></p>");
self.document.write("<p>9. How much money did the Inuvialuit receive under the terms of the Inuvialuit Final Agreement?</p>");
self.document.write("<blockquote><p>");
if (a9=="a")
	self.document.write("<img src=images/tick.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("a. $62,500,000<br>");
if (a9=="b")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("b. $90,000,000<br>");
if (a9=="c")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("c. $45,000,000<br>");
if (a9=="d")
	self.document.write("<img src=images/cross.gif align=texttop>");
else
	self.document.write("<img src=images/circle.gif align=texttop>");
self.document.write("d. $10,000,000</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a9+"</b>. The answer is <b>a. </b></p>");
self.document.write("<hr>");
self.document.write("<h5><a href='demo-ab-quiz1.htm'>Back</a> | <a href='demo-ab-u02.htm'>Unit Two</a></h5>");
self.document.write("</body></html>");
self.document.close();
        return (correct);
}

