anchor.diff:                                    }
                                 }
   
  -                              if(found && !multiple)
  +                              if(found && !foundSynonym && !multiple)
                                     continue;
                                 else
                                   allValid = false;
   
                                 if(multiple) {
  -                                  for(var k=0; k < symbols.length; k++) {
  -                                     var aSymbol = symbols[k];
  +                                   var state = $("<li>").addClass("ui-state-default ui-corner-all");
  +                                   var stateSpan = $("<span>").addClass("ui-icon ui-icon-help");
  +                                   var stateText = $("<span>").addClass("text");
  +
  +                                   stateText.html(genes[i] + ": ");
  +                                   var nameSelect = $("<select>").addClass("geneSelectBox").attr("name", genes[i]);
  +                                   $("<option>").attr("value", "")
  +                                        .attr("disabled", "disabled")
  +                                        .html("select a symbol")
  +                                        .appendTo(nameSelect);
  +                                   for(var k=0; k < symbols.length; k++) {
  +                                        var aSymbol = symbols[k];
  +                                        var anOption = $("<option>").attr("value", aSymbol).html(aSymbol);
  +                                        anOption.appendTo(nameSelect);
  +                                   }
  +                                   nameSelect.appendTo(stateText);
  +                                   nameSelect.change(function() {
  +                                         var trueSymbol = $(this).attr('value');
  +                                         var geneName = $(this).attr("name");
  +                                         $("#gene_list").val($("#gene_list").val().replace(geneName, trueSymbol));
  +                                         setTimeout(validateGenes, 500);
  +                                   });
  +
  +                                   stateSpan.appendTo(state);
  +                                   stateText.insertAfter(stateSpan);
  +                                   state.attr("title",
  +                                         "Ambiguous gene symbol. Click on one of the alternatives to replace it."
  +                                   );
  +                                   state.attr("name", genes[i]);
  +                                   state.appendTo(stateList);
  +                              } else if( foundSynonym ) {
                                        var state = $("<li>").addClass("ui-state-default ui-corner-all");
  +                                     var trueSymbol = aResult.symbols[0];
  +
                                        state.click(function(){
  -                                           $(this).toggleClass('ui-state-active');
  -                                           geneName = $(this).attr("name");
  -                                           $("#gene_list").val($("#gene_list").val().replace(geneName, aSymbol));
  -                                           setTimeout(validateGenes, 500);
  +                                          $(this).toggleClass('ui-state-active');
  +                                          geneName = $(this).attr("name");
  +                                          $("#gene_list").val($("#gene_list").val().replace(geneName, trueSymbol));
  +                                          setTimeout(validateGenes, 500);
                                        });
  -
                                        var stateSpan = $("<span>").addClass("ui-icon ui-icon-help");
                                        var stateText = $("<span>").addClass("text");
  -                                     stateText.html("<b>" + genes[i] + "</b>: " + aSymbol);
  +                                     stateText.html("<b>" + genes[i] + "</b>: " + trueSymbol);
                                        stateSpan.appendTo(state);
                                        stateText.insertAfter(stateSpan);
                                        state.attr("title",
  -                                         "Ambiguous gene symbol. Click on one of the alternatives to replace it."
  +                                            "'" + genes[i] + "' is a synonym for '" + trueSymbol + "'. "
  +                                                + "Click here to replace it with the official symbol."
                                        );
                                        state.attr("name", genes[i]);
                                        state.appendTo(stateList);
  -                                  }
                                 } else {
                                        var state = $("<li>").addClass("ui-state-default ui-corner-all");
                                        state.click(function(){
  
positive.code:                                 validState.appendTo(stateList);
                                  validState.attr("title", "You can now submit the list").tipTip();
                            } else {
                                  $("#main_submit")
                                      .attr("title", "Gene symbols are not valid. Please edit the gene list.")
                                      .tipTip();
                            }
  
                            $("<br>").appendTo(stateList);
  
negative.code: 		    cursor: pointer;
  		    float: left;
  		    list-style: none;
  		    height: 20px;
  		}
  		span.ui-icon {float: left; margin: 0 4px;}
  		span.text {float: left; padding-right: 5px;}
  