//----------------------------------------------------------------------------
//  FeastReason() -- Popup about why this person is a saint
//  (c) 2009-2010 by Improvement Sales, LLC.  All Rights Reserved.
//----------------------------------------------------------------------------

function FeastReason(reason) {

	//  Codes are sent to this routine as a string separated by spaces.
	//  They must be broken down into individual components.

	var FeastCodes = reason.split(" ");
	var helpstring = "Why This Person Is A Saint (Code Explanations):\n";
	for( var count=0; count<=FeastCodes.length-1; count++ ) {
		switch( FeastCodes[count] ) {
			case "Ab": helpstring += "\nAb = Abbot"; break;
			case "Ap": helpstring += "\nAp = Apostle"; break;
			case "B": helpstring += "\nB = Bishop"; break;
			case "C": helpstring += "\nC = Confessor"; break;
			case "D": helpstring += "\nD = Doctor"; break;
			case "E": helpstring += "\nE = Evangelist"; break;
			case "M": helpstring += "\nM = Martyr"; break;
			case "P": helpstring += "\nP = Pope"; break;
			case "Penitent": helpstring += "\nPenitent = Penitent"; break;
			case "Pr": helpstring += "\nPr = Priest"; break;
			case "V": helpstring += "\nV = Virgin"; break;
			case "W": helpstring += "\nW = Widow"; break;
		}
	}
	alert(helpstring);
}

//----------------------------------------------------------------------------
//  MassType() -- Popup about what kind of Mass this is
//  (c) 2009-2010 by Improvement Sales, LLC.  All Rights Reserved.
//----------------------------------------------------------------------------

function MassType(reason) {

	switch( reason.toUpperCase() ) {
		case "H": alert("This Mass will be a: Solemn High Mass"); break;
		case "L": alert("This Mass will be a: Low Mass"); break;
		case "M": alert("This Mass will be a: Missa Cantata (Sung Mass)"); break;
	}

}

