var a = 0
var b = 0
var c = 0
var d = 0
var e = 0
var f = 0
var g = 0
var h = 0
var i = 0
var j = 0
sum = 0

function one()  { 
        a=1
        }

function two()  {
        b=1
        }

function three()  { 
        c=1
        }

function four()  { 
        d=1
        }

function five()  { 
        e=1
        }

function six()  { 
        f=1
        }

function seven()  { 
        g=1
        }

function eight()  { 
        h=1
        }

function nine()  { 
        i=1
        }

function ten()  { 
        j=1
        }

function oneX() {
        a=0
        }

function twoX() {
        b=0
        }

function threeX() {
        c=0
        }

function fourX() {
        d=0
        }

function fiveX() {
        e=0
        }

function sixX() {
        f=0
        }

function sevenX() {
        g=0
        }

function eightX() {
        h=0
        }

function nineX() {
        i=0
        }

function tenX() {
        j=0
        }

function compute(form) {
        sum = (a + b + c + d + e + f + g + h + i + j)

        if (sum == 0)
        {alert("You got " + sum  + " out of 10 \n Try again, don't be dissapointed!") 
        location="quiz_try.php"}

        if (sum == 1 || sum == 2 || sum == 3)
        {alert("You got " + sum + " out of 10 \n Come on, keep trying!")
        location="quiz_try.php"}

        if (sum == 4)
        {alert("You got " + sum + " out of 10 \n You should read the info about AC Milan very well.")
         location="quiz_try.php"}

         if (sum == 5)
        {alert("You got " + sum + " out of 10 \n You're half a way to the next level. Keep it up!")
        location="quiz_try.php"}

         if (sum == 6 || sum == 7)
        {alert("You got " + sum + " out of 10 \n Pretty good. Keep trying.")
        location="quiz_try.php"}
 
        if (sum == 8 || sum == 9)
        {alert("You got " + sum + " out of 10 \n Very close! Not far from next level!")
        location="quiz_try.php"}

         if (sum == 10)
        {alert("You got " + sum + " out of 10 \n Brilliant! You're now ready to progress to the next round. Congratulations!")
        location="quiz2.php"}

}

//-->

<!-- Begin
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,status=yes,scrollbars=no,height=305,width=300");
}
// End -->

<!-- Begin
function myformHandler(myform){
var URL = document.myform.content.options[document.myform.content.selectedIndex].value;
window.location.href = URL;
// End -->
}

<!-- Begin
function worldcupsHandler(worldcups){
var URL = document.worldcups.dest.options[document.worldcups.dest.selectedIndex].value;
window.location.href = URL;
// End -->
}