<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Health Root, Prefix or Suffix Meaning Game - RJM Programming - July, 2017</title>
<script type='text/javascript'>

var topics=["Root, Prefix or Suffix", "Acronym"], itopics=[0, 2], thistopic=(location.search.split('toplist=')[1] ? eval(location.search.split('toplist=')[1].split('&')[0]) : 0);
var afterscore=" <a style='text-decoration:underline;cursor:pointer;' title='Email' onclick='preclick();'>📧</a>";
var recalla=[], prevscore='', adelim='', wasr=document.URL, recall=document.URL.split('#')[0].split('?')[0] + '?recall=', wasscore=0, wasgoes=0, wasfrom='', wasto='';
var firstoff=true, butwait=-1, butw=-1;
var isize=1, validtolook=false, hasbeenclicked=false, origfs="6px", smallfs="6px", candidate=false;
var answer="", question="";
var score=0;
var goes=0;
var mychoice=-1;
var thismeaning="", qprefix="", qsuffix="";
// Thanks to HLTAAP001 Recognise healthy body systems - Reading 1: Apply knowledge of the basic structure of the healthy human body NSW DET 2007
var meaninginfo=["arthro-;joint;ADK;activities of daily living",
"adip-;fat;BD;twice a day",
"-algia;pain;BGL;blood glucose level",
"angio-;vessel;BKA;below knee amputation",
"anterior;toward the front or ventral;BNO;bowels not opened",
"cardi-;heart;BO;bowels opened",
"cardio-;heart;BP;blood pressure",
"cardia-;heart;CCF;congestive cardiac failure",
"cephal-;head;CVA;cerebral vascular accident",
"cerebr-;brain;CXR;chest x-ray",
"cerebro-;brain;DNR;do not resuscitate",
"cut-;skin;ECG;electrocardiogram",
"dent-;teeth;EEG;electroencephalogram",
"derm-;skin;GIT;gastrointestinal tract",
"distal;away from point of attachment;HRS;hours",
"-ectomy;excission;IDC;indwelling catheter",
"gastr-;stomach;IV;intravenous",
"genio-;chin;MI;mycardial infarcation",
"glosso-;tongue;MS;multiple sclerosis",
"-glossus;tongue;NBM;nil by mouth",
"gyne-;woman;NFR;not for resuscitation",
"gyno-;woman;PAC;pressure area care",
"hepato-;liver;PEG;percutaneous endoscopic",
"histo;tissue;PRN;as required",
"homeo-;same;PVD;peripheral vascular disease",
"homo-;same;ROM;range of motion",
"hyper-;above;SOB;shortness of breath",
"hypo-;under;SPC;supra-public catheter",
"hyster-;uterus;TDS;three times per day",
"inferior;lowermost or below;THR;total hip replacement",
"-itis;inflammation;TIA;transient ischaemic attack",
"lateral;toward the side of the body;TPR;temperature and pulse and respiration",
"lip-;fat;UA;urinalysis",
"lipo-;fat;UTI;urinary tract infection",
"mast-;breast;;",
"masto-;breast;;",
"medial;nearest to the centre of the body;;",
"myo-;muscle;;",
"nas-;nose;;",
"nephr-;kidney;;",
"oculo-;eye;;",
"ophthalm-;eye;;",
"-opia;eye;;",
"-osis;state;;",
"osteon-;bone;;",
"osteo-;bone;;",
"oto-;ear;;",
"patho-;disease;;",
"-path;disease;;",
"-pathy;disease;;",
"-phasia;speech;;",
"phleb-;vein;;",
"podo-;foot;;",
"posterior;toward the back or dorsal;;",
"proximal;closest point of attachment;;",
"rhin-;nose;;",
"spino-;spine;;",
"superior;uppermost or above;;",
"-stomy;opening;;",
"thorac-;chest;;",
"-tomy;cut;;",
"uro-;urine;;",
"-uria;urine;;",
"vas-;vessel;;"];

var ml=meaninginfo.length;


function myrchange() {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) return;
var i, reset=false, wasscore=score, washbc=hasbeenclicked, maxgoes=eval(1 + goes), wasgoes=goes;
var ois=document.getElementById('root_prefix_suffix');
if (validtolook && butwait <= 0) {
if (ois.options.length > 0) {
for (i=0; i<ois.options.length; i++) {
if (ois.options[i].selected) {
if (ois.options[i].value != '' || hasbeenclicked) {
reset=true;
document.title+=' ' + answer + '...' + ois.options[i].id;
test(null,ois.options[i].id,ois.options[i].value);
if (goes > maxgoes) {
document.getElementById('score').innerHTML=document.getElementById('score').innerHTML.replace("/" + goes, "/" + maxgoes);
goes=maxgoes;
}
}
}
}
if (goes != wasgoes) {
//alert('was1=' + prevscore);
if (score == wasscore) {
recall=recall.replace(encodeURIComponent('.0,'),encodeURIComponent('.00')).replace(encodeURIComponent('.1,'),encodeURIComponent('.10'));
prevscore=prevscore.replace(' versus',' versus <span style="border:1px solid green;">❌</span>');
} else {
recall=recall.replace(encodeURIComponent('.0,'),encodeURIComponent('.0' + eval(score - wasscore))).replace(encodeURIComponent('.1,'),encodeURIComponent('.1' + eval(score - wasscore)));
prevscore=prevscore.replace(' versus',' versus <span style="border:1px solid green;">✅</SPAN>');
for (var jca=eval(1 + wasscore); jca<score; jca++) {
prevscore=prevscore.replace('</SPAN> versus','✅</SPAN>');
}
prevscore=prevscore.replace('</SPAN>','</span>');
}
//alert('is1=' + prevscore);
}
if (reset) {
//document.title='reset=true ... ';
if (wasscore == score && hasbeenclicked) {
washbc=false;
validtolook=false;
hasbeenclicked=false;
//document.title+='1 ... ';
}
if (wasscore != score || washbc) {
document.getElementById('root_prefix_suffix').value="";
document.getElementById('meaning').value="";
//document.title+='2 ... ';
choose();
}
}
}
}
setTimeout(myrchange, 5000);
}

function test(mthis,mthisid,mthisvalue) {
var orvia='', wgoes=goes, wscore=score;
if (mthis == null || mthisid == "meaning" || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
goes++;
//alert('goes=' + goes);
if (mthis == null && mthisid != '') {
orvia=document.getElementById(mthisid).getAttribute("data-member");
//alert('orvia=' + orvia);
} else {
orvia=mthis.options[mthis.selectedIndex].getAttribute("data-member");
mthisvalue=mthis.value;
mthisid=mthis.id;
//alert('mthisvalue=' + mthisvalue);
}
if (mthisvalue == '') {
if (mthis != null || hasbeenclicked) {
if (goes != wgoes) {
//alert('was3=' + prevscore);
if (score == wscore) {
recall=recall.replace(encodeURIComponent('.0,'),encodeURIComponent('.00')).replace(encodeURIComponent('.1,'),encodeURIComponent('.10'));
prevscore=prevscore.replace(' versus',' versus <span style="border:1px solid green;">❌</span>');
} else {
recall=recall.replace(encodeURIComponent('.0,'),encodeURIComponent('.0' + eval(score - wscore))).replace(encodeURIComponent('.1,'),encodeURIComponent('.1' + eval(score - wscore)));
prevscore=prevscore.replace(' versus',' versus <span style="border:1px solid green;">✅</SPAN>');
for (var jca=eval(1 + wscore); jca<score; jca++) {
prevscore=prevscore.replace('</SPAN> versus','✅</SPAN>');
}
prevscore=prevscore.replace('</SPAN>','</span>');
}
//alert('is3=' + prevscore);
}
}
document.getElementById('score').innerHTML=prevscore + 'Score: ' + score + '/' + goes + ' ... Bad luck. Try again.' + afterscore;
alert(maybemore('Answer is ' + answer));
if (mthis != null || hasbeenclicked) document.getElementById('meaning').value="";
if (mthis != null || hasbeenclicked) document.getElementById('root_prefix_suffix').value="";
if (mthis != null || hasbeenclicked) choose();
} else if (answer.split(',')[0] == mthisvalue || orvia.indexOf(";" + question) != -1) {
score++;
document.title+=' ' + score;
if (mthis != null || answer.indexOf(',') == -1) {
if (goes != wgoes) {
//alert('was4=' + prevscore);
if (score == wscore) {
recall=recall.replace(encodeURIComponent('.0,'),encodeURIComponent('.00')).replace(encodeURIComponent('.1,'),encodeURIComponent('.10'));
prevscore=prevscore.replace(' versus',' versus <span style="border:1px solid green;">❌</span>');
} else {
recall=recall.replace(encodeURIComponent('.0,'),encodeURIComponent('.0' + eval(score - wscore))).replace(encodeURIComponent('.1,'),encodeURIComponent('.1' + eval(score - wscore)));
prevscore=prevscore.replace(' versus',' versus <span style="border:1px solid green;">✅</SPAN>');
for (var jca=eval(1 + wscore); jca<score; jca++) {
prevscore=prevscore.replace('</SPAN> versus','✅</SPAN>');
}
prevscore=prevscore.replace('</SPAN>','</span>');
}
//alert('is4=' + prevscore);
}
}
document.getElementById('score').innerHTML=prevscore + 'Score: ' + score + '/' + goes + ' ... Well done!' + afterscore;
if (mthis != null || answer.indexOf(',') == -1) document.getElementById('meaning').value="";
if (mthis != null || answer.indexOf(',') == -1) document.getElementById('root_prefix_suffix').value="";
if (mthis != null || answer.indexOf(',') == -1) choose();
} else if (1 == 1) {
document.getElementById('score').innerHTML=document.getElementById('score').innerHTML.replace('/' + eval(-1 + goes) + ' ...', '/' + eval(goes) + ' ...' ); // prevscore + 'Score: ' + score + '/' + goes + ' ... Bad Luck. Try again.' + afterscore;
} else {
document.getElementById('score').innerHTML=prevscore + 'Score: ' + score + '/' + goes + ' ... Bad Luck. Try again.' + afterscore;
}

if (recalla.length > 0) {
recalla=recalla;
} else {
if (wasr.indexOf('recall=') != -1) {
//alert(goes);
alert('Score comparison is Them = Score ' + wasscore + '/' + wasgoes + ' versus You = Score ' + score + '/' + goes);
wasr='';
}
mychoice=Math.floor(Math.random() * ml);
myc=Math.floor(Math.random() * ml);
}

}

if (document.getElementById('d' + goes)) {
document.getElementById('d' + goes).style.border='1px solid red';
}

}

function maybemore(first_thought) {
var i, delim=",", prefixis="", suffixis="", ans=first_thought; //.split(' is ')[1];
if (ans.indexOf(' is ') != -1) ans=first_thought.split(' is ')[1];
for (i=0; i<ml; i++) {
if (meaninginfo[i].indexOf(ans + ";") != -1) {
suffixis=meaninginfo[i].split(ans + ";")[1].split(";")[0];
}
}
//alert('first_thought=' + first_thought + ' ans=' + ans + ' suffixis=' + suffixis);
if (suffixis == "" || first_thought.indexOf(',') != -1) {
return first_thought;
} else {
var second_thought=first_thought;
//alert('ml=' + ml);
for (i=0; i<ml; i++) {
if (meaninginfo[i].indexOf(";" + suffixis) != -1) {
if (prefixis == "") {
prefixis=meaninginfo[i].split(";" + suffixis)[0].split(";")[eval(-1 + meaninginfo[i].split(";" + suffixis)[0].split(";").length)];
//alert('prefixis=' + prefixis);
if (second_thought.replace(/\ /g,',').indexOf(',' + prefixis) == -1) {
second_thought+=delim + prefixis;
delim=',';
} else {
delim=',';
}
} else {
second_thought=second_thought.replace("Answer is ","Answers are ");
prefixis=meaninginfo[i].split(";" + suffixis)[0].split(";")[eval(-1 + meaninginfo[i].split(";" + suffixis)[0].split(";").length)];
//alert('Prefixis=' + prefixis);
if (second_thought.replace(/\ /g,',').indexOf(',' + prefixis) == -1) {
second_thought+=delim + prefixis;
delim=',';
} else {
delim=',';
}
}
}
}
return second_thought;
}
}

function butwreducer() {
if (butwait > 0) {
document.getElementById('score').innerHTML=document.getElementById('score').innerHTML.replace(' 0/0',' 0/0 ...').replace('...','....');
butwait--;
}
setTimeout(butwreducer, 1000);
}

function dorecall() {
var inrecall=location.search.split('recall=')[1] ? decodeURIComponent(location.search.split('recall=')[1].split('&')[0]) : '';
document.getElementById('score').innerHTML+=afterscore;
wasscore=location.search.split('score=')[1] ? eval(location.search.split('score=')[1].split('&')[0]) : wasscore;
wasgoes=location.search.split('goes=')[1] ? eval(location.search.split('goes=')[1].split('&')[0]) : wasgoes;
wasfrom=location.search.split('from=')[1] ? decodeURIComponent(location.search.split('from=')[1].split('&')[0]) : '';
wasto=location.search.split('to=')[1] ? decodeURIComponent(location.search.split('to=')[1].split('&')[0]) : '';
if (wasgoes > 0) {
prevscore='<font size=1>Score: ' + wasscore + '/' + wasgoes + ' versus</font> ';
//var hscore=document.getElementById('score').innerHTML;
//document.getElementById('score').innerHTML=prevscore + hscore;
}
if (wasfrom.indexOf('@') != -1) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace(':?', ':' + wasfrom + '?');
} else if (wasto.indexOf('@') != -1) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('&body=', '&cc=' + encodeURIComponent(wasto) + '&body=');
}
if (inrecall != '') {
var jca, igoes=0, inrs=inrecall.split(',');
for (var jns=0; jns<inrs.length; jns++) {
//alert(inrs[jns]);
if (inrs[jns].indexOf(';') != -1) { // personalized adds
jns=jns;
} else {
var xca, ica=0, cmya='' + inrs[jns];
mychoice=Math.floor(eval(cmya));
if (cmya.indexOf('.1') != -1) {
xca=cmya.split('.1')[1];
if (xca != '') ica=eval(xca);
} else if (cmya.indexOf('.0') != -1) {
xca=cmya.split('.0')[1];
if (xca != '') ica=eval(xca);
}
//alert('was6=' + prevscore);
if (ica == 0) {
prevscore=prevscore.replace(' versus','<span id=d' + igoes + '>❌</span> versus');
igoes++;
} else {
prevscore=prevscore.replace(' versus',' <span id=d' + igoes + '>✅</span> versus');
for (jca=1; jca<ica; jca++) {
prevscore=prevscore.replace('</span> versus','✅</span> versus');
}
igoes++;
}
//alert('is6=' + prevscore);
}
//recalla.unshift('' + inrs[jns]);
recalla.push('' + inrs[jns]);
}
if (wasgoes > 0) {
//prevscore='<font size=1>Score: ' + wasscore + '/' + wasgoes + ' versus</font> ';
var hscore=document.getElementById('score').innerHTML;
prevscore+=' ';
document.getElementById('score').innerHTML=prevscore + hscore;
document.getElementById('d0').style.border='1px solid red';
}
}
}

function choose() {
var myc=0;
if (firstoff) {
if (eval(thistopic) != 0) document.getElementById('myh1sel').value='' + thistopic; //Root, Prefix or Suffix
document.getElementById('rnone').innerHTML='Please choose correct ' + ('' + topics[eval(1 * thistopic)]).toLowerCase() + ' (or to give up) ...';
dorecall();
var mngs=[], i, j, found=false;
origfs=window.getComputedStyle(document.getElementById('root_prefix_suffix'), null).getPropertyValue("font-size");
firstoff=false;
if (thistopic != 0) {
for (i=0; i<meaninginfo.length; i++) {
if (meaninginfo[i].split(";")[eval(2 * thistopic)] == "" && ml == meaninginfo.length) ml=eval(1 + i);
}
}
for (i=0; i<ml; i++) {
if (meaninginfo[i].split(";")[eval(2 * thistopic)] != "") {
document.getElementById('root_prefix_suffix').innerHTML+='<option id="' + meaninginfo[i].split(";")[eval(2 * thistopic)] + '" data-member="' + orb(thistopic,meaninginfo[i]) + '" value="' + meaninginfo[i].split(";")[eval(2 * thistopic)] + '">' + meaninginfo[i].split(";")[eval(2 * thistopic)] + '</option>';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
firstoff=firstoff;
} else {
isize=eval(2 + i);
document.getElementById('root_prefix_suffix').size=isize;
}
found=false;
for (j=0; j<mngs.length; j++) {
if (mngs[j] == '<option id="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)].replace(/\ /g,'_') + '" data-member=";" value="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '" title="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '">' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '</option>') found=true;
}
if (!found) mngs.push('<option id="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)].replace(/\ /g,'_') + '" data-member=";" value="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '" title="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '">' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '</option>');
}
}
mngs.sort();
for (i=0; i<mngs.length; i++) {
document.getElementById('meaning').innerHTML+=mngs[i];
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
butwreducer();
} else {
butw=3;
butwreducer();
document.getElementById('root_prefix_suffix').multiple=true;
myrchange();
}
}

if (recalla.length > 0) {
var xca, ica=0, cmya='' + recalla.pop();
while (cmya == '') {
cmya=' ';
if (recalla.length > 0) cmya='' + recalla.pop();
}
while (cmya.indexOf(';') != -1 && recalla.length > 0) {
// add local entry
//alert(cmya);
addlocal(cmya);
cmya=' ';
if (recalla.length > 0) cmya='' + recalla.pop();
}
while (cmya == '' && recalla.length > 0) {
cmya=' ';
if (recalla.length > 0) cmya='' + recalla.pop();
}
if (cmya.trim() == '' && wasr.indexOf('recall=') != -1) {
alert('Score comparison is Them = Score ' + wasscore + '/' + wasgoes + ' versus You = Score ' + score + '/' + goes);
wasr='';
mychoice=Math.floor(Math.random() * ml);
myc=Math.floor(Math.random() * ml);
} else {
mychoice=Math.floor(eval(cmya));
if (cmya.indexOf('.1') != -1) {
myc=1;
xca=cmya.split('.1')[1];
if (xca != '') ica=eval(xca);
} else if (cmya.indexOf('.0') != -1) {
xca=cmya.split('.0')[1];
if (xca != '') ica=eval(xca);
}
}
} else {
if (wasr.indexOf('recall=') != -1) {
alert('Score comparison is Them = Score ' + wasscore + '/' + wasgoes + ' versus You = Score ' + score + '/' + goes);
wasr='';
}
mychoice=Math.floor(Math.random() * ml);
myc=Math.floor(Math.random() * ml);
}

if (eval(myc % 2) == 0) {
//recall+=encodeURIComponent(adelim + mychoice + '.0');
recall=recall.replace('recall=', 'recall=' + encodeURIComponent(mychoice + '.0,' + adelim))
adelim=',';
question=meaninginfo[mychoice].split(";")[eval(1 + 2 * thistopic)];
answer=maybemore(meaninginfo[mychoice].split(";")[eval(2 * thistopic)]);
qprefix='"medical terms ';
qsuffix='"';
document.getElementById('hint').innerHTML='';
//document.getElementById('rnone').innerHTML='Please choose correct root or prefix or suffix (or to give up) ...';
document.getElementById('rnone').innerHTML='Please choose correct ' + ('' + topics[eval(1 * thistopic)]).toLowerCase() + ' (or to give up) ...';
document.getElementById('meaning').value=meaninginfo[mychoice].split(";")[eval(1 + 2 * thistopic)];
if (isize > 1) {
candidate=true;
document.getElementById('root_prefix_suffix').style.fontSize=smallfs;
document.getElementById('myh4').innerHTML='Please select from undefined dropdown with correct matching value(s). <a style=text-decoration:underline;cursor:pointer; onclick=bringiton(); title=YouTube>📹 Hint?</a>';
} else {
candidate=false;
document.getElementById('myh4').innerHTML='Please select from undefined dropdown with a correct matching value. <a style=text-decoration:underline;cursor:pointer; onclick=bringiton(); title=YouTube>📹 Hint?</a>';
}
document.getElementById('root_prefix_suffix').value='';
//document.title='' + isize;
if (isize > 1) document.getElementById('root_prefix_suffix').multiple=true;
document.getElementById('root_prefix_suffix').size=isize;
if (isize == 1) {
docbs(document.getElementById('root_prefix_suffix').innerHTML, document.getElementById('cbs'));
}
validtolook=true;
hasbeenclicked=false;
} else {
document.getElementById('cbs').innerHTML='';
//recall+=encodeURIComponent(adelim + mychoice + '.1');
recall=recall.replace('recall=', 'recall=' + encodeURIComponent(mychoice + '.1,' + adelim))
adelim=',';
candidate=false;
question=meaninginfo[mychoice].split(";")[eval(2 * thistopic)];
answer=maybemore(meaninginfo[mychoice].split(";")[eval(1 + 2 * thistopic)]);
if (question.indexOf('-') == -1) {
qprefix='"medical terms root ';
qsuffix='"';
} else if (question.indexOf('-') != 0) {
qprefix='"medical terms prefix ';
qsuffix='"';
} else {
qprefix='"medical terms suffix ';
qsuffix='"';
}
document.getElementById('hint').innerHTML='';
document.getElementById('myh4').innerHTML='Please select from undefined dropdown with a correct matching value. <a style=text-decoration:underline;cursor:pointer; onclick=bringiton(); title=YouTube>📹 Hint?</a>';
document.getElementById('rnone').innerHTML=meaninginfo[mychoice].split(";")[eval(2 * thistopic)];
document.getElementById('root_prefix_suffix').value=meaninginfo[mychoice].split(";")[eval(2 * thistopic)];
document.getElementById('root_prefix_suffix').style.fontSize=origfs;
document.getElementById('meaning').value='';
//document.title='one: ' + isize;
if (isize > 1 || 1 == 1) document.getElementById('root_prefix_suffix').multiple=false;
document.getElementById('root_prefix_suffix').size=1;
validtolook=false;
hasbeenclicked=false;
setTimeout(alater,500);
}
}

function alater() {
document.getElementById('root_prefix_suffix').value=document.getElementById('rnone').innerHTML;
}

function bringiton() {
document.getElementById('hint').innerHTML='<iframe width=100% height=800 id="ihint" src="' + '//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?emoji=on&nokaraoke=y&youtubeid=%20%20%20%20%20%20%20%20%20%20%20%20%20%20' + encodeURIComponent(qprefix + question.replace('-','') + qsuffix) + '" title="YouTube Videos"></iframe>';
if (candidate) document.getElementById('root_prefix_suffix').style.fontSize=origfs;
}

function preclick() {
if (wasfrom != '') recall+='&to=' + encodeURIComponent(wasfrom);
if (goes == 0) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('subject=&', 'subject=' + encodeURIComponent('Health Root, Prefix or Suffix Meaning Game') + '&');
document.getElementById('aemail').href+=encodeURIComponent(recall.split('#')[0].split('?')[0].replace(encodeURIComponent(',,'),encodeURIComponent(',')));
} else {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('subject=&', 'subject=' + encodeURIComponent('Health Root, Prefix or Suffix Meaning Game ... non-competitive ' + recall.split('#')[0].split('?')[0]) + '&');
recall+='&goes=' + goes + '&score=' + score + '&toplist=' + thistopic;
document.getElementById('aemail').href+=encodeURIComponent(recall.replace(encodeURIComponent(',,'),encodeURIComponent(',')));
}
//alert(document.getElementById('aemail').href);
document.getElementById('aemail').click();
}

function preaddlocal() {
var pva=prompt('Enter ' + ('' + topics[eval(1 * thistopic)]).replace('Root, Prefix or Suffix','prefix-/-suffix/root;meaning ... eg. arthro-;joint').replace('Acronym','acronym;meaning ... eg. ADK;activities of daily living').toLowerCase() + '', '');
if (pva != null) {
if (pva.indexOf(';') != -1) addlocal(pva);
}
}

function addlocal(ccmy) {
var found=false,jml,newrec='',jdelim='',cbqs;
if (ml < meaninginfo.length) {
cbqs=meaninginfo[ml].split(';');
for (jml=0; jml<eval(2 * topics.length); jml++) {
if (jml == eval(2 * thistopic)) {
newrec+=jdelim + ccmy;
jdelim=';';
} else if (jml == eval(1 + 2 * thistopic)) {
jdelim=';';
} else {
newrec+=jdelim + cbqs[jml];
jdelim=';';
}
}
meaninginfo[ml]=newrec; //meaninginfo[ml].replace(";;", ";" + ccmy);
ml++;
} else {
for (jml=0; jml<topics.length; jml++) {
newrec+=jdelim + ccmy;
jdelim=';';
}
meaninginfo.push(newrec);
ml++;
}
for (var i=eval(-1 + ml); i<ml; i++) {
document.getElementById('root_prefix_suffix').innerHTML+='<option id="' + meaninginfo[i].split(";")[eval(2 * thistopic)] + '" data-member="' + orb(thistopic,meaninginfo[i]) + '" value="' + meaninginfo[i].split(";")[eval(2 * thistopic)] + '">' + meaninginfo[i].split(";")[eval(2 * thistopic)] + '</option>';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
i=i;
} else {
isize++;
if (eval('0' + document.getElementById('root_prefix_suffix').size) > 1) document.getElementById('root_prefix_suffix').size=isize;
}
found=false;
for (var j=0; j<mngs.length; j++) {
if (mngs[j] == '<option id="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)].replace(/\ /g,'_') + '" data-member=";" value="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '" title="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '">' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '</option>') found=true;
}
if (!found) mngs.push('<option id="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)].replace(/\ /g,'_') + '" data-member=";" value="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '" title="' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '">' + meaninginfo[i].split(";")[eval(1 + 2 * thistopic)] + '</option>');
}
mngs.sort();
document.getElementById('meaning').innerHTML='';
for (i=0; i<mngs.length; i++) {
document.getElementById('meaning').innerHTML+=mngs[i];
}
}

function docbs(rselih, cbsdivo) {
cbsdivo.innerHTML='';
var ourv="", ourih='', thisop='', ops=rselih.split('</option>');
for (var iops=0; iops<ops.length; iops++) {
if (ops[iops].trim() != '') {
thisop=ops[iops].split('<option ')[1];
ourv=ops[iops].split('value="')[1].split('"')[0];
ourih+='<input onclick="hasbeenclicked=true; validtolook=true; butwait=3; test(null,this.id,' + "'" + ourv + "'" + '); document.getElementById(' + "'" + 'root_prefix_suffix' + "'" + ').value=' + "'" + ourv + "'" + '; " style="display:inline;" type="checkbox" ' + thisop.replace('id="', 'id="cb') + '</input>  ';
}
}
//alert(ourih);
cbsdivo.innerHTML=ourih;
}

function orb(tt, row) {
if (row.split(";").length > thistopic) {
return row.split(";")[eval(2 * thistopic)] + ";" + row.split(";")[eval(1 + 2 * thistopic)];
} else {
return ";";
}
}
</script>
<style>
#lhtd {
vertical-align: top;
background-color: lightgreen;
}

#rhtd {
background-color: lightblue;
background: url('medical-563427_640.jpg');
}
</style>
</head>
<body onload='choose();'>
<table border=40 cellpadding=20 cellspacing=20><tbody><tr><td id='lhtd'>
<select onclick='hasbeenclicked=true; validtolook=true; butwait=butw; ' onchange='test(this,"root_prefix_suffix","");' id='root_prefix_suffix'><option id='rnone' data-member=';' value=''>Please choose correct root or prefix or suffix (or to give up) ...</option></select>
<br><br><div id='cbs'></div><a id='aemail' style='display:none;' href='mailto:?subject=&body='>Email</a></td><td id='rhtd'>
<h1 id='myh1'>Health <select id='myh1sel' onchange="location.href=document.URL.split('#')[0].split('?')[0] + '?toplist=' + this.value;"><option value='0'>Root, Prefix or Suffix</option><option value='1'>Acronym</option></select> Meaning Game</h1>
<h3>RJM Programming <a title='Add your own' onclick='preaddlocal();' style='text-decoration:none;cursor:pointer;'>➕</a> July, 2017 ... thanks to <a target=_blank title='Pixabay' href='https://pixabay.com/en/medical-appointment-doctor-563427/'>Pixabay</a> for background image</h3>
<h3 id='score'>Score: 0/0</h3>
<h4 id='myh4'>Please select from undefined dropdown with a correct matching value. <a style=text-decoration:underline;cursor:pointer; onclick=bringiton(); title=YouTube>📹 Hint?</a></h4>
<select onchange='test(this,"meaning","");' id='meaning'><option id='mnone' data-member=';' value=''>Please choose correct meaning (or to give up) ...</option></select>
<br><br><div id='hint'></div></td></tr></tbody></table>
</body>
</html>