function Valid_Mark(theForm)
{
  var correct;
  var radioSelected = false;
  var a1,a2,a3;
  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);
  }


         correct=0;
        if (theForm.Q1[0].checked)
		a1="a";
        if (theForm.Q1[1].checked){
		a1="b"; 
                correct++;
	}
        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";
        if (theForm.Q2[2].checked)
		a2="c";
        if (theForm.Q2[3].checked){
		a2="d";   
                correct++;
	}
        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++;
	}

        alert ("You have "+correct+" out of 3 correct!");
	percent=correct/3*100;
	percent=Math.round(percent);

self.document.open("text/html","replace");
self.document.write("<html><head><title>Progress Quiz 1");
self.document.write("</title></head><body bgcolor=#FFFFFF>");
self.document.write("<h1>Unit One Progress Quiz</h1>");
self.document.write("<hr>");
self.document.write("<h2>You have "+correct+" out of 3 correct! "+percent+"%</h2><p>");
self.document.write("<p>1. Which of the following variables forms the basis of Statistics Canada's definition of a small business ?</p>");
self.document.write("<blockquote>");
if (a1=="a")
	self.document.write("<p><img src=images/cross.gif align=texttop>");
else
	self.document.write("<p><img src=images/circle.gif align=texttop>");
self.document.write("a) gross revenues<br>");
if (a1=="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) number of employees<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) net income<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) ownership structure</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a1+"</b>. The answer is <b>b</b>); Statistics Canada defines small businesses to include those with less than 100 employees in manufacturing and less than 50 employees in other sectors.</p>");
self.document.write("<p>2. Factors commonly cited as contributing to small businesses&#146; innovative capabilities generally <u>do not</u> include:</p>");
self.document.write("<blockquote>");
if (a2=="a")
	self.document.write("<p><img src=images/cross.gif align=texttop>");
else
	self.document.write("<p><img src=images/circle.gif align=texttop>");
self.document.write("a) marketing<br>");
if (a2=="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) entrepreneurial management<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) internal communication<br>");
if (a2=="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) finances</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <strong>"+a2+"</strong>. The answer is <strong>d)</strong>; small businesses are characterized by limited financial resources<br> </p>");
self.document.write("<p>3. In efforts to support small business growth, government initiatives include all but which of the following:</p>");
self.document.write("<blockquote>");
if (a3=="a")
	self.document.write("<p><img src=images/cross.gif align=texttop>");
else
	self.document.write("<p><img src=images/circle.gif align=texttop>");
self.document.write("a) improving access to government information<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) reducing ‘red tape’<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) encouraging small business-education partnerships<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) increasing protective barriers to trade</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a3+"</b>. The answer is <b>d)</b>; the Government supports reducing trade barriers to promote export market development and international business.</p>");
self.document.write("<hr>");
self.document.write("<h5><a href='demo-sb-quiz.htm'>Back</a> | <a href='demo-sb-audio.htm'>Unit 1</a></h5>");
self.document.write("</body></html>");
self.document.close();
        return (correct);
}
