<!doctype html>
<html>
<head>
<title>Respiratory System Quiz - RJM Programming - January, 2019 ... Thanks to to HLTAAP001 Recognise healthy body systems TAFE NSW</title>
<link href='//www.rjmprogramming.com.au/PHP/emboss_h1.css' rel='stylesheet' type='text/css'>
<script type='text/javascript'>

var x=0, y=0, lastx=0, lasty=0;
var score=0, goes=0;
var answers=["cGhhcnlueA==", "bmFzYWwgY2F2aXR5", "bGFyeW54", "dHJhY2hlYQ==", "YnJvbmNodXM=", "bHVuZ3M="];


function checkanswers() {
var j=0;
for (var i=1; i<=6; i++) {
document.getElementById('fld' + i).placeholder=location.search.split('fld' + i + '=')[1] ? decodeURIComponent(location.search.split('fld' + i + '=')[1].split('&')[0]).replace(/\+/g,' ') : 'What is this?';
if (document.getElementById('fld' + i).placeholder != 'What is this?') { goes++; }
if (document.getElementById('fld' + i).placeholder.toLowerCase() == atob(answers[j])) {
score++;
document.getElementById('fld' + i).style.backgroundColor='transparent';
} else if (document.getElementById('fld' + i).placeholder != 'What is this?') {
document.getElementById('fld' + i).style.color='red';
document.getElementById('fld' + i).value=atob(answers[j]);
}
j++;
}
document.getElementById('score').innerHTML='&nbsp;Score: ' + score + '/' + goes;
}

</script>
</head>
<body onload='checkanswers();' style='background-color:yellow;'>
<table>
<tr><td><form style='width:640px;height:480px;background: URL(respiratory_system.jpg) no-repeat;' action='respiratory_system.html' method='GET'>
<input placeholder='What is this?' type=text style='position:absolute;left:108px;top:142px;' name=fld1 id=fld1 value=''></input>
<input placeholder='What is this?' type=text style='position:absolute;left:458px;top:108px;' name=fld2 id=fld2 value=''></input>
<input placeholder='What is this?' type=text style='position:absolute;left:458px;top:158px;' name=fld3 id=fld3 value=''></input>
<input placeholder='What is this?' type=text style='position:absolute;left:458px;top:223px;' name=fld4 id=fld4 value=''></input>
<input placeholder='What is this?' type=text style='position:absolute;left:458px;top:312px;' name=fld5 id=fld5 value=''></input>
<input placeholder='What is this?' type=text style='position:absolute;left:458px;top:410px;' name=fld6 id=fld6 value=''></input>
<input id='sb' type=submit style='background-color:yellow;position:absolute;left:458px;top:460px;' value='Check Answers'></input>
</form></td><td><h1>&nbsp;Respiratory System Quiz</h1>
<blockquote id=blurb style="display:none;">
The respiratory system is composed of various structures and organs that ensure that the body is able to maintain its internal environment through the exchange of air between the lungs and the atmosphere. In order to survive the body needs a constant supply of oxygen, which it obtains from the air.<br><br>The body also needs to dispose of carbon dioxide, made as a waste product from the process of cell metabolism. The ingestion of oxygen and the discarding of carbon dioxide occurs through the process of respiration or breathing.
</blockquote>
<h3>&nbsp;RJM Programming - January, 2019 ... <a onclick="document.getElementById('blurb').style.display='block';" title="Show some in formation that we give thanks for." style="cursor:pointer;text-decoration:underline;">Thanks</a> to HLTAAP001 Recognise healthy body systems TAFE NSW</h3>
<h4 id=score>&nbsp;Score: 0/0</h4>
</td></tr>
</table>
</body>
</html>