can you anyone help me
i have hw make online quiz kind of question MCQ and Fill in the blank and Calculate the result of the test and show it to the user.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title> Quiz 1</title>
<script type="text/javascript">
// check result funcation
function checkQuiz()
{
var res=0;
for(var i=0; i < q1.length; i++) {
if(q1[i].checked) {
var ans = q1[i].value;
i = q1.length;
}
if (ans==" $400 million."){res=res+1;}
for(var i=0; i < q2.length; i++) {
if(q2[i].checked) {
var ans = q2[i].value;
i = q2.length;
}
if (ans=="$400 million."){res=res+1;}
for(var i=0; i < q3.length; i++) {
if(q3[i].checked) {
var ans = q3[i].value;
i = q3.length;
}
if (ans=="$400 million."){res=res+1;}
for(var i=0; i < q4.length; i++) {
if(q4[i].checked) {
var ans = q4[i].value;
i = q4.length;
}
if (ans=="$400 million."){res=res+1;}
document.write( "Your result " + res + " of 10 ");
var radBtns = new Array();
window.onload=function() {
q1 = document.getElementsByName("q1");
}
//function lower case
function lowerCase(y)
{
var x=document.getElementById(y).value;
document.getElementById(y).value=x.toLowerCase();
}
</script>
</head>
<body>
<form action="">
<p>Chose correct answer<br /></p>
<ol>
<li>The ACE Company has five plants nationwide that cost $100 million. The current market value of the plants is $500 million. The plants will be recorded and reported as assets at<br />
<p><input type="radio" name="q1" value="wrong"/> $100 million.<br />
<input type="radio" name="q1" value=" $400 million." /> $400 million.<br />
<input type="radio" name="q1" /> $500 million.<br />
<input type="radio" name="q1" /> $600 million.</p>
</li>
<li><p>Liabilities<br />
<input type="radio" name="q2" /> are future economic benefits.<br />
<input type="radio" name="q2" /> are existing debts and obligations.<br />
<input type="radio" name="q2" value="wrong"/> possess service potential.<br />
<input type="radio" name="q2" value="wrong"/> are things of value used by the business in its operation.<br />
</p></li>
<li><p>If total liabilities decreased by $15,000 and owner’s equity increased by $5,000 during a
period of time, then total assets must change by what amount and direction during that
same period?<br />
<input type="radio" name="q2" value="wrong"/> $20,000 increase<br />
<span id="correct2"><input type="radio" name="q2" value="correct"/> $10,000 decrease</span><br />
<input type="radio" name="q2" value="wrong"/> $10,000 increase<br />
<input type="radio" name="q2" value="wrong"/> $15,000 decrease<br />
</p></li>
<li><p>If total liabilities decreased by $15,000 and owner’s equity decreased by $5,000 during a period of time, then total assets must change by what amount and direction during that same period?<br />
<input type="radio" name="q2" value="wrong"/> $20,000 increase<br />
<input type="radio" name="q2" value="correct"/> $10,000 increase<br />
<input type="radio" name="q2" value="wrong"/> $20,000 decrease<br />
<input type="radio" name="q2" value="wrong"/> $10,000 decrease <br />
</p></li>
<li><p> If total liabilities increased by $14,000 during a period of time and owner’s equity decreased by $6,000 during the same period, then the amount and direction (increase or
decrease) of the period’s change in total assets is a(n)<br />
<input type="radio" name="q2" value="wrong"/> $14,000 increase.<br />
<input type="radio" name="q2" value="correct"/> $20,000 increase.<br />
<input type="radio" name="q2" value="wrong"/> $8,000 decrease.<br />
<input type="radio" name="q2" value="wrong"/> $8,000 increase.<br /> </p></li>
</ol>
<!--Fill in balnk-->
<p><br /> <br />Fill in the Blank</p>
<ol>
<li><p>Owner's equity is decreased by <input type="text" name="q2" id="q9" onblur="lowerCase(this.id)"/> .<br/></p>
</li>
<li><p>Liabilities of a company are owed to <input type="text" name="q2" id="q8" onblur="lowerCase(this.id)"/> .<br/></p>
</li>
<li><p>Accountants refer to an economic event as a <input type="text" name="q1" id="q6" onblur="lowerCase(this.id)"/> .<br/></p>
</li>
<li><p>A private accountant can perform many activities in a business organization but would not work in <input type="text" name="q2" id="q7" onblur="lowerCase(this.id)"/> .<br/></p>
</li>
<li><p>Keeping a systematic, chronological diary of events that are measured in dollars and cents is called <input type="text" name="q2" id="q10" onblur="lowerCase(this.id)"/> .<br/></p>
</li>
</ol>
<p align="center"><input type="button" onclick="checkQuiz()" value="Result"/></p>
</form>
</body>
</html>