// messages.js
function HumanistyMessages(){

    this.messages = new Array();

    // Note(!!!): key can get only constant values (string, not variables)
    this.getMessage = function(key, arg0){
        if (isNotNull(arg0)){
            return this.messages[key].replace("{0}", arg0);
        } else {
            return this.messages[key];
        }
    }

    this.setMessage = function(key, message){
        this.messages[key] = message;
    }
}

var hMessages = new HumanistyMessages();

