code: function(e, cal) {
          var cell, d, date, index;
  
          var target = Event.getTarget(e),
              tagName = target.tagName.toLowerCase(),
              defSelector = false;
  
          while (tagName != "td" && !Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
  
              if (!defSelector && tagName == "a" && Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
                  defSelector = true;
              }
  
              target = target.parentNode;
              tagName = target.tagName.toLowerCase();
  
              if (target == this.oDomContainer || tagName == "html") {
                  return;
              }
          }
  
          if (defSelector) {
              // Stop link href navigation for default renderer
              Event.preventDefault(e);
          }
      
          cell = target;
  
          if (Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
              index = cal.getIndexFromId(cell.id);
              if (index > -1) {
                  d = cal.cellDates[index];
                  if (d) {
                      date = DateMath.getDate(d[0],d[1]-1,d[2]);
                  
                      var link;
  
                      cal.logger.log("Selecting cell " + index + " via click", "info");
                      if (cal.Options.MULTI_SELECT) {
                          link = cell.getElementsByTagName("a")[0];
                          if (link) {
                              link.blur();
                          }
  
                          var cellDate = cal.cellDates[index];
                          var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
  
                          if (cellDateIndex > -1) { 
                              cal.deselectCell(index);
                          } else {
                              cal.selectCell(index);
                          } 
  
                      } else {
                          link = cell.getElementsByTagName("a")[0];
                          if (link) {
                              link.blur();
                          }
                          cal.selectCell(index);
                      }
                  }
              }
          }
      }
docs: The default event handler for date cell selection. Currently attached to
  the Calendar's bounding box, referenced by it's <a href="#property_oDomContainer">oDomContainer</a> property.
  
  @method doSelectCell
  @param {DOMEvent} e The DOM event
  @param {Calendar} cal A reference to the calendar