anchor.diff:         }
   
          function acCreate(mode) {
  +           	$( mode.basename + '-clear').observe('click', function(evt) {
  +        	$( mode.basename + + "-selected").hide()
  +         	$( mode.basename ).value = ""
  +       		var ctcDiseaseField = $( mode.basename + "-input")
  +       		ctcDiseaseField.addClassName('pending-search');    
  +          	ctcDiseaseField.value = 'Begin typing here...';              
  +           });
  +           
              new Autocompleter.DWR(mode.basename + "-input", mode.basename + "-choices",
                  mode.populator, {
                  valueSelector: mode.valueSelector,
  
positive.code:        }
  
         var diseaseAutocompleterProps = {
             basename: "disease",
             populator: function(autocompleter, text) {
                 createStudy.matchDiseaseCategories(text, '' , function(values) {
                     autocompleter.setChoices(values)
  
negative.code: 				},
  				function(lowLevelTerm) { return lowLevelTerm.fullName });
  			</c:if>	
  
  
  	        var ctcClearBtn = $('diseaseCategoryAsText-clear');
  	        if(ctcClearBtn){
  		        ctcClearBtn.observe('click', function(){
  		        	 var opt = new Option("Please select a category first", "");
  		        	 var opt1 = new Option("Please select a category first", "");
  		        	$('disease-sub-category').options.length=0;
  		        	$('disease-sub-category').options.add(opt1);
  			        $('disease-term').options.length=0;
  			        $('disease-term').options.add(opt);
  		        });
  	        }
         })
  
      </script>
  