// FCA Institute of Chartered Anchovy Hunters

function FCAvalidate(theForm)
{
	var FCAsequence = 0;
	var FCAmessage = "";
	if (document.getElementById("Q1A").checked)
		{
			FCAsequence = "12";
		}
	if (document.getElementById("Q1B").checked)
		{
			FCAsequence = "13";
		}
	if (document.getElementById("Q1C").checked)
		{
			FCAsequence = "666";
		}
	if ((document.getElementById("Q2").value == "") || (FCAsequence == 0))
		{
				FCAmessage = "Please answer both questions";
		}
	else
		{
			switch (FCAsequence)
			{
				case "12":
					FCAmessage = "Congratulations " + document.getElementById("Q2").value + " FCA. You have passed!";
					break;
				default:
						alert("Sorry, membership declined, but you may qualify for a job at the Inland Revenue");
						document.location = "http://www.inlandrevenue.gov.uk/solicitors/index.htm";
						return (false);
			}
		}
	document.getElementById("A1").innerHTML = FCAmessage;
	return (false);
}