// Form Validation
function validateForm() {

	var message = "";
	var validate = "yes";
	
	// Bereavement Package Type
	if (document.getElementById('Package').value == "") {
		message += "-You did not select a bereavement package type\n";
		validate = "no";
	}
	
	// Where to send the package
	if (document.getElementById('SendPackage').value == "") {
		message += "-You did not select where the package should be sent\n";
		validate = "no";
	}
	
	// Sender Name
	if (document.getElementById('Name11').value == "") {
		message += "-You did not enter the sender's name\n";
		validate = "no";
	}

	// Recipient Name
	if (document.getElementById('Name12').value == "") {
		message += "-You did not enter the recipient's name\n";
		validate = "no";
	}
	
	// If the form validated, submit the form. Otherwise, display an alert, showing which fields were not completed
	if (validate == "yes") {
		document.LovedOne.submit();
	} else {
		alert("The form could not be submitted. The following field(s) are incomplete:\n\n" + message + "\nPlease complete the form and submit again.");
	}	

} // end function validateForm