/**

 */
var answer = new Array("dummy",1,0,1,0,0,1,1,0,1,01,1,0,0,0,0,1);
var topsize=16;
var texty = new Array(
"Did you even look?",
"It's called a fuck-face.",
"See, there's thing called sex...",
"Well, there's this place on your body that feels...funny",
"Clue: Beads of sweat",
"Clue: Flushing of face and chest",
"Hmmm, time to rent some porn.",
"Has it been that long since you've done this with another person?.",
"Half right. Maybe some practice in front of a mirror?.",
"Well, that's just not very good, is it?",
"Not bad, not bad. Not that good. But not bad.",
"Not bad! Your score goes to 11",
"Pretty good!  Are you a professional?",
"Oooh, aren't you the naughty one!",
"You've directed haven't you?",
"One away from perfect!",
"Congratulations!  You know fuck face from your game face!");

var imageright = new Array(
"dummy",
"01_b.gif",
"02_b.gif",
"03_b.gif",
"04_b.gif",
"05_b.gif",
"06_b.gif",
"07_b.gif",
"08_b.gif",
"09_b.gif",
"10_b.gif",
"11_b.gif",
"12_b.gif",
"13_b.gif",
"14_b.gif",
"15_b.gif",
"16_b.gif");

var imagewrong = new Array(
"dummy",
"01_a.gif",
"02_a.gif",
"03_a.gif",
"04_a.gif",
"05_a.gif",
"06_a.gif",
"07_a.gif",
"08_a.gif",
"09_a.gif",
"10_a.gif",
"11_a.gif",
"12_a.gif",
"13_a.gif",
"14_a.gif",
"15_a.gif",
"16_a.gif");

function ResetQuiz()
{
var count=0;
while (count++<topsize)
 {
 eval("document.a"+count+".src='sorse_images/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='sorse_images/" + imageright[count] +"'");}
     else
     {eval("document.a"+count+".src='sorse_images/" + 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();
}
}



