anchor.diff:             elCell.innerHTML = elCell.innerHTML + psc.tools.Dates.utcToDisplayDate(psc.tools.Dates.apiDateToUtc(date_of_birth_str[0]));
          };
   
  -
  -        // Define a custom format function
  -        function getCellInfo(elCell, oRecord, oColumn, oData) {
  -            var container = jQuery('<div class="day"/>');
  -            var list = container.append('<ul class="myUl"/>')
  -            var text = "";
  -            var assignments = oRecord.getData('assignments'),
  -                assignment = undefined,
  -                i = 0;
  -
  -            for(i = 0; i < assignments.length; ++i) {
  -                var listItem = jQuery('<li class="myLi" />');
  -
  -                assignment = assignments[i];
  -                var site = assignment.site;
  -                var study = assignment.study;
  -                var start_date_str = assignment.start_date.split(' ');
  -                var start_date = psc.tools.Dates.utcToDisplayDate(psc.tools.Dates.apiDateToUtc(start_date_str[0]));
  -
  -                text = "Subject is already enrolled to site '" + site + "' and study '" + study + "' as of start date '" + start_date +"'"
  -                var end_date_str = assignment.end_date;
  -                if (end_date_str != null && end_date_str.length> 0) {
  -                    end_date_str = end_date_str.split(' ');
  -                    var end_date = psc.tools.Dates.utcToDisplayDate(psc.tools.Dates.apiDateToUtc(end_date_str[0]));
  -                    text = text + " and till the end date '" + end_date + "'"
  -                }
  -                listItem.text(text)
  -                list.append(listItem);
  -            }
  -
  -            jQuery(elCell).append(container);
  -
  -            var hidden = oRecord.getData('hidden_assignments');
  -            if (oRecord.getData('hidden_assignments')){
  -
  -                text = text + '<br>' +"- Note: There are one or more studies the subject belongs to and to which you don't have access."
  -                elCell.innerHTML = elCell.innerHTML + text + '<br>'
  -            }
  -
  -            var showMoreLink = jQuery('<a />').attr('href', '#').text('Hide').click(function () {
  -                   container.remove();
  -                   return false;
  -               });
  -               container.append(showMoreLink);
  -        };
  -
  -
  -
  -        function toggleAlert(buttonName) {
  +       function toggleAlert(buttonName) {
               if(buttonName.className == "newSubjRadioButton"){
                   disableEnableElementsOfExistingSubject(true)
                   <c:if test="${canCreateSubjects}">
  
positive.code:                              this.selectRow(e.target);
                           }
                       });
                       subjectList.subscribe('rowSelectEvent', check);
                       subjectList.subscribe('rowUnselectEvent',uncheck);
                       subjectList.subscribe('unselectAllRowsEvent',uncheckAll);
  
  
                  }
              })
  
              // Override the built-in formatter
  	        YAHOO.widget.DataTable.formatLink = function(elCell, oRecord, oColumn, oData) {
                 var defaultText = "The subject belongs to the "
                 elCell.innerHTML = defaultText;
  
                 var showMoreLink = jQuery('<a />').attr('href', '#').text('following studies').click(function () {
                     getCellInfo(elCell, oRecord, oColumn, oData)
                     return false;
                 });
                 jQuery(elCell).append(showMoreLink);
  	        };
          };
  
          // Create a custom formatter for the checkboxes
          var checkboxFormatter = function (liner,rec,col,data) {
  
negative.code:                             { key: "date_of_birth", formatter: dateOfBirthFormat},
                              { key: "gender"},
                              { key: "person_id" },
                              { key: "assignments",  formatter: otherAssignmentsFormatter },
                              { key: "hidden_assignments"},
                              { key: "grid_id"}
                          ]
  