<!DOCTYPE html>

<html>

<link rel="stylesheet" type="text/css" href="capitales_asie.css"></link>

 

<head>

<meta name="author" content="Adanedhel144"></meta>

<meta charset="UTF-8">

<title>Capitales d'Asie</title>

</head>

 

<body>

<div class='bande' id='bande'></div>

<p class='score' id='score'>0 / 46 | 0 %</p>

</body>

 

</html>

 

<script type="text/javascript">

 

var contents = new Array()

 

contents[0] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Afghanistan :</p></td><td><input id='AfgR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideAfg' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[1] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Arabie Saoudite :</p></td><td><input id='AraSaoR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideAraSao' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[2] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Arm&eacute;nie :</p></td><td><input id='ArmR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideArm' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[3] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Azerba&iuml;djan :</p></td><td><input id='AzeR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideAze' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[4] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Bahre&iuml;n :</p></td><td><input id='BahR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideBah' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[5] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Bangladesh :</p></td><td><input id='BanR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideBan' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[6] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Bhoutan :</p></td><td><input id='BhoR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideBho' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[7] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Birmanie ou Myanmar :</p></td><td><input id='BirR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideBir' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[8] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Brunei :</p></td><td><input id='BruR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideBru' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[9] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Cambodge :</p></td><td><input id='CamR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideCam' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[10] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Chine :</p></td><td><input id='ChiR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideChi' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[11] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Cor&eacute;e du Nord :</p></td><td><input id='CorNorR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideCorNor' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[12] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Cor&eacute;e du Sud :</p></td><td><input id='CorSudR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideCorSud' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[13] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>&Eacute;mirats Arabes Unis :</p></td><td><input id='EmiAraR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideEmiAra' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[14] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>G&eacute;orgie :</p></td><td><input id='GeoR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideGeo' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[15] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Inde :</p></td><td><input id='IndeR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideInde' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[16] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Indon&eacute;sie :</p></td><td><input id='IndoR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideIndo' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[17] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Irak :</p></td><td><input id='IrakR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideIrak' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[18] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Iran :</p></td><td><input id='IranR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideIran' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[19] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Isra&euml;l :</p></td><td><input id='IsrR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideIsr' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[20] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Japon :</p></td><td><input id='JapR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideJap' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[21] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Jordanie :</p></td><td><input id='JorR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideJor' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[22] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Kazakhstan :</p></td><td><input id='KazR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideKaz' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[23] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Kirghizistan :</p></td><td><input id='KirR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideKir' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[24] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Kowe&iuml;t :</p></td><td><input id='KowR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideKow' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[25] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Laos :</p></td><td><input id='LaoR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideLao' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[26] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Liban :</p></td><td><input id='LibR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideLib' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[27] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Malaisie :</p></td><td><input id='MalaR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideMala' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[28] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Mongolie :</p></td><td><input id='MonR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideMon' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[29] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>N&eacute;pal :</p></td><td><input id='NepR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideNep' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[30] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Oman :</p></td><td><input id='OmaR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideOma' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[31] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Ouzb&eacute;kistan :</p></td><td><input id='OuzR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideOuz' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[32] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Pakistan :</p></td><td><input id='PakR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aidePak' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[33] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Philippines :</p></td><td><input id='PhiR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aidePhi' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[34] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Qatar :</p></td><td><input id='QatR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideQat' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[35] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Russie :</p></td><td><input id='RusR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideRus' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[36] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Singapour :</p></td><td><input id='SinR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideSin' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[37] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Sri Lanka :</p></td><td><input id='SriLanR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideSriLan' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[38] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Syrie :</p></td><td><input id='SyrR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideSyr' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[39] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Tadjikistan :</p></td><td><input id='TadR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideTad' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[40] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Tha&iuml;lande :</p></td><td><input id='ThaR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideTha' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[41] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Turkm&eacute;nistan :</p></td><td><input id='TurkR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideTurk' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[42] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Turquie :</p></td><td><input id='TurqR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideTurq' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[43] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Viet N&acirc;m :</p></td><td><input id='VieNamR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideVieNam' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[44] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Yemen :</p></td><td><input id='YemR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideYem' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

contents[45] = "<table class='tableau' cellspacing='0' cellpadding='0'><tr><td class='pays_case'><p class='pays'>Maldives :</p></td><td><input id='MaldR' class='reponse' spellcheck='false' onclick='this.select()'></input></td><td><a href='#' onclick='return false' class='aide'><img id='aideMald' class='aide_logo' src='images/aide.png'></img></a></td></tr></table>"

 

var i = 0

var random

 

while (i < contents.length) {

random = Math.floor(Math.random() * contents.length)

 

if (contents[random] != "selected") {

document.write(contents[random])

contents[random] = "selected"

i++

}

}

document.onload = function() {

focus();

}

 

var scoreN = 0;

var scoreP = 0;

var scoreP1 = 0;

var scoreP2 = 0;

var redB = 200;

var greenB = 100;

var blueB = 100;

var bande = document.getElementById("bande");

var score = document.getElementById("score");

var aide = document.getElementById("aide");

var AfgR = document.getElementById("AfgR");

var AraSaoR = document.getElementById("AraSaoR");

var ArmR = document.getElementById("ArmR");

 

/* if reponse = reponse */

 

AfgR.onblur = function() {

if (this.value == "kaboul") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

green = (greenB + scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideAfg.src = "images/correct copy.png";

aideAfg.style.transform = "rotateX(360deg)";

aideAfg.style.webkitTransform = "rotateX(360deg)";

aideAfg.style.mozTransform = "rotateX(360deg)";

aideAfg.disabled = "1";

aideAfg.style.opacity = "1";

}

if (this.value != "kaboul" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

AraSaoR.onblur = function() {

if (this.value == "riyad") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideAraSao.src = "images/correct copy.png";

aideAraSao.style.transform = "rotateX(360deg)";

aideAraSao.style.webkitTransform = "rotateX(360deg)";

aideAraSao.style.mozTransform = "rotateX(360deg)";

aideAraSao.disabled = "1";

aideAraSao.style.opacity = "1";

}

if (this.value != "riyad" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

ArmR.onblur = function() {

if (this.value == "erevan" || this.value == "yerevan") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

blue = (blueB + (scoreP2 / 2));

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideArm.src = "images/correct copy.png";

aideArm.style.transform = "rotateX(360deg)";

aideArm.style.webkitTransform = "rotateX(360deg)";

aideArm.style.mozTransform = "rotateX(360deg)";

aideArm.disabled = "1";

aideArm.style.opacity = "1";

}

if (this.value != "erevan" && this.value != "yerevan" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

AzeR.onblur = function() {

if (this.value == "bakou") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideAze.src = "images/correct copy.png";

aideAze.style.transform = "rotateX(360deg)";

aideAze.style.webkitTransform = "rotateX(360deg)";

aideAze.style.mozTransform = "rotateX(360deg)";

aideAze.disabled = "1";

aideAze.style.opacity = "1";

}

if (this.value != "bakou" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

BahR.onblur = function() {

if (this.value == "manama") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideBah.src = "images/correct copy.png";

aideBah.style.transform = "rotateX(360deg)";

aideBah.style.webkitTransform = "rotateX(360deg)";

aideBah.style.mozTransform = "rotateX(360deg)";

aideBah.disabled = "1";

aideBah.style.opacity = "1";

}

if (this.value != "manama" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

BanR.onblur = function() {

if (this.value == "dacca" || this.value == "dakha") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideBan.src = "images/correct copy.png";

aideBan.style.transform = "rotateX(360deg)";

aideBan.style.webkitTransform = "rotateX(360deg)";

aideBan.style.mozTransform = "rotateX(360deg)";

aideBan.disabled = "1";

aideBan.style.opacity = "1";

}

if (this.value != "dacca" && this.value != "dakha" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

BhoR.onblur = function() {

if (this.value == "thimphou") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideBho.src = "images/correct copy.png";

aideBho.style.transform = "rotateX(360deg)";

aideBho.style.webkitTransform = "rotateX(360deg)";

aideBho.style.mozTransform = "rotateX(360deg)";

aideBho.disabled = "1";

aideBho.style.opacity = "1";

}

if (this.value != "thimphou" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

BirR.onblur = function() {

if (this.value == "naypyidaw") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideBir.src = "images/correct copy.png";

aideBir.style.transform = "rotateX(360deg)";

aideBir.style.webkitTransform = "rotateX(360deg)";

aideBir.style.mozTransform = "rotateX(360deg)";

aideBir.disabled = "1";

aideBir.style.opacity = "1";

}

if (this.value != "naypyidaw" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

BruR.onblur = function() {

if (this.value == "bandar seri begawan") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideBru.src = "images/correct copy.png";

aideBru.style.transform = "rotateX(360deg)";

aideBru.style.webkitTransform = "rotateX(360deg)";

aideBru.style.mozTransform = "rotateX(360deg)";

aideBru.disabled = "1";

aideBru.style.opacity = "1";

}

if (this.value != "bandar seri begawan" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

CamR.onblur = function() {

if (this.value == "phnom penh") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideCam.src = "images/correct copy.png";

aideCam.style.transform = "rotateX(360deg)";

aideCam.style.webkitTransform = "rotateX(360deg)";

aideCam.style.mozTransform = "rotateX(360deg)";

aideCam.disabled = "1";

aideCam.style.opacity = "1";

}

if (this.value != "phnom penh" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

ChiR.onblur = function() {

if (this.value == "pekin" || this.value == "beijing") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideChi.src = "images/correct copy.png";

aideChi.style.transform = "rotateX(360deg)";

aideChi.style.webkitTransform = "rotateX(360deg)";

aideChi.style.mozTransform = "rotateX(360deg)";

aideChi.disabled = "1";

aideChi.style.opacity = "1";

}

if (this.value != "pekin" && this.value != "beijing" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

CorNorR.onblur = function() {

if (this.value == "pyongyang") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideCorNor.src = "images/correct copy.png";

aideCorNor.style.transform = "rotateX(360deg)";

aideCorNor.style.webkitTransform = "rotateX(360deg)";

aideCorNor.style.mozTransform = "rotateX(360deg)";

aideCorNor.disabled = "1";

aideCorNor.style.opacity = "1";

}

if (this.value != "pyongyang" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

CorSudR.onblur = function() {

if (this.value == "seoul") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideCorSud.src = "images/correct copy.png";

aideCorSud.style.transform = "rotateX(360deg)";

aideCorSud.style.webkitTransform = "rotateX(360deg)";

aideCorSud.style.mozTransform = "rotateX(360deg)";

aideCorSud.disabled = "1";

aideCorSud.style.opacity = "1";

}

if (this.value != "seoul" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

EmiAraR.onblur = function() {

if (this.value == "abu dhabi" || this.value == "abou dhabi" || this.value == "abu dabi" || this.value == "abou dabi") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideEmiAra.src = "images/correct copy.png";

aideEmiAra.style.transform = "rotateX(360deg)";

aideEmiAra.style.webkitTransform = "rotateX(360deg)";

aideEmiAra.style.mozTransform = "rotateX(360deg)";

aideEmiAra.disabled = "1";

aideEmiAra.style.opacity = "1";

}

if (this.value != "abu dhabi" && this.value != "abou dhabi" && this.value != "abu dabi" && this.value != "abou dabi" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

GeoR.onblur = function() {

if (this.value == "tbilissi") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideGeo.src = "images/correct copy.png";

aideGeo.style.transform = "rotateX(360deg)";

aideGeo.style.webkitTransform = "rotateX(360deg)";

aideGeo.style.mozTransform = "rotateX(360deg)";

aideGeo.disabled = "1";

aideGeo.style.opacity = "1";

}

if (this.value != "tbilissi" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

IndeR.onblur = function() {

if (this.value == "new delhi") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideInde.src = "images/correct copy.png";

aideInde.style.transform = "rotateX(360deg)";

aideInde.style.webkitTransform = "rotateX(360deg)";

aideInde.style.mozTransform = "rotateX(360deg)";

aideInde.disabled = "1";

aideInde.style.opacity = "1";

}

if (this.value != "new delhi" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

IndoR.onblur = function() {

if (this.value == "jakarta" || this.value == "djakarta") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideIndo.src = "images/correct copy.png";

aideIndo.style.transform = "rotateX(360deg)";

aideIndo.style.webkitTransform = "rotateX(360deg)";

aideIndo.style.mozTransform = "rotateX(360deg)";

aideIndo.disabled = "1";

aideIndo.style.opacity = "1";

}

if (this.value != "jakarta" && this.value != "djakarta" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

IrakR.onblur = function() {

if (this.value == "bagdad") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideIrak.src = "images/correct copy.png";

aideIrak.style.transform = "rotateX(360deg)";

aideIrak.style.webkitTransform = "rotateX(360deg)";

aideIrak.style.mozTransform = "rotateX(360deg)";

aideIrak.disabled = "1";

aideIrak.style.opacity = "1";

}

if (this.value != "bagdad" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

IranR.onblur = function() {

if (this.value == "teheran") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideIran.src = "images/correct copy.png";

aideIran.style.transform = "rotateX(360deg)";

aideIran.style.webkitTransform = "rotateX(360deg)";

aideIran.style.mozTransform = "rotateX(360deg)";

aideIran.disabled = "1";

aideIran.style.opacity = "1";

}

if (this.value != "teheran" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

IsrR.onblur = function() {

if (this.value == "tel aviv") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideIsr.src = "images/correct copy.png";

aideIsr.style.transform = "rotateX(360deg)";

aideIsr.style.webkitTransform = "rotateX(360deg)";

aideIsr.style.mozTransform = "rotateX(360deg)";

aideIsr.disabled = "1";

aideIsr.style.opacity = "1";

}

if (this.value != "tel aviv" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

JapR.onblur = function() {

if (this.value == "tokyo") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideJap.src = "images/correct copy.png";

aideJap.style.transform = "rotateX(360deg)";

aideJap.style.webkitTransform = "rotateX(360deg)";

aideJap.style.mozTransform = "rotateX(360deg)";

aideJap.disabled = "1";

aideJap.style.opacity = "1";

}

if (this.value != "tokyo" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

JorR.onblur = function() {

if (this.value == "amman") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideJor.src = "images/correct copy.png";

aideJor.style.transform = "rotateX(360deg)";

aideJor.style.webkitTransform = "rotateX(360deg)";

aideJor.style.mozTransform = "rotateX(360deg)";

aideJor.disabled = "1";

aideJor.style.opacity = "1";

}

if (this.value != "amman" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

KazR.onblur = function() {

if (this.value == "astana") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideKaz.src = "images/correct copy.png";

aideKaz.style.transform = "rotateX(360deg)";

aideKaz.style.webkitTransform = "rotateX(360deg)";

aideKaz.style.mozTransform = "rotateX(360deg)";

aideKaz.disabled = "1";

aideKaz.style.opacity = "1";

}

if (this.value != "astana" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

KirR.onblur = function() {

if (this.value == "bichkek") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideKir.src = "images/correct copy.png";

aideKir.style.transform = "rotateX(360deg)";

aideKir.style.webkitTransform = "rotateX(360deg)";

aideKir.style.mozTransform = "rotateX(360deg)";

aideKir.disabled = "1";

aideKir.style.opacity = "1";

}

if (this.value != "bichkek" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

KowR.onblur = function() {

if (this.value == "koweit") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideKow.src = "images/correct copy.png";

aideKow.style.transform = "rotateX(360deg)";

aideKow.style.webkitTransform = "rotateX(360deg)";

aideKow.style.mozTransform = "rotateX(360deg)";

aideKow.disabled = "1";

aideKow.style.opacity = "1";

}

if (this.value != "koweit" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

LaoR.onblur = function() {

if (this.value == "vientiane") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideLao.src = "images/correct copy.png";

aideLao.style.transform = "rotateX(360deg)";

aideLao.style.webkitTransform = "rotateX(360deg)";

aideLao.style.mozTransform = "rotateX(360deg)";

aideLao.disabled = "1";

aideLao.style.opacity = "1";

}

if (this.value != "vientiane" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

LibR.onblur = function() {

if (this.value == "beyrouth") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideLib.src = "images/correct copy.png";

aideLib.style.transform = "rotateX(360deg)";

aideLib.style.webkitTransform = "rotateX(360deg)";

aideLib.style.mozTransform = "rotateX(360deg)";

aideLib.disabled = "1";

aideLib.style.opacity = "1";

}

if (this.value != "beyrouth" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

MalaR.onblur = function() {

if (this.value == "kuala lumpur") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideMala.src = "images/correct copy.png";

aideMala.style.transform = "rotateX(360deg)";

aideMala.style.webkitTransform = "rotateX(360deg)";

aideMala.style.mozTransform = "rotateX(360deg)";

aideMala.disabled = "1";

aideMala.style.opacity = "1";

}

if (this.value != "kuala lumpur" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

MaldR.onblur = function() {

if (this.value == "male") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideMald.src = "images/correct copy.png";

aideMald.style.transform = "rotateX(360deg)";

aideMald.style.webkitTransform = "rotateX(360deg)";

aideMald.style.mozTransform = "rotateX(360deg)";

aideMald.disabled = "1";

aideMald.style.opacity = "1";

}

if (this.value != "male" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

MonR.onblur = function() {

if (this.value == "oulan bator") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideMon.src = "images/correct copy.png";

aideMon.style.transform = "rotateX(360deg)";

aideMon.style.webkitTransform = "rotateX(360deg)";

aideMon.style.mozTransform = "rotateX(360deg)";

aideMon.disabled = "1";

aideMon.style.opacity = "1";

}

if (this.value != "oulan bator" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

NepR.onblur = function() {

if (this.value == "kathmandou" || this.value == "katmandou" || this.value == "kathmandu" || this.value == "katmandu") {

this.style.background = "rgba(255, 255, 255, 0)";

this.style.color = "white";

this.disabled = "1";

scoreN = scoreN + 1;

scoreP = (scoreN / 46) * 100;

scoreP1 = scoreP.toFixed(1);

scoreP2 = parseInt(scoreP1);

score.innerHTML = scoreN + " / 46 | " + scoreP1 + " %";

bande.style.width = scoreP1 + "vw";

red = (redB - scoreP2);

green = (greenB + scoreP2);

blue = (blueB + (scoreP2 / 2));

document.body.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

score.style.background = "rgb(" + red + ", " + green + ", " + blue + ")";

aideNep.src = "images/correct copy.png";

aideNep.style.transform = "rotateX(360deg)";

aideNep.style.webkitTransform = "rotateX(360deg)";

aideNep.style.mozTransform = "rotateX(360deg)";

aideNep.disabled = "1";

aideNep.style.opacity = "1";

}

if (this.value != "kathmandou" && this.value != "katmandou" && this.value != "kathmandu" && this.value != "katmandu" && this.value != "") {

this.style.color = "rgb(200, 50, 50)";

}

}

 

 

</script>