code: function(x, y, inclusive) {
          //set default
          if (inclusive == null) {
              inclusive = true;
          }
  
          if (x == null || y == null) {
              return false;
          }
  
          x = OpenLayers.Util.toFloat(x);
          y = OpenLayers.Util.toFloat(y);
  
          var contains = false;
          if (inclusive) {
              contains = ((x >= this.left) && (x <= this.right) && 
                          (y >= this.bottom) && (y <= this.top));
          } else {
              contains = ((x > this.left) && (x < this.right) && 
                          (y > this.bottom) && (y < this.top));
          }              
          return contains;
      }
docs: APIMethod: contains
  Returns whether the bounds object contains the given x and y.
  
  Parameters:
  x - {Float}
  y - {Float}
  inclusive - {Boolean} Whether or not to include the border. Default is
  true.
  
  Returns:
  {Boolean} Whether or not the passed-in coordinates are within this
  bounds.