var whichone=1
function generatequestions(){

document.getElementById("thesolution").innerHTML="\n";
document.foodquiz.responseone.checked=false;
document.foodquiz.responsetwo.checked=false;
document.foodquiz.responsethree.checked=false;
document.foodquiz.responsefour.checked=false;

document.getElementById("theintroduction").innerHTML="Question "+whichone+" of "+total;
document.getElementById("thequestion").innerHTML=question[whichone];
document.getElementById("response1").innerHTML=eval('choice'+whichone+'[1]');
document.getElementById("response2").innerHTML=eval('choice'+whichone+'[2]');
document.getElementById("response3").innerHTML=eval('choice'+whichone+'[3]');
document.getElementById("response4").innerHTML=eval('choice'+whichone+'[4]');

}


function responses(yourresponse){
document.getElementById('thebutton').style.display='block';
if (yourresponse!=solution[whichone])
document.getElementById("thesolution").innerHTML='<b>'+'<font color="#FF0033 >">' + "Sorry, that's not it."+'</font>'+'</b>'+explanation[whichone]
else{document.getElementById("thesolution").innerHTML='<b>'+'<font color="#00C000 >">' + "You're right!  "+'</font>'+'</b>'+explanation[whichone]
}
}

