// JavaScript Document
var randomnumber
function start(){
	randomnumber=1
	document.hDay.src=randomnumber+"u.jpg";
}
function qPick(){
	randomnumber = Math.floor(Math.random()*8)+1;
	document.hDay.src=randomnumber+"u.jpg";
}

function test(){
	if 	(document.form1.radiobutton[randomnumber-1].checked){
	document.hDay.src=randomnumber+"l.jpg"
	document.form1.btnReplay.style.visibility="visible";
	} else {
		if (randomnumber > 4) {
				alert("That's not right." + "\n" + "Don't forget, the Shamash is in the middle." 
					  + "\n" + "Subtract 1 candle to figure out the day of Hanukkah and try again.");
			} else {
				alert("That's not right." + "\n" +"Try again!")	
			}
	}
}
