scripts/menu.js
/**
 * Determine what optgroup to add the Option Item to
 * @param {String} recordType The "Type" attribute for a given record
 * @param {String} menuSection The section of the Menu the optgroup is located in
 * @return {Object} A jQuery encapsulated HTML optgroup tag representing the optgroup an Option Item will be added to
 */
Determine what optgroup to add the Option Item to
@param {String} recordType The "Type" attribute for a given record
@param {String} menuSection The section of the Menu the optgroup is located in
@return {Object} A jQuery encapsulated HTML optgroup tag representing the optgroup an Option Item will be added to
Determine what optgroup to add the Option Item to @param { String } recordType The " Type " attribute for a given record @param { String } menuSection The section of the Menu the optgroup is located in @return { Object } A jQuery encapsulated HTML optgroup tag representing the optgroup an Option Item will be added to
function determineMenuItemOptGroup(recordType, menuSection) {
	var optGroup;
	if(recordType == "Builtin")
		optGroup = $("#" + menuSection + "BuiltInOptGrp");
	else if(recordType == "Custom")
		optGroup = $("#" + menuSection + "RecentCustomOptGrp");
	return optGroup;
}
function determineMenuItemOptGroup ( recordType , menuSection ) { var optGroup ; if ( recordType == "Builtin" ) optGroup = $ ( "#" + menuSection + "BuiltInOptGrp" ) ; else if ( recordType == "Custom" ) optGroup = $ ( "#" + menuSection + "RecentCustomOptGrp" ) ; return optGroup ; }
Determine what optgroup to add the Option Item to
 @param {String} recordType The "Type" attribute for a given record
 @param {String} menuSection The section of the Menu the optgroup is located in
 @return {Object} A jQuery encapsulated HTML optgroup tag representing the optgroup an Option Item will be added to
Determine what optgroup to add the Option Item to @param { String } recordType The " Type " attribute for a given record @param { String } menuSection The section of the Menu the optgroup is located in @return { Object } A jQuery encapsulated HTML optgroup tag representing the optgroup an Option Item will be added to