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/incomplete, please check and retry!", "A1004": "OKAY! your request for volunteering is successfully submitted, please note down the request ID: ", "A1005": "OOPS! your request for volunteering is not successfully registered, please retry!", "A1006": "OOPS! your data seems not valid/incomplete, please check and retry!", "A1007": "OOPS! error encountered while fetching donation scope, please retry!", "A1008": "OOPS! valid PAN is mandatory for donations, please check and retry!", "A1009": "OOPS! an unknown system error encountered while verifying PAN details, please retry later!", "A1010": "UH-OH! the name you entered did not match with the name you registered with PAN authorities, please retry!", "A1011": "UH-OH! something went wrong while submitting your request, please retry!", "A1012": "UH-OH! you have decided not to proceed with your payment, please recheck and complete your transaction.", "A1013": "OOPS! your request for donation is not successfully registered, please retry or email donations@maitribodh.org.", "A1014": "OKAY! your donation is successfully submitted, your receipt is sent to you via email, click OK to view the receipt.", "A1015": "Disclaimer: Any donation made to the trust shall not entitle the donor to participate in the management of the trust which shall be governed by the provision of the trust deed. Donation made will not be refunded under any circumstances whatsoever.", "A1016": "I have voluntarily contributed towards {{scope}}.", "A1017": "UH-OH! mandatory information are incomplete, please fill in all data and retry!", "A1018": "OOPS! your email address is not valid, please check and retry!", "E9999": "OOPS! EXCEPTION OCCURRED\n\nFunction: " + caller + "\nMessage: " + 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; }