function gets(messageId, message, caller = "") {
// A Series - application logical messages
// E Series - exception errors/warnings
var txtStrings = {
"A1001": "OKAY! your message is successfully submitted, please note down the request ID: ",
"A1002": "OOPS! your message is not successfully registered, please retry!",
"A1003": "OOPS! your data seems not valid, please check and retry!",
"A1004": "OKAY! your registration is successfully submitted, please note down the request ID: ",
"A1005": "OOPS! your registration is not successfully registered, please retry!",
"A1006": "UH-OH! live registration already exists for this registrant!",
"E9999": "OOPS! EXCEPTION OCCURRED
Function: " + caller + "
Message: " + message
};
stringValue = eval("txtStrings." + messageId);
if (typeof(stringValue) == "undefined") stringValue = messageId + ": Unknown error!";
if (messageId == "E9999") removeLoader();
return (stringValue.search("UH-OH!") != -1 || stringValue.search("OOPS!") != -1 ? "[" + messageId.trim() + "] " : "") + stringValue;
}