code: 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;
  	}
docs: Function: eval
  
  Evaluates the given expression using eval and returns the JavaScript
  object that represents the expression result. Supports evaluation of
  expressions that define functions and returns the function object for
  these expressions.
  
  Parameters:
  
  expr - A string that represents a JavaScript expression.