<!doctype html>
<html>
<head>
<title>Background Layer Wording - RJM Programming - June, 2019 ... 1</title>
<meta charset="utf-8"/>
<style>
margin: 0 0 0 0;
padding: 0 0 0 0;
</style>
<script type='text/javascript'>
var aconto=null;
var cis=-4;
var allow=true;
var se='startsas=';
var pb='';
var tap='', tai='';
var h3a=(location.search.split('h3a=')[1] ? decodeURIComponent(location.search.split('h3a=')[1]).split('&')[0] : '');
var xh3a='';
var score=(location.search.split('score=')[1] ? eval(decodeURIComponent(location.search.split('score=')[1]).split('&')[0].split('.')[0]) : 0);
var goes=(location.search.split('score=')[1] ? eval(decodeURIComponent(location.search.split('score=')[1]).split('&')[0].split('.')[1]) : 0);
var documentURL=document.URL;
var is_teletext_quiz=(location.search.split('quiz=')[1] ? true : false);
var qsuffix=(location.search.split('quiz=')[1] ? "~" : "");
var capitals=[], countries=[], choice, question='', answer='', iq=0, correct=true;
var hangabout=false;
var qt=(location.search.split('qt=')[1] ? decodeURIComponent(location.search.split('qt=')[1]).split('&')[0] : '');
var et=(location.search.split('et=')[1] ? decodeURIComponent(location.search.split('et=')[1]).split('&')[0] : '');
var qp=(location.search.split('qp=')[1] ? decodeURIComponent(location.search.split('qp=')[1]).split('&')[0] : '');
var ep=(location.search.split('ep=')[1] ? decodeURIComponent(location.search.split('ep=')[1]).split('&')[0] : '');
function athen() {
document.getElementById('ibut').click();
}
function okp(event) {
switch (event.keyCode) {
case 13:
// alert(54);
setTimeout(athen, 1000);
document.getElementById('oob').focus();
break;
default:
}
}
function linkit(aplace) {
var lplace=aplace;
var origqt=qt;
var origet=et;
if (qp != '') {
qt=(location.search.split('qt=')[1] ? decodeURIComponent(location.search.split('qt=')[1]).split('&')[0] : '');
et=(location.search.split('et=')[1] ? decodeURIComponent(location.search.split('et=')[1]).split('&')[0] : '');
qp=(location.search.split('qp=')[1] ? decodeURIComponent(location.search.split('qp=')[1]).split('&')[0] : '');
ep=(location.search.split('ep=')[1] ? decodeURIComponent(location.search.split('ep=')[1]).split('&')[0] : '');
if (qp.indexOf('Which country is ') != -1 && qt.indexOf('Which country is ') == -1) {
qt='Which country is ';
et=' the capital of?';
} else if (qp.indexOf('What is the capital of the country ') != -1 && qt.indexOf('What is the capital of the country ') == -1) {
qt='What is the capital of the country ';
et='?';
}
//alert('aplace=' + aplace + ' qp=' + qp + ' and qt=' + qt);
}
if (qt == 'Which country is ') {
// https://www.google.com/search?q=Port+Moresby&rlz=1C5CHFA_enAU832AU832&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiitfiiioHjAhVMVH0KHXyJDmcQ_AUIESgC&biw=1440&bih=746
if (aplace.indexOf(qt) != -1) {
lplace=qt + '<a target=_blank title="' + aplace.split(qt)[1].split(et)[0] + '" href="//www.google.com/search?q=' + encodeURIComponent(aplace.split(qt)[1].split(et)[0]) + '&source=lnms&tbm=isch">' + aplace.split(qt)[1].split(et)[0] + '</a>' + et;
} else {
lplace='<a target=_blank title="' + aplace + '" href="//www.google.com/search?q=' + encodeURIComponent(aplace) + '">' + aplace + '</a>';
}
} else if (qt == 'What is the capital of the country ') {
// https://www.google.com/search?q=new+guinea&rlz=1C5CHFA_enAU832AU832&oq=New+Guinea&aqs=chrome.0.0l6.3815j0j4&sourceid=chrome&ie=UTF-8
if (aplace.indexOf(qt) != -1) {
lplace=qt + '<a target=_blank title="' + aplace.split(qt)[1].split(et)[0] + '" href="//www.google.com/search?q=' + encodeURIComponent(aplace.split(qt)[1].split(et)[0]) + '">' + aplace.split(qt)[1].split(et)[0] + '</a>' + et;
} else {
lplace='<a target=_blank title="' + aplace + '" href="//www.google.com/search?q=' + encodeURIComponent(aplace) + '&source=lnms&tbm=isch">' + aplace + '</a>';
}
}
//alert('qt=' + qt + ' ' + ' top.qt=' + top.qt + ' ' + lplace);
if (qp != '') {
qt=origqt;
et=origet;
}
return lplace;
}
function adjustscore() {
if (correct) {
top.document.getElementById('myh3').innerHTML=top.document.getElementById('myh3').innerHTML.split(' ... ')[0];
parent.document.getElementById('myh3').innerHTML=parent.document.getElementById('myh3').innerHTML.split(' ... ')[0];
aconto.getElementById('myh3').innerHTML=aconto.getElementById('myh3').innerHTML.split(' ... ')[0];
xh3a='';
top.xh3a='';
postadjustscore();
swapthem();
} else {
top.document.getElementById('myh3').innerHTML=top.document.getElementById('myh3').innerHTML.split(' ... ')[0] + ' ... ' + linkit(question) + ' ' + linkit(answer);
parent.document.getElementById('myh3').innerHTML=parent.document.getElementById('myh3').innerHTML.split(' ... ')[0] + ' ... ' + linkit(question) + ' ' + linkit(answer);
aconto.getElementById('myh3').innerHTML=aconto.getElementById('myh3').innerHTML.split(' ... ')[0] + ' ... ' + linkit(question) + ' ' + linkit(answer);
if (1 == 1) {
xh3a='&qt=' + encodeURIComponent(qt) + '&et=' + encodeURIComponent(et) + '&qp=' + encodeURIComponent(question) + '&ep=' + encodeURIComponent(answer);
} else {
xh3a='&h3a=' + encodeURIComponent((' ... ' + linkit(question) + ' ' + linkit(answer)).replace(/\<a target\=_blank title/g, '!').replace(/Which country is /g,'~').replace(/What is the capital of the country /g,'`'));
}
//alert('xH3a=' + xh3a);
top.xh3a=xh3a;
setTimeout(postadjustscore, 2000);
setTimeout(swapthem, 2100);
}
}
function postadjustscore() {
top.document.getElementById('extrascore').innerHTML='' + top.score + '.' + top.goes;
document.getElementById('score').innerHTML='Score: ' + top.score + '/' + top.goes;
parent.document.getElementById('score').innerHTML='Score: ' + top.score + '/' + top.goes;
top.document.getElementById('score').innerHTML='Score: ' + top.score + '/' + top.goes;
aconto.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
//alert(top.document.getElementById('extrascore').innerHTML);
}
function oneintwo(aone, atwo) {
var ret=false, ijk=0, jkl=0, iij=0, jjj=0;
if (atwo != '' && aone != '' && atwo.length >= 3 && aone.length >= 3) {
ijk=atwo.indexOf(aone.substring(0,1));
if (ijk >= 0) {
iij=ijk;
ret=true;
for (jkl=ijk; jkl<eval(eval('' + ijk) + eval('' + aone.length)); jkl++) {
if (ret && atwo.substring(jkl, eval(1 + iij)) >= 'a' && atwo.substring(jkl, eval(1 + iij)) <= 'z') {
if (ret && aone.substring(jjj, eval(1 + jjj)) >= 'a' && aone.substring(jjj, eval(1 + jjj)) <= 'z') {
if (atwo.substring(iij).indexOf(aone.substring(jjj, eval(1 + jjj))) >= 0) {
iij+=atwo.substring(iij).indexOf(aone.substring(jjj, eval(1 + jjj)));
} else {
ret=false;
}
}
}
jjj++;
}
}
}
return ret;
}
function addtota(tv, tvo) {
if (documentURL.indexOf('startsas=') != -1) { // is original background layer
//alert('In background');
parent.document.getElementById('tais').value+=String.fromCharCode(10) + tv;
} else {
//alert('In foreground');
aconto.getElementById('tais').value+=String.fromCharCode(10) + tv;
}
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
//alert(1);
top.goes++;
goes=top.goes;
correct=true;
top.document.getElementById('extraprefix').innerHTML+='~~~~';
//if (tv.toLowerCase().indexOf(top.answer.toLowerCase()) == 0) {
if (oneintwo(tv.toLowerCase(),top.answer.toLowerCase())) {
//alert(tv + ' contains ' + top.answer);
top.score++;
score=top.score;
xh3a='';
top.xh3a='';
//top.document.getElementById('myh3').innerHTML=top.document.getElementById('myh3').innerHTML.split(' ... ')[0];
} else {
correct=false;
if (1 == 1) {
xh3a='&qt=' + encodeURIComponent(qt) + '&et=' + encodeURIComponent(et) + '&qp=' + encodeURIComponent(top.question) + '&ep=' + encodeURIComponent(top.answer);
} else {
xh3a='&h3a=' + encodeURIComponent((' ... ' + linkit(top.question) + ' ' + linkit(top.answer)).replace(/\<a target\=_blank title/g, '!').replace(/Which country is /g,'~').replace(/What is the capital of the country /g,'`'));
}
top.xh3a=xh3a;
if ((is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) && eval(top.document.getElementById('extradiv').innerHTML) >= 1) {
//alert('z_xH3a=' + top.document.URL.split('&')[0].replace(/score\=/g, 'scorxe=').replace(/goes\=/g, 'goxes=') + '&score=' + score + '.' + goes + xh3a);
top.location.href=top.document.URL.split('&')[0].replace(/score\=/g, 'scorxe=').replace(/goes\=/g, 'goxes=') + '&score=' + score + '.' + goes + xh3a;
} //else {
//alert('' + eval(top.document.getElementById('extradiv').innerHTML) + ' xH3a=' + xh3a);
//}
//top.document.getElementById('myh3').innerHTML=top.document.getElementById('myh3').innerHTML.split(' ... ')[0] + ' ... ' + question + ' ' + answer;
}
//alert(111);
//top.document.getElementById('extrascore').innerHTML='' + score + '.' + goes;
//document.getElementById('score').innerHTML='Score: ' + score + '/' + goes;
//parent.document.getElementById('score').innerHTML='Score: ' + score + '/' + goes;
//top.document.getElementById('score').innerHTML='Score: ' + score + '/' + goes;
//alert(1111);
}
tvo.value='';
if (eval(top.document.getElementById('extradiv').innerHTML) >= 4 && (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1)) {
document.getElementById('ibut').click();
}
}
function swapthem() {
var wt=0;
if (!hangabout && (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1)) {
hangabout=true;
//setTimeout(swapthem, 2000);
adjustscore();
return;
}
hangabout=false;
top.document.getElementById('extradiv').innerHTML='' + eval(1 + eval(top.document.getElementById('extradiv').innerHTML));
if (documentURL.indexOf(se) != -1) { // is original background layer
if (1 == 1) {
pb=top.pb;
tap=parent.document.getElementById('tais').value;
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
tap=" ";
}
while (tap.indexOf(String.fromCharCode(10)) != -1) {
tap=tap.replace(String.fromCharCode(10),'<br>');
}
tai=document.getElementById('tais').value;
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
tai=" ";
}
document.getElementById('tais').value='';
parent.document.getElementById('tais').value='';
//document.getElementById('tais').style.border='1px solid transparent';
//parent.document.getElementById('tais').style.border='1px solid transparent';
//se='add_background_layer.htm'; //'startXsas=';
documentURL=documentURL.split('?')[0];
//while (tai.indexOf(String.fromCharCode(10)) != -1) {
// tai=tai.replace(String.fromCharCode(10),'<br>');
//}
//alert('tap=' + tap);
//alert('tai=' + tai);
//alert(parent.pb.split('<ifra')[1]);
document.body.innerHTML=top.pb.replace('?s' + 'tartsas=', '?s' + 'tartsas=x');
onl();
} else {
//alert(parent.se + ' in background tais zIndex=' + '' + eval(-1 + eval('' + parent.document.getElementById('tais').style.zIndex)));
//document.getElementById('tais').style.zIndex='' + eval(-1 + eval('' + parent.document.getElementById('tais').style.zIndex));
//parent.document.getElementById('tais').style.zIndex='' + eval(1 + eval('' + parent.document.getElementById('tais').style.zIndex));
//document.getElementById('xbod').style.zIndex='-1';
//parent.document.getElementById('xbod').style.zIndex='1';
allow=false;
se='startXsas=';
wt=eval(top.document.title.split(' ... ')[1]);
wt++;
document.getElementById('myiframe').style.zIndex='' + wt;
wt--;
top.document.title='Background Layer Wording - RJM Programming - June, 2019 ... ' + wt;
parent.document.getElementById('tais').style.visibility='hidden';
document.getElementById('myiframe').style.visibility='visible';
document.getElementById('tais').style.border='1px solid blue';
document.getElementById('tais').style.color='blue'
//document.getElementById('myiframe').srcdoc='<!doctype html><html><head>' + parent.document.head.innerHTML +'</head>' + parent.document.getElementById('xbod').outerHTML + '</body></html>';
//aconto.document.getElementById('tais').innerHTML=parent.document.getElementById('tais').innerHTML;
}
} else {
//alert('in foreground');
document.getElementById('myh1').style.visibility='hidden';
document.getElementById('myh3').style.visibility='hidden';
document.getElementById('score').style.visibility='hidden';
document.getElementById('myiframe').style.zIndex='' + eval(top.document.title.split(' ... ')[1]);
if (se != 'startXsas=') {
try {
document.getElementById('tais').style.zIndex='' + eval(-1 + eval('' + aconto.getElementById('tais').style.zIndex));
} catch (err) {
}
} else if (parent.document.getElementById('tais')) {
document.getElementById('tais').style.zIndex='' + eval(-1 + eval('' + parent.document.getElementById('tais').style.zIndex));
}
}
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
getquestion();
//document.getElementById('tais').value+=getquestion() + String.fromCharCode(10) + String.fromCharCode(10);
}
}
function seti() {
if (allow) { aconto.getElementById('tais').value=parent.document.getElementById('tais').value; }
setTimeout(seti, 1000);
}
function check_id(iois) {
if (iois != null) {
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
//if (documentURL.indexOf(se) != -1) { // is original background layer
// setTimeout(seti, 1000); //aconto.document.getElementById('tais').innerHTML=parent.document.getElementById('tais').innerHTML;
//alert('at seti');
//}
if (tap != "") {
//alert('ionload');
aconto.getElementById('tais').style.border='0px solid red';
aconto.getElementById('tais').value=tap.replace(/\<br\>/g, String.fromCharCode(10));
tap="";
document.getElementById('ibut').click();
}
if (eval(top.document.getElementById('extradiv').innerHTML) >= 4) {
aconto.getElementById('ibut').style.visibility='hidden';
}
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
is_teletext_quiz=true;
qsuffix="~";
//top.document.getElementById('extrascore').innerHTML='' + score + '.' + goes;
document.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
parent.document.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
top.document.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
aconto.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
//aconto.getElementById('myh1').innerHTML='Teletext Country Capital Quiz';
//aconto.getElementById('tais').value+=getquestion() + String.fromCharCode(10) + String.fromCharCode(10);
//aconto.getElementById('ibut').value='Am I correct?';
//aconto.getElementById('helper').placeholder='Type your answer here';
//aconto.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
//aconto.getElementById('score').style.visibility='visible';
}
//if (eval(top.document.getElementById('extradiv').innerHTML) >= 4) {
// document.getElementById('ibut').click();
//}
}
}
}
function teletextit() {
if (eval('' + iq) < eval('' + question.length)) {
document.getElementById('tais').value+=question.substring(iq, eval(1 + iq));
}
iq++;
if (eval('' + iq) < eval('' + question.length)) {
setTimeout(teletextit, 200);
} else {
document.getElementById('tais').value+=String.fromCharCode(10) + String.fromCharCode(10);
}
}
function getquestion() {
iq=0;
if (capitals.length == 0) {
var optsare=document.getElementById('capitals').innerHTML.split('</option>');
for (var iopts=0; iopts<optsare.length; iopts++) {
if (optsare[iopts].trim() != '') {
capitals.push(optsare[iopts].split('>')[eval(-1 + optsare[iopts].split('>').length)].split(',')[0].split(' (')[0]);
countries.push(optsare[iopts].split(' value="')[1].split('"')[0]);
//alert('Country:' + countries[eval(-1 + countries.length)] + ' has the capital:' + capitals[eval(-1 + capitals.length)]);
}
}
}
//document.getElementById('tais').value='';
choice=Math.floor(Math.random() * eval(2 * eval('' + capitals.length)));
//alert('' + capitals.length + ' ... ' + choice);
if (choice >= eval('' + capitals.length)) {
choice=eval(choice % eval('' + capitals.length));
qt='Which country is ';
et=' the capital of?';
top.qt='Which country is ';
top.et=' the capital of?';
document.getElementById('tais').value=top.document.getElementById('extraprefix').innerHTML.replace(/~/g, String.fromCharCode(10)) + qt;
iq=document.getElementById('tais').value.length;
question=top.document.getElementById('extraprefix').innerHTML.replace(/~/g, String.fromCharCode(10)) + qt + capitals[choice] + et;
answer=countries[choice];
top.question=top.document.getElementById('extraprefix').innerHTML.replace(/~/g, String.fromCharCode(10)) + qt + capitals[choice] + et;
top.answer=countries[choice];
} else {
qt='What is the capital of the country ';
et='?';
top.qt='What is the capital of the country ';
top.et='?';
document.getElementById('tais').value=top.document.getElementById('extraprefix').innerHTML.replace(/~/g, String.fromCharCode(10)) + qt;
iq=document.getElementById('tais').value.length;
question=top.document.getElementById('extraprefix').innerHTML.replace(/~/g, String.fromCharCode(10)) + qt + countries[choice] + et;
answer=capitals[choice];
top.question=top.document.getElementById('extraprefix').innerHTML.replace(/~/g, String.fromCharCode(10)) + qt + countries[choice] + et;
top.answer=capitals[choice];
}
teletextit();
return '';
}
function onl() {
if (h3a != '') {
//alert(h3a.replace(/\!/g, '<a target=_blank title').replace(/\~/g, 'Which country is ').replace(/\`/g, 'What is the capital of the country '));
document.getElementById('myh3').innerHTML+=h3a.replace(/\!/g, '<a target=_blank title').replace(/\~/g, 'Which country is ').replace(/\`/g, 'What is the capital of the country ');
h3a='';
top.h3a='';
} else if (qp != '' && ep != '' && qt != '' && et != '') {
document.getElementById('myh3').innerHTML+=' ... ' + linkit(qp) + ' ' + linkit(ep);
qp='';
ep='';
}
if (documentURL.indexOf(se) != -1) { // is original background layer
score=parent.score;
goes=parent.goes;
document.getElementById('myiframe').style.visibility='hidden';
document.getElementById('tais').style.zIndex='' + eval(-1 + eval('' + parent.document.getElementById('tais').style.zIndex));
//alert(se);
document.getElementById('tais').style.border='1px solid red'; //'1px solid red';
document.getElementById('tais').style.backgroundColor='rgba(250,250,250,0.2)';
if (parent.document.getElementById('ibut').value == 'Am I correct?' || top.document.URL.indexOf('quiz=') != -1) {
is_teletext_quiz=true;
qsuffix="~";
getquestion();
//document.getElementById('tais').value+=getquestion() + String.fromCharCode(10) + String.fromCharCode(10);
document.getElementById('myh1').innerHTML='Teletext Country Capital Quiz';
document.getElementById('ibut').value='Am I correct?';
document.getElementById('helper').placeholder='Type your answer here';
top.document.getElementById('extrascore').innerHTML='' + score + '.' + goes;
document.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
document.getElementById('score').style.visibility='visible';
}
} else {
document.getElementById('tais').style.backgroundColor='rgba(220,220,220,0.2)';
//document.getElementById('myiframe').src="add_background_layer.html?startsas=background";
document.getElementById('tais').style.border='1px solid blue'; //'1px solid blue';
document.getElementById('tais').style.color='blue';
if (tap != '') {
document.getElementById('tais').style.border='0px solid blue';
document.getElementById('tais').style.color='blue';
document.getElementById('helper').style.border='1px solid blue';
document.getElementById('ibut').style.border='1px solid blue';
pb=parent.pb;
se='startXsas=';
document.getElementById('tais').innerHTML=tai;
tai='';
} else {
pb=document.body.innerHTML;
}
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
is_teletext_quiz=true;
qsuffix="~";
document.getElementById('myh1').innerHTML='Teletext Country Capital Quiz';
//document.getElementById('tais').value+=getquestion() + String.fromCharCode(10) + String.fromCharCode(10);
document.getElementById('ibut').value='Am I correct?';
document.getElementById('helper').placeholder='Type your answer here';
top.document.getElementById('extrascore').innerHTML='' + score + '.' + goes;
document.getElementById('score').innerHTML='Score: ' + top.document.getElementById('extrascore').innerHTML.replace('.','/');
document.getElementById('score').style.visibility='visible';
}
}
//document.getElementById('myh1').innerHTML+=top.document.getElementById('extradiv').innerHTML;
if ((is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) && eval(top.document.getElementById('extradiv').innerHTML) >= 2) {
//alert('0:' + top.xh3a);
top.location.href=top.document.URL.split('&')[0].replace(/score\=/g, 'scorxe=').replace(/goes\=/g, 'goxes=') + '&score=' + top.document.getElementById('extrascore').innerHTML + top.xh3a;
} else if (eval(top.document.getElementById('extradiv').innerHTML) >= 4) {
if (is_teletext_quiz || top.document.URL.indexOf('quiz=') != -1) {
//alert('1:' + top.xh3a);
top.location.href=top.document.URL.split('&')[0].replace(/score\=/g, 'scorxe=').replace(/goes\=/g, 'goxes=') + '&score=' + top.document.getElementById('extrascore').innerHTML + top.xh3a;
} else {
top.document.getElementById('ibut').style.visibility='hidden';
parent.document.getElementById('ibut').style.visibility='hidden';
document.getElementById('ibut').style.visibility='hidden';
}
}
}
</script>
</head>
<body id=xbod onload="onl();">
<h1 id=myh1>Background Layer Wording <input type=button onclick="top.location.href='add_background_layer.htm?quiz=y';" value="Quiz of Country Capitals" style="background-color:pink;"></input></h1>
<h3 id=myh3>RJM Programming - June, 2019</h3>
<h4 id=score style='visibility:visible;'></h4>
<table>
<tr><td>
<textarea style="z-index:400;opacity:0.5;background-color:transparent;" id=tais rows=40 cols=80 value=""></textarea>
</td>
<td style="vertical-align:top;"> <input onkeypress="okp(event);" style="width:350px;" placeholder="Add to other layer textarea ... ~ adds extra line feeds" onblur="addtota((this.value + qsuffix).replace(/~/g,String.fromCharCode(10)), this);" type=text id=helper title="Word(s) to add in other layer" value=""></input><br><br> <input id=ibut style="background-color:yellow;" onclick="swapthem();" type=button title="Swap layers back to front and front to back" value="Swap Layers"></input><br><div id=extradiv style='visibility:hidden;'>0</div><div id=extrascore style='visibility:hidden;'>0.0</div><div id=extraprefix style='visibility:hidden;'></div>
</td></tr></table>
<iframe onload=check_id(this); style=z-index:-1;display:block;position:absolute;left:0px;top:0px;width:100%;height:100%; id=myiframe src='add_background_layer.htm?startsas=background'></iframe>
<!--script type='text/javascript'>
if (documentURL.indexOf('startsas=') != -1) { // is original background layer
document.write("<iframe onload=check_id(this); style=z-index:-1;display:block;position:absolute;left:0px;top:0px;width:100%;height:100%; id=myiframe src='add_background_layer.html?startsas=background'></iframe>");
} else {
document.write("<iframe onload=check_id(this); style=z-index:-1;display:block;position:absolute;left:0px;top:0px;width:100%;height:100%; id=myiframe srcdoc=''></iframe>");
}
</script-->
<input id=oob type=text style="position:absolute;top:-200px;left:-200px;" value=""></input>
<select style='display:none;' id=capitals>
<option value="Afghanistan">Kabul</option>
<option value="Albania">Tirana</option>
<option value="Algeria">Algiers</option>
<option value="Andorra">Andorra la Vella</option>
<option value="Angola">Luanda</option>
<option value="Antigua and Barbuda">Saint John's</option>
<option value="Argentina">Buenos Aires</option>
<option value="Armenia">Yerevan</option>
<option value="Australia">Canberra</option>
<option value="Austria">Vienna</option>
<option value="Azerbaijan">Baku</option>
<option value="Bahamas">Nassau</option>
<option value="Bahrain">Manama</option>
<option value="Bangladesh">Dhaka</option>
<option value="Barbados">Bridgetown</option>
<option value="Belarus">Minsk</option>
<option value="Belgium">Brussels</option>
<option value="Belize">Belmopan</option>
<option value="Benin">Porto-Novo</option>
<option value="Bhutan">Thimphu</option>
<option value="Bolivia">La Paz (administrative), Sucre (judicial)</option>
<option value="Bosnia and Herzegovina">Sarajevo</option>
<option value="Botswana">Gaborone</option>
<option value="Brazil">Brasilia</option>
<option value="Brunei">Bandar Seri Begawan</option>
<option value="Bulgaria">Sofia</option>
<option value="Burkina Faso">Ouagadougou</option>
<option value="Burundi">Bujumbura</option>
<option value="Cabo Verde">Praia</option>
<option value="Cambodia">Phnom Penh</option>
<option value="Cameroon">Yaounde</option>
<option value="Canada">Ottawa</option>
<option value="Central African Republic">Bangui</option>
<option value="Chad">N'Djamena</option>
<option value="Chile">Santiago</option>
<option value="China">Beijing</option>
<option value="Colombia">Bogotá</option>
<option value="Comoros">Moroni</option>
<option value="Democratic Republic of the Congo">Kinshasa</option>
<option value="Republic of the Congo">Brazzaville</tr>
<option value="Costa Rica">San Jose</option>
<option value="Cote d'Ivoire">Yamoussoukro</option>
<option value="Croatia">Zagreb</option>
<option value="Cuba">Havana</option>
<option value="Cyprus">Nicosia</option>
<option value="Czech Republic">Prague</option>
<option value="Denmark">Copenhagen</option>
<option value="Djibouti">Djibouti (city)</option>
<option value="Dominica">Roseau</option>
<option value="Dominican Republic">Santo Domingo</option>
<option value="Ecuador">Quito</option>
<option value="Egypt">Cairo</option>
<option value="El Salvador">San Salvador</option>
<option value="Equatorial Guinea">Malabo</option>
<option value="Eritrea">Asmara</option>
<option value="Estonia">Tallinn</option>
<option value="Ethiopia">Addis Ababa</option>
<option value="Fiji">Suva</option>
<option value="Finland">Helsinki</option>
<option value="France">Paris</option>
<option value="Gabon">Libreville</option>
<option value="Gambia">Banjul</option>
<option value="Georgia">Tbilisi</option>
<option value="Germany">Berlin</option>
<option value="Ghana">Accra</option>
<option value="Greece">Athens</option>
<option value="Grenada">Saint George's</option>
<option value="Guatemala">Guatemala City</option>
<option value="Guinea">Conakry</option>
<option value="Guinea-Bissau">Bissau</option>
<option value="Guyana">Georgetown</option>
<option value="Haiti">Port-au-Prince</option>
<option value="Honduras">Tegucigalpa</option>
<option value="Hungary">Budapest</option>
<option value="Iceland">Reykjavik</option>
<option value="India">New Delhi</option>
<option value="Indonesia">Jakarta</option>
<option value="Iran">Tehran</option>
<option value="Iraq">Baghdad</option>
<option value="Ireland">Dublin</option>
<option value="Israel">Jerusalem</option>
<option value="Italy">Rome</option>
<option value="Jamaica">Kingston</option>
<option value="Japan">Tokyo</option>
<option value="Jordan">Amman</option>
<option value="Kazakhstan">Astana</option>
<option value="Kenya">Nairobi</option>
<option value="Kiribati">South Tarawa</option>
<option value="Kosovo">Pristina</option>
<option value="Kuwait">Kuwait City</option>
<option value="Kyrgyzstan">Bishkek</option>
<option value="Laos">Vientiane</option>
<option value="Latvia">Riga</option>
<option value="Lebanon">Beirut</option>
<option value="Lesotho">Maseru</option>
<option value="Liberia">Monrovia</option>
<option value="Libya">Tripoli</option>
<option value="Liechtenstein">Vaduz</option>
<option value="Lithuania">Vilnius</option>
<option value="Luxembourg">Luxembourg</option>
<option value="Macedonia">Skopje</option>
<option value="Madagascar">Antananarivo</option>
<option value="Malawi">Lilongwe</option>
<option value="Malaysia">Kuala Lumpur</option>
<option value="Maldives">Male</option>
<option value="Mali">Bamako</option>
<option value="Malta">Valletta</option>
<option value="Marshall Islands">Majuro</option>
<option value="Mauritania">Nouakchott</option>
<option value="Mauritius">Port Louis</option>
<option value="Mexico">Mexico City</option>
<option value="Micronesia">Palikir</option>
<option value="Moldova">Chisinau</option>
<option value="Monaco">Monaco</option>
<option value="Mongolia">Ulaanbaatar</option>
<option value="Montenegro">Podgorica</option>
<option value="Morocco">Rabat</option>
<option value="Mozambique">Maputo</option>
<option value="Myanmar (Burma)">Naypyidaw</option>
<option value="Namibia">Windhoek</option>
<option value="Nauru">Yaren District</option>
<option value="Nepal">Kathmandu</option>
<option value="Netherlands">Amsterdam</option>
<option value="New Zealand">Wellington</option>
<option value="Nicaragua">Managua</option>
<option value="Niger">Niamey</option>
<option value="Nigeria">Abuja</option>
<option value="North Korea">Pyongyang</option>
<option value="Norway">Oslo</option>
<option value="Oman">Muscat</option>
<option value="Pakistan">Islamabad</option>
<option value="Palau">Ngerulmud</option>
<option value="Palestine">Ramallah</option>
<option value="Panama">Panama City</option>
<option value="Papua New Guinea">Port Moresby</option>
<option value="Paraguay">Asunción</option>
<option value="Peru">Lima</option>
<option value="Philippines">Manila</option>
<option value="Poland">Warsaw</option>
<option value="Portugal">Lisbon</option>
<option value="Qatar">Doha</option>
<option value="Romania">Bucharest</option>
<option value="Russia">Moscow</option>
<option value="Rwanda">Kigali</option>
<option value="Saint Kitts and Nevis">Basseterre</option>
<option value="Saint Lucia">Castries</option>
<option value="Saint Vincent and the Grenadines">Kingstown</option>
<option value="Samoa">Apia</option>
<option value="San Marino">San Marino</option>
<option value="Sao Tome and Principe">São Tomé</option>
<option value="Saudi Arabia">Riyadh</option>
<option value="Senegal">Dakar</option>
<option value="Serbia">Belgrade</option>
<option value="Seychelles">Victoria</option>
<option value="Sierra Leone">Freetown</option>
<option value="Singapore">Singapore</option>
<option value="Slovakia">Bratislava</option>
<option value="Slovenia">Ljubljana</option>
<option value="Solomon Islands">Honiara</option>
<option value="Somalia">Mogadishu</option>
<option value="South Africa">Pretoria (administrative), Cape Town (legislative), Bloemfontein (judicial)</option>
<option value="South Korea">Seoul</option>
<option value="South Sudan">Juba</option>
<option value="Spain">Madrid</option>
<option value="Sri Lanka">Sri Jayawardenepura Kotte</option>
<option value="Sudan">Khartoum</option>
<option value="Suriname">Paramaribo</option>
<option value="Swaziland">Mbabane</option>
<option value="Sweden">Stockholm</option>
<option value="Switzerland">Bern</option>
<option value="Syria">Damascus</option>
<option value="Taiwan">Taipei</option>
<option value="Tajikistan">Dushanbe</option>
<option value="Tanzania">Dodoma</option>
<option value="Thailand">Bangkok</option>
<option value="Timor-Leste">Dili</option>
<option value="Togo">Lomé</option>
<option value="Tonga">Nukuʻalofa</option>
<option value="Trinidad and Tobago">Port of Spain</option>
<option value="Tunisia">Tunis</option>
<option value="Turkey">Ankara</option>
<option value="Turkmenistan">Ashgabat</option>
<option value="Tuvalu">Funafuti</option>
<option value="Uganda">Kampala</option>
<option value="Ukraine">Kyiv</option>
<option value="United Arab Emirates">Abu Dhabi</option>
<option value="United Kingdom">London</option>
<option value="United States of America">Washington, D.C.</option>
<option value="Uruguay">Montevideo</option>
<option value="Uzbekistan">Tashkent</option>
<option value="Vanuatu">Port Vila</option>
<option value="Vatican City (Holy See)">Vatican City</option>
<option value="Venezuela">Caracas</option>
<option value="Vietnam">Hanoi</option>
<option value="Yemen">Sana'a</option>
<option value="Zambia">Lusaka</option>
<option value="Zimbabwe">Harare</option>
</select>
</body>
</html>