/* ${__APPLICATION_VERSION__} */

eds.webapp.widget.DomIds = function(ids) {

	if ( !ids ) {
		throw "Must specify IDs.";
	}

	this.dumpIds = function() {

		var str = '{';

		for ( var index in ids ) {
			str += "\t" + index + ': ' + this.getId(index) + "\n";
		}

		str += '}';

		return str;
	}


	this.getId = function(key) {
		if ( typeof( ids[key] ) == "undefined" ) {
			throw "Nonexistent key. \"" + key + "\". Programming error.";
		}

		return ids[key];
	}
}

