function Valid_Mark(theForm)
{
  var correct;
  var radioSelected = false;
  var a1,a2,a3,a4;
  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);
  }


  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";
                correct++;
	}
        if (theForm.Q2[1].checked)
		a2="b";
        if (theForm.Q2[2].checked)
		a2="c";
        if (theForm.Q2[3].checked)
		a2="d";   
        if (theForm.Q3[0].checked){
		a3="a";
                correct++;
	}
        if (theForm.Q3[1].checked)
		a3="b";
        if (theForm.Q3[2].checked)
		a3="c";
        if (theForm.Q3[3].checked)    
		a3="d";
        if (theForm.Q4[0].checked){
		a4="a";
                correct++;
	}
        if (theForm.Q4[1].checked)
		a4="b";
        if (theForm.Q4[2].checked)
		a4="c";
        if (theForm.Q4[3].checked)
		a4="d";   

        alert ("You have "+correct+" out of 4 correct!");
	percent=correct/4*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");
self.document.write("</title></head><body bgcolor=#FFFFFF>");
self.document.write("<h1>Progress Quiz</h1><p>");
self.document.write("<h2>You have "+correct+" out of 4 correct! "+percent+"%</h2><p>");
self.document.write("<hr>");
self.document.write("<p>1. A belief that is worth maintaining is a belief that</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. can withstand critical scrutiny.<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. doesn't need critical scrutiny.<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. should not be challenged.<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. cannot be doubted.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a1+"</b>. The answer is <b>a)</b> A belief that can't withstand scrutiny will show itself to be false.</p>");
self.document.write("<p>2. A critical thinker pays attention in order to identify and understand the:</p>");
self.document.write("<blockquote><p>");
if (a2=="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. argument.<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. main theme.<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. plan.<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. opinion.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <strong>"+a2+"</strong>. The answer is <strong>a)</strong> Critical thinking supplies criteria that help us to resolve disagreements rationally.</p>");
self.document.write("<p>3. Evaluating an argument involves</p>");
self.document.write("<blockquote><p>");
if (a3=="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. assessing the reasons given and their relationship to the conclusion.<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. dismissing the reasons given and their relationship to the conclusion.<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. assessing the reasons given, but ignoring their relationship to the conclusion.<br>");
if (a3=="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. assessing the conclusion, and reformulating the reasons given for the conclusion.</p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a3+"</b>. The answer is <b>a)</b> In evaluating an argument, we should assess whether the reasons give adequate support for the conclusion.</p>");
self.document.write("<p>4. What is the study of the methods and principles used to distinguish good reasoning from bad? </p>");
self.document.write("<blockquote><p>");
if (a4=="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. Logic<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. Science<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. Mathematics<br>");
if (a4=="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. Literary criticism </p>");
self.document.write("</blockquote>");
self.document.write("<p>You have entered <b>"+a4+"</b>. The answer is <b>a)</b> The word 'logic' derives from the Greek word 'logos', which means a reasoned account of why one should believe a view to be true.</p>");

self.document.write("<hr>");
self.document.write("<h5><a href='demo-ct-quiz.htm'>Back</a> | <a href='demo-ct.htm'>HOME</a></h5>");
self.document.write("</body></html>");
self.document.close();
        return (correct);
}
