var score = 0;

function result(s,r) {
score = score + s;
return question(r);
}

function question(num) {
if (num == 'one') {
document.getElementById('question').innerHTML = 'When was the last time you cleaned your computer tower?<ol><li><a onclick="result(1,\'two\')">Today</a></li><li><a onclick="result(2,\'two\')">Within the past week</a></li><li><a onclick="result(3,\'two\')">A few weeks ago</a></li><li><a onclick="result(3,\'two\')">Over three months ago</a></li><li><a onclick="result(4,\'two\')">I have to clean that thing?</a></li></ol>';
 }
if (num == 'two') {
document.getElementById('question').innerHTML = 'How much hair do you have?<ol><li><a onclick="result(1,\'three\')">Shaved baby</a></li><li><a onclick="result(2,\'three\')">Short</a></li><li><a onclick="result(3,\'three\')">Short for a woman</a></li><li><a onclick="result(4,\'three\')">Longer than Pocahontas</a></li></ol>';
 }
if (num == 'three') {
document.getElementById('question').innerHTML = 'How old are you?<ol><li><a onclick="result(1,\'four\')">0-17</a></li><li><a onclick="result(2,\'four\')">18-25</a></li><li><a onclick="result(3,\'four\')">26-45</a></li><li><a onclick="result(4,\'four\')">46+</a></li></ol>';
 }
if (num == 'four') {
document.getElementById('question').innerHTML = 'Are you more of a...<ol><li><a onclick="result(1,\'five\')">Clean freak</a></li><li><a onclick="result(2,\'five\')">I clean every now and then</a></li><li><a onclick="result(3,\'five\')">Spring cleaning person</a></li><li><a onclick="result(4,\'five\')">Cleaning is for nerds</a></li></ol>';
 }
if (num == 'five') {
document.getElementById('question').innerHTML = 'Do you have dry skin?<ol><li><a onclick="result(1,\'six\')">It\'s as smooth as a baby\'s bottom.</a></li><li><a onclick="result(2,\'six\')">I put the lotion on the skin</a></li><li><a onclick="result(3,\'six\')">Meh, it\'s average</a></li><li><a onclick="result(3,\'six\')">A few manly rough spots</a></li><li><a onclick="result(4,\'six\')">It\'s as rough as Mr. Burns\' back hair</a></li></ol>';
 }
if (num == 'six') {
var say;
switch (score) {
case 5:
case 6:
case 7:
case 8:
 say = score * Math.round(Math.random() * 120000);
break;
case 9:
case 10:
case 11:
case 12:
 say = score * Math.round(Math.random() * 130000);
break;
case 13:
case 14:
case 15:
case 16:
 say = score * Math.round(Math.random() * 140000);
break;
case 17:
case 18:
case 19:
case 20:
 say = score * Math.round(Math.random() * 150000);
break;
}
document.getElementById('question').innerHTML = '<p class="color">You have ' + say + ' dust particles in your PC case!</p><p><small>If you would like to share your dustiness, copy and paste the HTML code to display it on your blog, profile or website.</small></p></div><a href="http://chickencamels.poemofquotes.com/cc/dust.php" title="How much dust is in your PC case?"><div style="border: #aaa 2px solid; height: 120px; width: 200px; text-align: center; background: url(/badges/dustbg.png); font-size: 20px; color:#0010A3;"><img src="/badges/dust.png" alt="dust" style="padding-top:10px;" /><br /><small>I have</small><br />'+say+'<br /><small>dust particles in my case!</small></div></a><div style="margin-top: -130px; margin-left: 220px; font-size: 0.9em;"><strong>Badge HTML Code:</strong><br /><textarea rows=6 cols=40 style="padding-left: 10px;"><a href="http://chickencamels.poemofquotes.com/cc/dust.php" title="How much dust is in your PC case?" display:block;><div style="border: #aaa 2px solid; height: 120px; width: 200px; text-align: center; background: url(http://chickencamels.poemofquotes.com/badges/dustbg.png); font-size: 16px; color:#0010A3; font-family:arial,sans-serif;"><img src="http://chickencamels.poemofquotes.com/badges/dust.png" alt="dust" style="padding-top:10px;border:0;" /><br /><small>I have</small><br />'+say+'<br /><small>dust particles in my case!</small></div></a><p><small><a href="http://chickencamels.poemofquotes.com">SEO news</a> from ChickenCamels</small></p></textarea>';
 }
}