pfcClient.prototype.updateNickWhoisBox = function(nickid) { var className = (! is_ie) ? 'class' : 'className'; var usermeta = this.getAllUserMeta(nickid); var div = document.createElement('div'); div.setAttribute(className, 'pfc_nickwhois'); var p = document.createElement('p'); p.setAttribute(className, 'pfc_nickwhois_header'); div.appendChild(p); // add the close button var img = document.createElement('img'); img.setAttribute(className, 'pfc_nickwhois_close'); img.pfc_parent = div; img.onclick = function(evt){ this.pfc_parent.style.display = 'none'; return false; } img.setAttribute('src', this.res.getFileUrl('images/close-whoisbox.gif')); img.alt = this.res.getLabel('Close'); p.appendChild(img); p.appendChild(document.createTextNode(usermeta['nick'])); // append the nickname text in the title // add the whois information table var table = document.createElement('table'); var tbody = document.createElement('tbody'); table.appendChild(tbody); var um_keys = usermeta.keys(); var msg = ''; for (var i=0; i