function changecoin() {	switch (document.forms[0].coinchoice.value) {	   case "us_quarter":		  document.images[0].src = "images/us_quarter_front.jpg"		  break;	   case "us_penny":		  document.images[0].src = "images/us_penny_front.jpg"		  break;	   case "uk_pound":		  document.images[0].src = "images/uk_pound_front.jpg"		  break;	   case "mad":		  document.images[0].src = "images/mad_front.gif"		  break;	}}function flip() { var cointype = document.forms[0].coinchoice.value	flippedstate = Math.floor(Math.random() * 2);	if (flippedstate == 0) { 	document.images[0].src = "images/" + cointype + "_front.gif";   	var questionvalue = document.forms[0].heads.value 	document.getElementById("headsortails").innerHTML = "<h2>Heads</h2>"; 	document.getElementById("question").innerHTML = "<h3>" + questionvalue + "</h3>" 	 };		if (flippedstate == 1) { 	document.images[0].src = "images/" + cointype + "_back.gif"; 	var questionvalue = document.forms[0].tails.value       	document.getElementById("headsortails").innerHTML = "<h2>Tails</h2>";	document.getElementById("question").innerHTML = "<h3>" + questionvalue + "</h3>"	 } ;	 	 }