﻿function Dictionary() {
    this.Add = mAdd;
    this.Lookup = mLookup;
    this.Delete = mDelete;
}

function mLookup(strKeyName) {
    //return undefined (no any quote mark!!!) when not existing. 
    return (this[strKeyName]);
}

function mAdd() {
    for (c = 0; c < mAdd.arguments.length; c += 2) {
        this[mAdd.arguments[c]] = mAdd.arguments[c + 1];
    }
}

function mDelete(strKeyName) {
    for (c = 0; c < mDelete.arguments.length; c++) {
        if (mDelete.arguments[c] in this)
            delete this[mDelete.arguments[c]];
        //this[mDelete.arguments[c]] = null;
    }
}

