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