<!-- begin quiz script -->
<script>
function finish() {
var ext = '.html';
var results = new Array("none","Tyro","Oro","Lassa","Nayu","Sol","Seraph","Beastkin","Dragon");
var nums = new Array(9);
for(var i = 0; i < nums.length; i++) nums[i] = 0;
for(var i = 1; i <= 8; i++) {
var q = document.forms['quiz'].elements['question_'+i];
if(q[0].type=='checkbox') {
var n = 0;
}
for(var j = 0; j < q.length; j++) {
if(q[j].checked) {
var a = q[j].value.split(',');
for(var k = 0; k < a.length; k++) {
nums[a[k]]++;
}
if(q[j].type=='radio') break;
else n++;
}
if(j == q.length-1&&q[j].type=='radio') {nums[0]++;}
}
if(q[0].type=='checkbox'&&((document.forms['quiz'].elements['question_'+i+'_min']&&n<document.forms['quiz'].elements['question_'+i+'_min'].value)||(document.forms['quiz'].elements['question_'+i+'_max']&&n>document.forms['quiz'].elements['question_'+i+'_max'].value))) nums[0]++;
}
var j = new Array('0');
for (i in nums) if(nums[i]>nums[j[0]]){j=new Array(''+i);} else if(nums[i]==nums[j[0]])j[j.length] = i;
//var o = '';for(var i in results)o+=results[i]+'='+nums[i]+'\n';
//alert(o);
if(nums[0]!=0) {
alert('You missed or incorrectly answered '+nums[0]+' questions!');
}
else if(j[0]==0) {
alert('No result could be determined.');
}
else {
location = results[j[0]]+ext;
}
}
</script>
<!-- end quiz script -->
Codes
<!-- begin quiz html -->
<form name="quiz" action="javascript:finish();">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_1" type="radio" value="1,2"> A steaming hot bath warmed in natural spring waters atop a mountain.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_1" type="radio" value="3,5"> A clear fresh water bath under a waterfall within a jungle.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_1" type="radio" value="6"> A normal bath at home where you feel safe and comfortable with your favorite soaps.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_1" type="radio" value="7,8"> Would rather not have to bath at all.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_1" type="radio" value="4"> A royal bath with servants and decorative fountains.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_2" type="radio" value="4,5"> To win any battle with merely a word.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_2" type="radio" value="1,2"> To win any battle with only your punches and kicks.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_2" type="radio" value="7,8"> To win any battle with only your speed and strength.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_2" type="radio" value="3"> To win any battle but only with ingenuity.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_2" type="radio" value="6"> To not have to battle anyone ever.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_3" type="radio" value="1,2,3"> Power over the natural elements.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_3" type="radio" value="7,8"> Power to transform into a ferocious monster.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_3" type="radio" value="4,5"> Power to make others bend to your will.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_3" type="radio" value="6"> Power to see the future and to change it at will.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_3" type="radio" value="1,2,3,4,5,6,7,8"> Power to have all of the above but in small portions.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_4" type="radio" value="1"> A fire breathing pet.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_4" type="radio" value="2"> A flying pet.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_4" type="radio" value="3"> An aquatic pet.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_4" type="radio" value="5"> A happy forest pet.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_4" type="radio" value="4"> A ghostly shadow pet.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_5" type="radio" value="4"> Royal clothing fit perfectly for you and designed extravagently.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_5" type="radio" value="6"> Your usual clothing would do.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_5" type="radio" value="7,8"> No clothes if possible.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_5" type="radio" value="1,3,5"> Very little clothing but still covering the right areas while being stylish.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_5" type="radio" value="2,7"> Warm attire thick with fur for the cold winter nights.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_6" type="radio" value="1"> Delicious spicy and sweet food that fills and delights the senses.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_6" type="radio" value="7,8"> Just meat will do.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_6" type="radio" value="5,6"> A hearty and healthy fresh meal plucked straight from the garden.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_6" type="radio" value="3,4"> A delicious broth with many flavorful things inside.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_6" type="radio" value="2"> A large meal with a mix of everything.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_7" type="radio" value="1,7,8"> A system of law ruled by the STRONG.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_7" type="radio" value="5"> A system of law ruled by the WISE.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_7" type="radio" value="3"> A system of law ruled by the INTELLIGENT.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_7" type="radio" value="4"> A system of law ruled by FEAR.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_7" type="radio" value="2,6"> A system of law ruled by the BRAVE.
</font>
</td>
</tr>
</table>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="34%">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong>Which would you prefer?</strong>
</font>
</td>
</tr>
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_8" type="radio" value="1,2"> To strive to achieve the reverence of many others.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_8" type="radio" value="5,6"> To strive to achieve your own personal validation.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_8" type="radio" value="4,8"> To strive to achieve wealth and power.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_8" type="radio" value="4,7"> To strive to achieve a full and rich life.
</font>
</td>
</tr><tr>
<td>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="question_8" type="radio" value="3"> To strive to achieve advancements in the world around you.
</font>
</td>
</tr>
</table>
<br /> <INPUT TYPE="submit" value="Finish">
<INPUT TYPE="reset" value="Reset">
</form>
<!-- end quiz html -->