fill in the blank and multiple choice quiz
<p>I was wondering if someone could help me? In my code below what if answers in question 2 were allowed to be in any order? Like: hips,body,knees or knees,hips,body and so on. How should I modify my code? Anyone please????</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Quiz&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html;charset=utf-8" /&gt;
&lt;script type="text/javascript"&gt;
var answer_list = [
    ['False'],
    ['body,hips,knees']

// Note: No comma after final entry
];

var response = [];

function getCheckedValue(radioObj) {
    if(!radioObj)
        return "";
    var radioLength = radioObj.length;
    if(radioLength == undefined)
        if(radioObj.checked)
            return radioObj.value;
        else
            return "";
    for(var i = 0; i &lt; radioLength; i++) {
        if(radioObj[i].checked) {
            return radioObj[i].value;
        }
    }
    return "";
}

function setAnswer(question, answer) {
    response[question] = answer;
}

function CheckAnswers() {
    var correct = 0;
    var resp, answ;
    for (var i = 0; i &lt; answer_list.length; i++) {
        resp = response[i].toString();
        resp = resp.toLowerCase();
        answ = answer_list[i].toString();
        answ = answ.toLowerCase();
//#################################################################################################
        if (resp == answ) {
            correct++;
            if(i==0){
                document.forms[0].a1c.style.backgroundImage="url('correct.gif')";
                document.forms[0].a1c.value = "";
            }
            else{
                document.forms[0].a1d.style.backgroundImage="url('correct.gif')";
                document.forms[0].a1d.value = "";
            }
        }
        else{
            if(i==0){
                document.forms[0].a1c.style.backgroundImage = "url('incorrect.gif')";
                document.forms[0].a1c.value = " ANS: False. Position the head snugly against the top bar of the frame and then bring the foot board to the infant's feet.";
            }
            else{
                document.forms[0].a1d.style.backgroundImage = "url('incorrect.gif')";
                document.forms[0].a1d.value = " ANS: " + answ;
            }
//###################################################################################################
        }
    }
    document.writeln("You got " + correct + " of " + answer_list.length + " questions correct!");
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="" method="post"&gt;
&lt;div&gt;
&lt;b&gt;1. When measuring height/length of a child who cannot securely stand, place the infant such that his or her feet are flat against the foot board.&lt;/b&gt;&lt;br /&gt;
&lt;label&gt;&lt;input type="radio" name="question0" value="True" /&gt;True&lt;/label&gt;
&lt;label&gt;&lt;input type="radio" name="question0" value="False" /&gt;False&lt;/label&gt;
&lt;br /&gt;
&lt;textarea rows="2" cols="85" name="a1c" style="background-repeat:no-repeat"&gt;&lt;/textarea&gt;
&lt;br /&gt;
&lt;b&gt;2. When taking a supine length measurement, straighten the infant's
&lt;input type="text" name="question1_a" size="10" /&gt;, 
&lt;input type="text" name="question1_b" size="10" /&gt;, and 
&lt;input type="text" name="question1_c" size="10" /&gt;.&lt;/b&gt;
&lt;br /&gt;
&lt;textarea rows="2" cols="85" name="a1d" style="background-repeat:no-repeat"&gt;&lt;/textarea&gt;
&lt;br /&gt;
&lt;input type="button" name="check" value="Check Answers" onclick="setAnswer(0,getCheckedValue(document.forms[0].question0));setAnswer(1,[document.forms[0].question1_a.value,document.forms[0].question1_b.value,document.forms[0].question1_c.value]);CheckAnswers();" /&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
