sendLogOutOk(req){
if(req.responseText=="ok"){
creatInfo(barinf_logoutok);
$(''ppjoke_logdiv'').style.display=''none'';
$(''alogin'').style.display=''inline'';
$(''ppjoke_alogout'').style.display=''none'';
$(''name'').value=Anonymous;
$(''name'').blur();
$(''name'').disabled = ''''
Field.select(''talk'');
clearChat() ;
}else{
creatInfo(barinf_logouterro);
}
}
}
function msg2face(msg,element){
var msgtext=$A(msg.match(/([^\[]*)(\[\d\d\])?/gim));
if(msgtext[0]){
msgtext.each(function(word){
var section = word.match(/([^\[]*)\[?(\d\d)?\]?/i);
if(section){
var msgtext = document.createTextNode(section);
element.appendChild(msgtext);
}
if(section){
msgimg = document.createElement(''img'');
msgimg.setAttribute(''src'',''ppjoke/images/smilies/Face_''+section+''.gif'');
element.appendChild(msgimg);
}
}
);
}else{
element.appendChild(document.createTextNode(msg));
}
}
function creatInfo(