<!doctype html>
<head>
<title>Window localStorage as Needed - RJM Programming - December, 2019</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
textarea {
font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
}
</style>
<script type='text/javascript'>

var datamode="localStorage";
var ao;
var aohref='mailto:?subject=Capitals%20of%20Countries%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents&body=';
var bo;
var bohref='sms:?subject=Capitals%20of%20Countries%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents&body=';
var numlines=0;

var lastemail='';
var lastsms='';

var phpexists=false;
var getcapitals=location.search.split('capitals=')[1] ? decodeURIComponent(location.search.split('capitals=')[1].split('&')[0]).replace(/\+/g,' ') : '';
var getcountries=location.search.split('countries=')[1] ? decodeURIComponent(location.search.split('countries=')[1].split('&')[0]).replace(/\+/g,' ') : '';

function ask() {
var eee=lastemail;
if (numlines == 0) {
aohref=aohref.replace('%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents', '');
if (eee == '') { eee=prompt('Email address (best converted later at email into its Fixed Width font)?', lastemail); }
} else {
aohref=aohref.split('&body=')[0] + '&body=';
if (eee == '') { eee=prompt('Email address (and once in email paste content into its body section before clicking its Send button, as best seen with its Fixed Width font)?', lastemail); }
}
if (!eee) { eee=''; }
if (eee.indexOf('@') != -1) {
lastemail=eee;
var sufg=aohref.split('?')[1];
var gurl='mailto:' + eee + '?' + sufg;
ao.href=gurl;
}
aohref='mailto:?subject=Capitals%20of%20Countries%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents&body=';
return ao;
}

function smsask() {
var eee=lastsms;
if (numlines == 0) {
bohref=bohref.replace('%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents', '');
if (eee == '') { eee=prompt('SMS number (best converted later at SMS into its Fixed Width font)?', lastsms); }
} else {
bohref=bohref.split('&body=')[0] + '&body=';
if (eee == '') { eee=prompt('SMS number (and once in SMS paste content into its body section before clicking its Send button, as best seen with its Fixed Width font)?', lastsms); }
}
if (!eee) { eee=''; }
if (eee != '') {
lastsms=eee;
var sufg=bohref.split('?')[1];
var gurl='sms:' + eee + '?' + sufg;
bo.href=gurl;
}
bohref='sms:?subject=Capitals%20of%20Countries%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents&body=';
return bo;
}

function updatecountries(osino) {
var capval='';
var capvald='';
var ctyval='';
var ctyvald='';
var maxcap=-1;
var maxcty=-1;
var sin=document.getElementById('scapitals');
numlines=0;
for (var i=0; i<sin.options.length; i++) {
if (sin.options[i].selected) {
if (sin.options[i].value != '') {
if (maxcty < 0) {
maxcty=sin.options[i].value.length;
} else if (sin.options[i].value.length > maxcty) {
maxcty=sin.options[i].value.length;
}
if (maxcap < 0) {
maxcap=sin.options[i].innerText.length;
} else if (sin.options[i].innerText.length > maxcap) {
maxcap=sin.options[i].innerText.length;
}
ctyval+=ctyvald + sin.options[i].value;
ctyvald='|';
capval+=capvald + sin.options[i].innerText;
capvald='|';
}
}
}
document.getElementById('capitals').value=capval;
document.getElementById('countries').value=ctyval;
if (!osino || 1 == 1) {
if (capval != '' && ctyval != '') {
document.getElementById('mybemail').style.display='inline-block';
document.getElementById('mybsms').style.display='inline-block';
maxcap=Math.floor(eval(eval(maxcap + 31) / 8)) * 8;
maxcty=Math.floor(eval(eval(maxcty + 15) / 8)) * 8;
var caps=capval.split('|');
var ctys=ctyval.split('|');
var repemail='';
repemail+=tabit('Capital City', maxcap, 'Country', maxcty);
repemail+=tabit('------------', maxcap, '-------', maxcty);
document.getElementById('myaemail').href=pref + '&body=' + encodeURIComponent(repemail);
for (var ij=0; ij<caps.length; ij++) {
repemail+=tabit(caps[ij], maxcap, ctys[ij], maxcty);
var pref=document.getElementById('myaemail').href.split('&body=')[0];
document.getElementById('myaemail').href=pref + '&body=' + encodeURIComponent(repemail);
aohref=aohref.split('&body=')[0] + '&body=' + encodeURIComponent(repemail);
if (numlines == 0 && document.getElementById('myaemail').href.length > 800) {
numlines=eval(1 + ij);
}
var prefs=document.getElementById('myasms').href.split('&body=')[0];
document.getElementById('myasms').href=prefs + '&body=' + encodeURIComponent(repemail);
bohref=bohref.split('&body=')[0] + '&body=' + encodeURIComponent(repemail);
}
copytoclipboard(repemail);
}
}
}

function copytoclipboard(str) { // thanks to https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f
var el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
}

function tabit(inleft, inleftl, inright, inrightl) {
var retrec='';
var ift=Math.floor(eval(eval(inleft.length + 8) / 8)) * 8;
if (inleft.length < inleftl) {
while (inleft.length < ift) {
inleft+=' '; //inleft+=String.fromCharCode(9);
}
while (ift < inleftl) {
inleft+=' '; //String.fromCharCode(9);
ift+=8;
}
}
retrec+=inleft;
ift=Math.floor(eval(eval(inright.length + 8) / 8)) * 8;
if (inright.length < inrightl) {
while (inright.length < ift) {
inright+=' '; //inright+=String.fromCharCode(9);
}
while (ift < inrightl) {
inleft+=' '; //String.fromCharCode(9);
ift+=8;
}
}
retrec+=inright;
retrec+=String.fromCharCode(10);
return retrec;
}

function checkforreport() {
var divcont='';
var dcaps, dctys, idis;
document.getElementById('myform').action=document.URL.split('#')[0].split('?')[0];
if (getcapitals == 'localStorage') {
if (window.localStorage) {
getcapitals=decodeURIComponent(localStorage.getItem('wls_vs_php_capitals')).replace(/\+/g,' ');
localStorage.removeItem('wls_vs_php_capitals');
} else {
getcapitals='';
}
} else if (getcapitals == 'sessionStorage') {
document.getElementById('smode').value=getcapitals;
datamode=getcapitals;
if (window.sessionStorage) {
getcapitals=decodeURIComponent(sessionStorage.getItem('wls_vs_php_capitals')).replace(/\+/g,' ');
} else {
getcapitals='';
}
} else if (getcapitals == '' && window.sessionStorage) {
getcapitals=decodeURIComponent(('' + sessionStorage.getItem('wls_vs_php_capitals')).replace(/^null$/g,'')).replace(/\+/g,' ');
if (getcapitals != '') {
document.getElementById('smode').value='sessionStorage';
datamode='sessionStorage';
}
}
if (getcountries == 'localStorage') {
if (window.localStorage) {
getcountries=decodeURIComponent(localStorage.getItem('wls_vs_php_countries')).replace(/\+/g,' ');
if (getcapitals.replace('localStorage','') != '' && getcountries.replace('localStorage','') != '') { document.getElementById('myh1').innerHTML+=' <font size=1>... yes, it was needed</font>'; }
localStorage.removeItem('wls_vs_php_countries');
} else {
getcountries='';
}
} else if (getcountries == 'sessionStorage') {
if (window.sessionStorage) {
getcountries=decodeURIComponent(sessionStorage.getItem('wls_vs_php_countries')).replace(/\+/g,' ');
if (getcapitals.replace('sessionStorage','') != '' && getcountries.replace('sessionStorage','') != '') { document.getElementById('myh1').innerHTML+=' <font size=1>... yes, it was needed</font>'; }
} else {
getcountries='';
}
} else if (getcountries == '' && document.getElementById('smode').value == 'sessionStorage' && window.sessionStorage) {
getcountries=decodeURIComponent(('' + sessionStorage.getItem('wls_vs_php_countries')).replace(/^null$/g,'')).replace(/\+/g,' ');
if (getcountries != '') {
document.getElementById('smode').value='sessionStorage';
datamode='sessionStorage';
}
}
if (getcapitals != '' && getcountries != '') {
divcont='<table border=5 style="width:95%;vertical-align:top;background-color:white;"><tr style=background-color:#f0f0f0;"><th>Capital</th><th>Country</th></tr></table>';
dcaps=getcapitals.split('|');
dctys=getcountries.split('|');
for (idis=0; idis<dcaps.length; idis++) {
divcont=divcont.replace('</table>', '<tr><td>' + dcaps[idis] + '</td><td>' + dctys[idis] + '</td></tr></table>');
}
document.getElementById('dreport').innerHTML=divcont;
}
document.getElementById('smode').value=datamode;
}

function analyze() {
var purl=document.URL.split('#')[0].split('?')[0] + '?capitals=' + encodeURIComponent(document.getElementById('capitals').value) + '&countries=' + encodeURIComponent(document.getElementById('countries').value);
if (purl.length > 800) {
if (phpexists) {
document.getElementById('myform').method='POST';
document.getElementById('myform').action='./wls_vs_php.php';
} else if (datamode == 'localStorage' && window.localStorage) {
localStorage.setItem('wls_vs_php_countries', encodeURIComponent(document.getElementById('countries').value));
localStorage.setItem('wls_vs_php_capitals', encodeURIComponent(document.getElementById('capitals').value));
document.getElementById('capitals').value='localStorage';
document.getElementById('countries').value='localStorage';
location.href=document.URL.split('#')[0].split('?')[0] + '?capitals=' + encodeURIComponent(document.getElementById('capitals').value) + '&countries=' + encodeURIComponent(document.getElementById('countries').value);
return false;
} else if (datamode == 'sessionStorage' && window.sessionStorage) {
sessionStorage.setItem('wls_vs_php_countries', encodeURIComponent(document.getElementById('countries').value));
sessionStorage.setItem('wls_vs_php_capitals', encodeURIComponent(document.getElementById('capitals').value));
document.getElementById('capitals').value='sessionStorage';
document.getElementById('countries').value='sessionStorage';
location.href=document.URL.split('#')[0].split('?')[0] + '?capitals=' + encodeURIComponent(document.getElementById('capitals').value) + '&countries=' + encodeURIComponent(document.getElementById('countries').value);
return false;
}
}
return true;
}

function huhpup(iois) {
if (iois != null) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
if (aconto.body.innerHTML.toLowerCase().indexOf('<select ') == -1) {
phpexists=false;
} else {
phpexists=true;
}
}
}
}
}

</script>
</head>
<body onload='checkforreport();'>
<h1 id=myh1>Window <select id=smode onchange='datamode=this.value;'><option value=localStorage>localStorage</option><option value=sessionStorage>sessionStorage</option></select> as Needed</h1>
<h3>RJM Programming - December, 2019</h3>
<form onsubmit='return analyze();' id='myform' action='./wls_vs_php.htm' method='GET'>
<input type=hidden name=countries id=countries value=''></input><input type=hidden name=capitals id=capitals value=''></input>
<table style='width:98%;height:800px;' border=20>
<tr style='height:40px;background-color:lightgray;'><th>Capitals</th><th>Countries Report</th></tr>
<tr><td style='background-color:%f7f7f7;text-align:center;'><select onfocusout="updatecountries(null);" style='height:100%;background-color:lightblue;' id=scapitals multiple>
<option onclick="updatecountries(this);" value=''>Please select Capital(s) (of Countries) of interest below to receive a report via button ...</option>
<option onclick="updatecountries(this);" value="Afghanistan">Kabul</option>
<option onclick="updatecountries(this);" value="Albania">Tirana</option>
<option onclick="updatecountries(this);" value="Algeria">Algiers</option>
<option onclick="updatecountries(this);" value="Andorra">Andorra la Vella</option>
<option onclick="updatecountries(this);" value="Angola">Luanda</option>
<option onclick="updatecountries(this);" value="Antigua and Barbuda">Saint John's</option>
<option onclick="updatecountries(this);" value="Argentina">Buenos Aires</option>
<option onclick="updatecountries(this);" value="Armenia">Yerevan</option>
<option onclick="updatecountries(this);" value="Australia">Canberra</option>
<option onclick="updatecountries(this);" value="Austria">Vienna</option>
<option onclick="updatecountries(this);" value="Azerbaijan">Baku</option>
<option onclick="updatecountries(this);" value="Bahamas">Nassau</option>
<option onclick="updatecountries(this);" value="Bahrain">Manama</option>
<option onclick="updatecountries(this);" value="Bangladesh">Dhaka</option>
<option onclick="updatecountries(this);" value="Barbados">Bridgetown</option>
<option onclick="updatecountries(this);" value="Belarus">Minsk</option>
<option onclick="updatecountries(this);" value="Belgium">Brussels</option>
<option onclick="updatecountries(this);" value="Belize">Belmopan</option>
<option onclick="updatecountries(this);" value="Benin">Porto-Novo</option>
<option onclick="updatecountries(this);" value="Bhutan">Thimphu</option>
<option onclick="updatecountries(this);" value="Bolivia">La Paz (administrative), Sucre (judicial)</option>
<option onclick="updatecountries(this);" value="Bosnia and Herzegovina">Sarajevo</option>
<option onclick="updatecountries(this);" value="Botswana">Gaborone</option>
<option onclick="updatecountries(this);" value="Brazil">Brasilia</option>
<option onclick="updatecountries(this);" value="Brunei">Bandar Seri Begawan</option>
<option onclick="updatecountries(this);" value="Bulgaria">Sofia</option>
<option onclick="updatecountries(this);" value="Burkina Faso">Ouagadougou</option>
<option onclick="updatecountries(this);" value="Burundi">Bujumbura</option>
<option onclick="updatecountries(this);" value="Cabo Verde">Praia</option>
<option onclick="updatecountries(this);" value="Cambodia">Phnom Penh</option>
<option onclick="updatecountries(this);" value="Cameroon">Yaounde</option>
<option onclick="updatecountries(this);" value="Canada">Ottawa</option>
<option onclick="updatecountries(this);" value="Central African Republic">Bangui</option>
<option onclick="updatecountries(this);" value="Chad">N'Djamena</option>
<option onclick="updatecountries(this);" value="Chile">Santiago</option>
<option onclick="updatecountries(this);" value="China">Beijing</option>
<option onclick="updatecountries(this);" value="Colombia">Bogotá</option>
<option onclick="updatecountries(this);" value="Comoros">Moroni</option>
<option onclick="updatecountries(this);" value="Democratic Republic of the Congo">Kinshasa</option>
<option onclick="updatecountries(this);" value="Republic of the Congo">Brazzaville</option>
<option onclick="updatecountries(this);" value="Costa Rica">San Jose</option>
<option onclick="updatecountries(this);" value="Cote d'Ivoire">Yamoussoukro</option>
<option onclick="updatecountries(this);" value="Croatia">Zagreb</option>
<option onclick="updatecountries(this);" value="Cuba">Havana</option>
<option onclick="updatecountries(this);" value="Cyprus">Nicosia</option>
<option onclick="updatecountries(this);" value="Czech Republic">Prague</option>
<option onclick="updatecountries(this);" value="Denmark">Copenhagen</option>
<option onclick="updatecountries(this);" value="Djibouti">Djibouti (city)</option>
<option onclick="updatecountries(this);" value="Dominica">Roseau</option>
<option onclick="updatecountries(this);" value="Dominican Republic">Santo Domingo</option>
<option onclick="updatecountries(this);" value="Ecuador">Quito</option>
<option onclick="updatecountries(this);" value="Egypt">Cairo</option>
<option onclick="updatecountries(this);" value="El Salvador">San Salvador</option>
<option onclick="updatecountries(this);" value="Equatorial Guinea">Malabo</option>
<option onclick="updatecountries(this);" value="Eritrea">Asmara</option>
<option onclick="updatecountries(this);" value="Estonia">Tallinn</option>
<option onclick="updatecountries(this);" value="Ethiopia">Addis Ababa</option>
<option onclick="updatecountries(this);" value="Fiji">Suva</option>
<option onclick="updatecountries(this);" value="Finland">Helsinki</option>
<option onclick="updatecountries(this);" value="France">Paris</option>
<option onclick="updatecountries(this);" value="Gabon">Libreville</option>
<option onclick="updatecountries(this);" value="Gambia">Banjul</option>
<option onclick="updatecountries(this);" value="Georgia">Tbilisi</option>
<option onclick="updatecountries(this);" value="Germany">Berlin</option>
<option onclick="updatecountries(this);" value="Ghana">Accra</option>
<option onclick="updatecountries(this);" value="Greece">Athens</option>
<option onclick="updatecountries(this);" value="Grenada">Saint George's</option>
<option onclick="updatecountries(this);" value="Guatemala">Guatemala City</option>
<option onclick="updatecountries(this);" value="Guinea">Conakry</option>
<option onclick="updatecountries(this);" value="Guinea-Bissau">Bissau</option>
<option onclick="updatecountries(this);" value="Guyana">Georgetown</option>
<option onclick="updatecountries(this);" value="Haiti">Port-au-Prince</option>
<option onclick="updatecountries(this);" value="Honduras">Tegucigalpa</option>
<option onclick="updatecountries(this);" value="Hungary">Budapest</option>
<option onclick="updatecountries(this);" value="Iceland">Reykjavik</option>
<option onclick="updatecountries(this);" value="India">New Delhi</option>
<option onclick="updatecountries(this);" value="Indonesia">Jakarta</option>
<option onclick="updatecountries(this);" value="Iran">Tehran</option>
<option onclick="updatecountries(this);" value="Iraq">Baghdad</option>
<option onclick="updatecountries(this);" value="Ireland">Dublin</option>
<option onclick="updatecountries(this);" value="Israel">Jerusalem</option>
<option onclick="updatecountries(this);" value="Italy">Rome</option>
<option onclick="updatecountries(this);" value="Jamaica">Kingston</option>
<option onclick="updatecountries(this);" value="Japan">Tokyo</option>
<option onclick="updatecountries(this);" value="Jordan">Amman</option>
<option onclick="updatecountries(this);" value="Kazakhstan">Astana</option>
<option onclick="updatecountries(this);" value="Kenya">Nairobi</option>
<option onclick="updatecountries(this);" value="Kiribati">South Tarawa</option>
<option onclick="updatecountries(this);" value="Kosovo">Pristina</option>
<option onclick="updatecountries(this);" value="Kuwait">Kuwait City</option>
<option onclick="updatecountries(this);" value="Kyrgyzstan">Bishkek</option>
<option onclick="updatecountries(this);" value="Laos">Vientiane</option>
<option onclick="updatecountries(this);" value="Latvia">Riga</option>
<option onclick="updatecountries(this);" value="Lebanon">Beirut</option>
<option onclick="updatecountries(this);" value="Lesotho">Maseru</option>
<option onclick="updatecountries(this);" value="Liberia">Monrovia</option>
<option onclick="updatecountries(this);" value="Libya">Tripoli</option>
<option onclick="updatecountries(this);" value="Liechtenstein">Vaduz</option>
<option onclick="updatecountries(this);" value="Lithuania">Vilnius</option>
<option onclick="updatecountries(this);" value="Luxembourg">Luxembourg</option>
<option onclick="updatecountries(this);" value="Macedonia">Skopje</option>
<option onclick="updatecountries(this);" value="Madagascar">Antananarivo</option>
<option onclick="updatecountries(this);" value="Malawi">Lilongwe</option>
<option onclick="updatecountries(this);" value="Malaysia">Kuala Lumpur</option>
<option onclick="updatecountries(this);" value="Maldives">Male</option>
<option onclick="updatecountries(this);" value="Mali">Bamako</option>
<option onclick="updatecountries(this);" value="Malta">Valletta</option>
<option onclick="updatecountries(this);" value="Marshall Islands">Majuro</option>
<option onclick="updatecountries(this);" value="Mauritania">Nouakchott</option>
<option onclick="updatecountries(this);" value="Mauritius">Port Louis</option>
<option onclick="updatecountries(this);" value="Mexico">Mexico City</option>
<option onclick="updatecountries(this);" value="Micronesia">Palikir</option>
<option onclick="updatecountries(this);" value="Moldova">Chisinau</option>
<option onclick="updatecountries(this);" value="Monaco">Monaco</option>
<option onclick="updatecountries(this);" value="Mongolia">Ulaanbaatar</option>
<option onclick="updatecountries(this);" value="Montenegro">Podgorica</option>
<option onclick="updatecountries(this);" value="Morocco">Rabat</option>
<option onclick="updatecountries(this);" value="Mozambique">Maputo</option>
<option onclick="updatecountries(this);" value="Myanmar (Burma)">Naypyidaw</option>
<option onclick="updatecountries(this);" value="Namibia">Windhoek</option>
<option onclick="updatecountries(this);" value="Nauru">Yaren District</option>
<option onclick="updatecountries(this);" value="Nepal">Kathmandu</option>
<option onclick="updatecountries(this);" value="Netherlands">Amsterdam</option>
<option onclick="updatecountries(this);" value="New Zealand">Wellington</option>
<option onclick="updatecountries(this);" value="Nicaragua">Managua</option>
<option onclick="updatecountries(this);" value="Niger">Niamey</option>
<option onclick="updatecountries(this);" value="Nigeria">Abuja</option>
<option onclick="updatecountries(this);" value="North Korea">Pyongyang</option>
<option onclick="updatecountries(this);" value="Norway">Oslo</option>
<option onclick="updatecountries(this);" value="Oman">Muscat</option>
<option onclick="updatecountries(this);" value="Pakistan">Islamabad</option>
<option onclick="updatecountries(this);" value="Palau">Ngerulmud</option>
<option onclick="updatecountries(this);" value="Palestine">Ramallah</option>
<option onclick="updatecountries(this);" value="Panama">Panama City</option>
<option onclick="updatecountries(this);" value="Papua New Guinea">Port Moresby</option>
<option onclick="updatecountries(this);" value="Paraguay">Asunción</option>
<option onclick="updatecountries(this);" value="Peru">Lima</option>
<option onclick="updatecountries(this);" value="Philippines">Manila</option>
<option onclick="updatecountries(this);" value="Poland">Warsaw</option>
<option onclick="updatecountries(this);" value="Portugal">Lisbon</option>
<option onclick="updatecountries(this);" value="Qatar">Doha</option>
<option onclick="updatecountries(this);" value="Romania">Bucharest</option>
<option onclick="updatecountries(this);" value="Russia">Moscow</option>
<option onclick="updatecountries(this);" value="Rwanda">Kigali</option>
<option onclick="updatecountries(this);" value="Saint Kitts and Nevis">Basseterre</option>
<option onclick="updatecountries(this);" value="Saint Lucia">Castries</option>
<option onclick="updatecountries(this);" value="Saint Vincent and the Grenadines">Kingstown</option>
<option onclick="updatecountries(this);" value="Samoa">Apia</option>
<option onclick="updatecountries(this);" value="San Marino">San Marino</option>
<option onclick="updatecountries(this);" value="Sao Tome and Principe">São Tomé</option>
<option onclick="updatecountries(this);" value="Saudi Arabia">Riyadh</option>
<option onclick="updatecountries(this);" value="Senegal">Dakar</option>
<option onclick="updatecountries(this);" value="Serbia">Belgrade</option>
<option onclick="updatecountries(this);" value="Seychelles">Victoria</option>
<option onclick="updatecountries(this);" value="Sierra Leone">Freetown</option>
<option onclick="updatecountries(this);" value="Singapore">Singapore</option>
<option onclick="updatecountries(this);" value="Slovakia">Bratislava</option>
<option onclick="updatecountries(this);" value="Slovenia">Ljubljana</option>
<option onclick="updatecountries(this);" value="Solomon Islands">Honiara</option>
<option onclick="updatecountries(this);" value="Somalia">Mogadishu</option>
<option onclick="updatecountries(this);" value="South Africa">Pretoria (administrative), Cape Town (legislative), Bloemfontein (judicial)</option>
<option onclick="updatecountries(this);" value="South Korea">Seoul</option>
<option onclick="updatecountries(this);" value="South Sudan">Juba</option>
<option onclick="updatecountries(this);" value="Spain">Madrid</option>
<option onclick="updatecountries(this);" value="Sri Lanka">Sri Jayawardenepura Kotte</option>
<option onclick="updatecountries(this);" value="Sudan">Khartoum</option>
<option onclick="updatecountries(this);" value="Suriname">Paramaribo</option>
<option onclick="updatecountries(this);" value="Swaziland">Mbabane</option>
<option onclick="updatecountries(this);" value="Sweden">Stockholm</option>
<option onclick="updatecountries(this);" value="Switzerland">Bern</option>
<option onclick="updatecountries(this);" value="Syria">Damascus</option>
<option onclick="updatecountries(this);" value="Taiwan">Taipei</option>
<option onclick="updatecountries(this);" value="Tajikistan">Dushanbe</option>
<option onclick="updatecountries(this);" value="Tanzania">Dodoma</option>
<option onclick="updatecountries(this);" value="Thailand">Bangkok</option>
<option onclick="updatecountries(this);" value="Timor-Leste">Dili</option>
<option onclick="updatecountries(this);" value="Togo">Lomé</option>
<option onclick="updatecountries(this);" value="Tonga">Nukuʻalofa</option>
<option onclick="updatecountries(this);" value="Trinidad and Tobago">Port of Spain</option>
<option onclick="updatecountries(this);" value="Tunisia">Tunis</option>
<option onclick="updatecountries(this);" value="Turkey">Ankara</option>
<option onclick="updatecountries(this);" value="Turkmenistan">Ashgabat</option>
<option onclick="updatecountries(this);" value="Tuvalu">Funafuti</option>
<option onclick="updatecountries(this);" value="Uganda">Kampala</option>
<option onclick="updatecountries(this);" value="Ukraine">Kyiv</option>
<option onclick="updatecountries(this);" value="United Arab Emirates">Abu Dhabi</option>
<option onclick="updatecountries(this);" value="United Kingdom">London</option>
<option onclick="updatecountries(this);" value="United States of America">Washington, D.C.</option>
<option onclick="updatecountries(this);" value="Uruguay">Montevideo</option>
<option onclick="updatecountries(this);" value="Uzbekistan">Tashkent</option>
<option onclick="updatecountries(this);" value="Vanuatu">Port Vila</option>
<option onclick="updatecountries(this);" value="Vatican City (Holy See)">Vatican City</option>
<option onclick="updatecountries(this);" value="Venezuela">Caracas</option>
<option onclick="updatecountries(this);" value="Vietnam">Hanoi</option>
<option onclick="updatecountries(this);" value="Yemen">Sana'a</option>
<option onclick="updatecountries(this);" value="Zambia">Lusaka</option>
<option onclick="updatecountries(this);" value="Zimbabwe">Harare</option>
</select></td><td style="vertical-align:top;background-color:lightgreen;"><input style=background-color:yellow;vertical-align:top; type=submit value='Report ...'></input><br><input onclick="ao=document.getElementById('myaemail'); ask(); if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { top.location.href=ao.href; } else { ao.click(); }" id=mybemail style=background-color:yellow;vertical-align:top;display:none; type=button value='Email ...'></input><br><input onclick="bo=document.getElementById('myasms'); smsask(); if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { top.location.href=bo.href; } else { bo.click(); } " id=mybsms style=background-color:yellow;vertical-align:top;display:none; type=button value='SMS ...'></input><br><div id=dreport></div></td></tr>
</table>
</form>
<iframe style='display:none;' src='./wls_vs_php.php' onload='huhpup(this);'></iframe>
<a id=myaemail href='mailto:?subject=Capitals%20of%20Countries%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents&body=' style='display:none;'>Email</a>
<a id=myasms href='sms:?subject=Capitals%20of%20Countries%20%2e%2e%2e%20can%20copy%20in%20clipboard%20contents&body=' style='display:none;'>SMS</a>
<div id=divaemail></div>
</body>
</html>