/**

 */
var answer = new Array("dummy",1,1,1,0,0,1,1,1,0,0);
var topsize=10;
var texty = new Array(
"And you kept wondering: where's the mother milk?",
"Ever wondered what those nipples were doing on her ass?",
"Take some biology classes. You can better!",
"Your mother never breastfed you, did she?",
"In one hand a breast in the other a bottom cheek. It's all so confusing.",
"Try, try, try again. Remember: a breast has a nipple.",
"Getting there, you've just missed a few boobies out there. Or were they ass cheeks?",
"I know you can do better. You have the potential.",
"You're almost a natural. Keep studying those breasts and bottoms some more.",
"Just one breast amputated. Not bad at all.",
"Congratulations! A perfect score! You must be a woman :-).");

var imageright = new Array(
"dummy",
"01_a.jpg",
"02_a.jpg",
"03_a.jpg",
"04_a.jpg",
"05_a.jpg",
"06_a.jpg",
"07_a.jpg",
"08_a.jpg",
"09_a.jpg",
"10_a.jpg");

var imagewrong = new Array(
"dummy",
"01_b.jpg",
"02_b.jpg",
"03_b.jpg",
"04_b.jpg",
"05_b.jpg",
"06_b.jpg",
"07_b.jpg",
"08_b.jpg",
"09_b.jpg",
"10_b.jpg");

function ResetQuiz()
{
var count=0;
while (count++<topsize)
 {
 eval("document.a"+count+".src='images2/none.gif'");
 eval("document.form.s" + count + "[0].disabled=false");
 eval("document.form.s" + count + "[1].disabled=false");
 eval("document.form.s" + count + "[0].checked=false");
 eval("document.form.s" + count + "[1].checked=false")
 }
}

function check()
{
var count=0;
var score=0;
var finished=0;
while (count++<topsize)
  {
        var checkx;
  if ((eval("document.form.s" + count + "[0].checked")) ||
     (eval("document.form.s" + count + "[1].checked")))
    {
                if (eval("document.form.s" + count + "[0].checked"))
                {checkx = 0;}
                if (eval("document.form.s" + count + "[1].checked"))
                {checkx = 1;}
                //alert (checkx);
     if (checkx ==  answer[count])
     {score++;eval("document.a"+count+".src='images2/" + imageright[count] +"'");}
     else
     {eval("document.a"+count+".src='images2/" + imagewrong[count] +"'");}
     eval("document.form.s" + count + "[0].disabled='true'");
     eval("document.form.s" + count + "[1].disabled='true'");
     finished++;
    }
 }

if (finished==topsize)
{
alert(texty[score]+"\n\n"+"You scored "+score+"/"+topsize+"\n\nPressing OK will restart the quiz.");
location.href="#";
ResetQuiz();
}
}


