anchor.diff:      current_mode = "course";
     }
   
  +  function show_button() {
  +    if( has_classes ) return;
  +    $("#user-course-list .btn").removeClass("hidden");
  +    $("#user-course-list .hint").hide("slow");
  +  };
  +
     /* In order to send a list of class ids to rails, we need to silently 
        keep track of the class ids in a hidden form as well as send the size of the list */
     var add_course_id_to_hidden_form = function( course_id ) { 
  
positive.code:       /* If the user hit a tab, we don't want to add it just yet */
        return;
      }
  
      /* Prevent input box being filled */ 
      event.preventDefault();
      $(autocomplete_div).val(""); 
  
      if ( ui.item ) {
        var class_id = ui.item.value;
        if( class_id in selected_classes ){
          /* return if the user as already selected the class*/
          pop_alert("error","class is already selected"); // REMOVE THIS LATER
          return;
        } else {
          selected_classes[class_id] = class_counter;
        }
  
        /* Append the course to the currently populated list */
        $("<li/>").text(ui.item.label).appendTo("#user-course-list ul");
  
        /* Add the course id to our hidden form */
        add_course_id_to_hidden_form(class_id);
  
negative.code:     });
    
  
    var class_counter = 0;
    var spacebar_keycode = "32";
    var selected_classes = {};
    var autocomplete_div = "#autocomplete-course-list";
    var ajax_search_url = "courses/search/auto/subject/";
    var current_mode = "subject";
    var has_classes = false;
  
    autocomplete_state = "closed";
  
  