var sone = 0; var stwo = 0; var sthree = 0; var sfour = 0; var sfive = 0; var ssix = 0; function checkScore1() { if (document.form1.one.value == one) { sone = 1; document.images.one.src=tick; } 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 checkScore11() { if (cheat >=1) { clear(); alert("Click on Reset to have another go!"); } else { checkScore1(); checkScore2(); checkScore3(); checkScore4(); checkScore5(); checkScore6(); ; score = sone+stwo+sthree+sfour+sfive+ssix; alert("Your score is "+score+" / 6"); } } 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; cheat++; clear(); } function again() { cheat = 0; score = 0; var sone = 0; var stwo = 0; var sthree = 0; var sfour = 0; var sfive = 0; var ssix = 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"; } function clear() { 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"; }