docs: function(expr)
  	{
  		var result = null;
  
  		if (expr.indexOf('function') >= 0)
  		{
  			try
  			{
  				eval('var _mxJavaScriptExpression='+expr);
  				result = _mxJavaScriptExpression;
  				// TODO: Use delete here?
  				_mxJavaScriptExpression = null;
  			}
  			catch (e)
  			{
  				mxLog.warn(e.message + ' while evaluating ' + expr);
  			}
  		}
  		else
  		{
  			try
  			{
  				result = eval(expr);
  			}
  			catch (e)
  			{
  				mxLog.warn(e.message + ' while evaluating ' + expr);
  			}
  		}
  		
  		return result;
  	}