function CheckRegisterForm()
{
	var FormFields = new Array(10);
	var Count;
	var CountBlank;
	var BlankMessage = "";

	for(Count=0;Count<10;Count++)
	{
		FormFields[Count] = new Array(2);
	}
	
	FormFields[0][0] = document.getElementById("firstName");
	FormFields[0][1] = "First Name";

	FormFields[1][0] = document.getElementById("lastName");
	FormFields[1][1] = "Last Name";

	FormFields[2][0] = document.getElementById("titleDepartment");
	FormFields[2][1] = "Title/Department";

	FormFields[3][0] = document.getElementById("organization");
	FormFields[3][1] = "Organization";

	FormFields[4][0] = document.getElementById("address1");
	FormFields[4][1] = "Address 1";

	FormFields[5][0] = document.getElementById("city");
	FormFields[5][1] = "City";

	FormFields[6][0] = document.getElementById("provinceState");
	FormFields[6][1] = "Province/State";

	FormFields[7][0] = document.getElementById("postalCodeZip");
	FormFields[7][1] = "Postal Code/Zip Code";

	FormFields[8][0] = document.getElementById("email");
	FormFields[8][1] = "E-mail";

	FormFields[9][0] = document.getElementById("phone");
	FormFields[9][1] = "Phone";
	
	CountBlank = 0;
	
	for (Count=0; Count < FormFields.length; Count++)
	{
		if (FormFields[Count][0].value == "")
		{
			BlankMessage += "Please fill in the " + (FormFields[Count][1] + " field\n");
			CountBlank++;
		}
	}

	if (document.getElementsByName("dietaryRadio")[0].checked && document.getElementById("dietaryText").value == "")
	{
		BlankMessage += "Please fill in the Dietary Restrictions field\n";
	}

	if (BlankMessage != "")
	{
		alert(BlankMessage);
		document.getElementById("workshop").scrollIntoView();
		return false;
	}
	else {
		return true;
	}
}