anchor.diff:  			var val = "";
   			var displayUriID = selectId+ '.readableValue';
   			var selVal = "";
  -					              
  +
   			for (var i = 0; i < item.options.length; i++) {
   				if (item.options[ i ].selected) {
   					 selVal = item.options[ i ].text;
  -					
  +
   					// g is for global replacement
               		 val = val + "," + selVal.replace(/\,/g,' ');
  -            		 
  +
               	}
  -		    }	
  +		    }
   		    $(displayUriID).value = val.replace(/\,/,'');
   			
   	}
  -	
  -	
  +
  +
  +        function handleValueOntextNonValidValues(item)
  +        {
  +
  +            var selectId =   item.id.substring(0,item.id.lastIndexOf("."));
  +            var val = "";
  +            var displayUriID = selectId+ '.readableValue';
  +            var selVal = $F(item);
  +            val = val + "," + selVal.replace(/\,/g,' ');
  +            $(displayUriID).value = val.replace(/\,/,'');
  +
  +        }
   	function handleValueOnselect(operatorDropDown, ruleCount, fieldIndex, multi)
   	{
   		
  
positive.code:                                 var inputArea = '<input id="' + newId + '" name="' + newId +'" value="'+ fieldValue.replace(/\,/,'') + '" />';
                                  inputArea += '<img alt="activity indicator" src="<c:url value="/images/indicator.white.gif" />" class="indicator" id="ind-indicator"/>';
  
                                  var hiddenArea = '<input type="hidden" id="' + hiddenId + '" name="' + hiddenId +'" cols=40 rows=8/>';
  
                                  $(spanId).innerHTML = inputArea + '<div id="' + newId + '-choices' + '"></div>' + hiddenArea;
  
  
negative.code: 	
  					
  					
  			}
              else if (selectedField.value == 'meddraCode') {
  				var newId = validValueField.id; 
  				var spanId = newId + '.span';
  				var hiddenId = selectId + '.literalRestriction[0].readableValue'
  