var sone = 0;
var stwo = 0;
var sthree = 0;
var sfour = 0;
var sfive = 0;
var ssix = 0;
var sseven = 0;
var seight = 0;


function checkScore1() {
if (document.form1.one.value == one) {
sone = 1;
document.images.one.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.one.src="/images/elt/product_site_graphics/clockcross.gif";
}
}
function checkScore2() {
if (document.form1.two.value == two) {
stwo = 1;
document.images.two.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.two.src="/images/elt/product_site_graphics/clockcross.gif";
}
}
function checkScore3() {
if (document.form1.three.value == three) {
sthree = 1;
document.images.three.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.three.src="/images/elt/product_site_graphics/clockcross.gif";
}
}
function checkScore4() {
if (document.form1.four.value == four) {
sfour = 1;
document.images.four.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.four.src="/images/elt/product_site_graphics/clockcross.gif";

}
}
function checkScore5() {
if (document.form1.five.value == five) {
sfive = 1;
document.images.five.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.five.src="/images/elt/product_site_graphics/clockcross.gif";
}
}
function checkScore6() {
if (document.form1.six.value == six) {
ssix = 1;
document.images.six.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.six.src="/images/elt/product_site_graphics/clockcross.gif";
}
}
function checkScore7() {
if (document.form1.seven.value == seven) {
sseven = 1;
document.images.seven.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.seven.src="/images/elt/product_site_graphics/clockcross.gif";
}
}
function checkScore8() {
if (document.form1.eight.value == eight) {
seight = 1;
document.images.eight.src="/images/elt/product_site_graphics/clocktick.gif";
} else {
document.images.eight.src="/images/elt/product_site_graphics/clockcross.gif";
}
}

function checkScore11() {

if (cheat >=1) {
alert("Press Reset to have another go!");
} else {
checkScore1();
checkScore2();
checkScore3();
checkScore4();
checkScore5();
checkScore6();
checkScore7();
checkScore8();
score = sone+stwo+sthree+sfour+sfive+ssix+sseven+seight;

alert("Your score is "+score+" / 8");
}
}

function reveal() {
document.form1.one.value = one;
document.form1.two.value = two;
document.form1.three.value = three;
document.form1.four.value = four;
document.form1.five.value = five;
document.form1.six.value = six;
document.form1.seven.value = seven;
document.form1.eight.value = eight;
cheat++;


}
function again() {
cheat = 0;
score = 0;
document.images.one.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.two.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.three.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.four.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.five.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.six.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.seven.src="/images/elt/product_site_graphics/clocktransparent.gif";
document.images.eight.src="/images/elt/product_site_graphics/clocktransparent.gif";
}

