rem: if (typeof(elemid) == 'undefined') { elemid = 'messages'; } var message = DIV({'style':'color:'+color+';'},m.message); appendChildNodes(elemid, message);     
add: var message = DIV({'class':type},message, ' ', A({'style': 'cursor: pointer;', 'onclick':'removeElement(this.parentNode)'},'[X]'));  appendChildNodes('messages', message);      
context: function displayMessage(m, /* optional */ elemid) {    var color = 'red';    if (m.type == 'ok') {        color = 'green';    }    else if (m.type == 'info') {        //color = '#aa6;';        logDebug(m.message);        return;    }    if (typeof(elemid) == 'undefined') {        elemid = 'messages';    }    var message = DIV({'style':'color:'+color+';'},m.message);    appendChildNodes(elemid, message);    //callLater(2, function() {    //    removeElement(message);    //    //fade(message);    //});}
meta: 5659	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5659/41d6d2fae0bfd8fa7dc95a7f68afc350be1f9ff4/mahara.js/buggy/htdocs/js/mahara.js