com.crosscap.common.Util = {
	getObjectById: function(objs, id) {
		var ret = null;
		if(id != null) {
			$.each(objs, function(i, obj) {
				if(obj.id == id) {
					ret = obj;
				}
			});
		}
		return ret;
	}
	, getObjectByProperty: function(objs, propertyName, val) {
		var ret = null;
		$.each(objs, function(i, obj) {
			if(eval('obj.' + propertyName) == val) {
				ret = obj;
			}
		});
		return ret;
	}
	, getValueListByProperty: function(objs, propertyName) {
		var arr = [];
		$.each(objs, function(i, obj) {
			arr[i] = eval('obj.' + propertyName);
		});
		return arr;
	}
};