anchor.diff:                      var select = $('<select id="sourceTypes'+activityId+'">')
   
                       for (var i =0; i < activityTypes.length; i++) {
  -                        var activityTypeId = activityTypes[i].activity_type_id
                           var activityTypeName = activityTypes[i].activity_type_name
   
                           var row;
                           if (activityType == activityTypeName) {
  -                            row = $('<option value="'+ activityTypeId +'" selected="selected"/>').text(activityTypeName);
  +                            row = $('<option value="'+ activityTypeName +'" selected="selected"/>').text(activityTypeName);
                           } else {
  -                            row = $('<option value="'+ activityTypeId +'"/>').text(activityTypeName);
  +                            row = $('<option value="'+ activityTypeName +'"/>').text(activityTypeName);
                           }
                           select.append(row);
                       }
  
positive.code:                     // Build custom request
                      var parms = "";
                      if (sort != null) {
                          parms += sort;
                      }
                      return  parms +
                              "&order=" + dir +
  
negative.code:                 var activitySource= $('#sources').val()
  
                  var element = '<Activity name=\"' + activityName +'\" code=\"' + activityCode +'\" description=\"'
                          + activityName +'\" type=\"'+activityTypeName +'\" source=\"' + activitySource + '\"/>'
  
                  clearErrorMessage();
                  $.ajax({
  