<!--  hide script from old browsers
var total = 0;
function clearForm(form)
{
	 form.answer1.value = "0"
	 form.answer2.value = "0"
	 form.answer3.value = "0"
	 form.answer4.value = "0"
	 form.answer5.value = "0"
	 form.answer6.value = "0"
	 form.answer7.value = "0"
	 form.answer8.value = "0"
	 form.answer9.value = "0"
	 form.answer10.value = "0"
	 form.answer11.value = "0"
	 form.answer12.value = "0"
	 form.answer13.value = "0"
	 form.answer14.value = "0"
	 form.answer15.value = "0"
	 form.answer16.value = "0"
	 form.answer17.value = "0"
	 form.answer18.value = "0"
	 form.answer19.value = "0"
	 form.answer20.value = "0"
}
function getTotal (form)	{
        if (form.answer1.checked)	{
        	ans1  = 1;
        	}else{
        			ans1 = 0;
        }
        
        if (form.answer2.checked)	{
        	ans2  = 1;
        		}else{
        			ans2 = 0;
        }
        
        if (form.answer3.checked)	{
        	ans3 = 1;
        	}else{
        			ans3 = 0;
        }
        
        
        if (form.answer4.checked)	{
        	ans4 = 1;
        	}else{
        			ans4 = 0;
        }
        
        
        if (form.answer5.checked)	{
        	ans5 = 1;
        	}else{
        			ans5 = 0;
        }
        
        
        if (form.answer6.checked)	{
        	ans6 = 1;
        	}else{
        			ans6 = 0;
        }
        
        
        if (form.answer7.checked)	{
        	ans7 = 1;
        	}else{
        			ans7 = 0;
        }
        
        
        if (form.answer8.checked)	{
        	ans8 = 1;
        	}else{
        			ans8 = 0;
        }
        
        
        if (form.answer9.checked)	{
        	ans9 = 1;
        	}else{
        			ans9 = 0;
        }
        
        
        if (form.answer10.checked)	{
        	ans10 = 1;
        	}else{
        			ans10 = 0;
        }
        
        
        if (form.answer11.checked)	{
        	ans11 = 1;
        	}else{
        			ans11 = 0;
        }
        
        
        if (form.answer12.checked)	{
        	ans12 = 1;
        	}else{
        			ans12 = 0;
        }
        
        
        if (form.answer13.checked)	{
        	ans13 = 1;
        	}else{
        			ans13 = 0;
        }
        
        
        if (form.answer14.checked)	{
        	ans14 = 1;
        	}else{
        			ans14 = 0;
        }
        
         if (form.answer15.checked)	{
        	ans15 = 1;
        	}else{
        			ans15 = 0;
        }
        
         if (form.answer16.checked)	{
        	ans16 = 1;
        	}else{
        			ans16 = 0;
        }
        
         if (form.answer17.checked)	{
        	ans17 = 1;
        	}else{
        			ans17 = 0;
        }
        
         if (form.answer18.checked)	{
        	ans18 = 1;
        	}else{
        			ans18 = 0;
        }
        
         if (form.answer19.checked)	{
        	ans19 = 1;
        	}else{
        			ans19 = 0;
        }
        
         if (form.answer20.checked)	{
        	ans20 = 1;
        	}else{
        			ans20 = 0;
        }


	form.total.value = eval(ans1+ans2+ans3+ans4+ans5+ans6+ans7+ans8+ans9+ans10+ans11+ans12+ans13+ans14+ans15+ans16+ans17+ans18+ans19+ans20)
	
}


function getComment(form)	{

total = getTotal(form);

			if(form.total.value < 1)	
  		 	form.total.value = "Since you believe that none of these statements apply to you, it's very likely you wear very thick glasses, work as a librarian, drive an old economy car, and for a night on the town take multiple trips to the video store with your pet hamster. If you don't die on your own, someone's sure to kill you real soon.";

  			 else if  
   				(form.total.value > 0 && form.total.value < 4) 	
   				form.total.value ="You're about as close to dying as dentures are to getting cavities, but don't give up all hope. If you take enough of these Caverns Of Blood evaluation tests, you'll probably die of insanity within the next few minutes.";

  			 else if  
   				(form.total.value > 3 && form.total.value < 6) 	
   				form.total.value ="That's it? Are you serious? You need to go on a few more gratuitous shopping sprees at your local pharmacy. And remember these famous words of Confucius who once said, 'Man who jog backwards get out of shape fast.'";

  			 else if 
 				(form.total.value > 5 && form.total.value < 9) 
   				form.total.value ="Although you're exhibiting a few preliminary signs of a soon-to-be corpse, don't break out the embalming fluid just yet. At this point, you'll probably live a fairly long life - in spite of what its already done to you.";

   			 else if	
				(form.total.value > 8 && form.total.value < 12) 
   				form.total.value ="You are simply one of those hard, crusty, unknown vegetables found in the soup bowl of life. However, with plenty of careless effort and unrestrained exploitation on your part, you'll be lawn fertilizer before you know it.";

   			 else if	
				(form.total.value > 11 && form.total.value < 14) 
   				form.total.value ="Dead to the world you are not, but those sharp little chests pains and relentless headaches you've been experiencing lately may be an indication that you should put on a clean pair of underwear for your upcoming convalescence in the hospital.";  

   			 else if	
				(form.total.value > 13 && form.total.value < 17) 
   				form.total.value ="If you don't yet own a cemetery plot, now would be a good time to put one on layaway, you may need it in the near future. In the meantime, get your affairs in order and liquidate your assets - your life is just about over. Oh, and ah, can we have your autographed syringe collection?";  

   			 else if	
				(form.total.value > 16 && form.total.value < 19) 
   				form.total.value ="You are what we refer to in the world of the healthy as 'virtually departed.' And I wouldn't worry about those pesky little rashes that recently appeared all over your body either, you'll probably be dead before your skin can clear up anyway. Darn, and you had everything it takes to be the next President too! Oh well...";

   			 else if	
				(form.total.value > 18 && form.total.value < 20) 
   				form.total.value ="Since you're not going to live to celebrate your next birthday, we'll just call you a 'cadaver-optimist' until you can prove otherwise. You're about one step away from sailing the great beyond, but you gotta give up all hope... Just because you've got green hair, it doesn't make you a tree.";

                           else 
				form.total.value ="Oh yeah! You're gonna die! 'He that is not guilty of his own death shortens not his own life - Shakespeare.' Whether later today or sometime during the night, you're gonna eat soil and play host to the worm brigade! Arrivederci, baby! Bon voyage, Spelunker! Thanks, see 'ya, bye! R.I.P.";	

}
// end hiding contents -->

