var FormMentionUpdater = Class.create();

FormMentionUpdater.attributes = ["mention"];

FormMentionUpdater.prototype = {
   initialize: function() {
      this.lastMentionSelected = null;
   },
   ajaxUpdate: function(ajaxResponse) {
      this.setMention(ajaxResponse.childNodes[0]);
   },
   setMention: function(aMention) {

		this.lastMentionSelected = aMention;

		for( i=0; i<1; i++){

			attr = FormMentionUpdater.attributes[i];
			val = this.emphasizedHTML( aMention.getAttribute(attr));
			document.getElementById(attr).innerHTML = val;
		}
   },
   emphasizedHTML: function(aValue) {
         return  aValue;
   }
};