docs: function(obj, array)
  	{
  		var result = null;
  		
  		if (typeof(array) == 'object')
  		{
  			var index = mxUtils.indexOf(array, obj);
  			
  			while (index >= 0)
  			{
  				array.splice(index, 1);
  				result = obj;
  				index = mxUtils.indexOf(array, obj);
  			}
  		}
  
  		for (var key in array)
  		{
  			if (array[key] == obj)
  			{
  				delete array[key];
  				result = obj;
  			}
  		}
  		
  		return result;
  	}