//áÊ´§¢éÍÁÙÅ content ¶éÒÁÕ
if (datas[2]!="0") {
var content = document.getElementById("content");
datas[3]=String(datas[3]);
datas[3]=datas[3].replace(/\|\%\|/g, "&"); //à¤Ã×èͧËÁÒ &
for (n=0; n<smiles.length; n++) {
datas[3]=datas[3].replace(smiles[n], "<img src=../chatroom/skin/img/"+n+".gif align=absmiddle>");
}
var contents=datas[3].split("\n"); //ÃÒ¡Òà content ·Ñé§ËÁ´
var data="<table>";
for (i=0; i<contents.length; i++) {
if (contents[i]!="") {
var d=contents[i].split(String.fromCharCode(4));
var duser=d[0];
var dc=color[parseInt(d[1])]
}
function ckeckrude( data )
{
//block คำหยาบ และประโยคที่จะนำมาแทนที่
var wordrude = new Array ( "ashole","a s h o l e","a.s.h.o.l.e","bitch","b i t c h","b.i.t.c.h","shit","s h i t","s.h.i.t","fuck","dick","f u c k","d i c k","f.u.c.k","d.i.c.k","มึง","มึ ง","ม ึ ง","ม ึง","มงึ","มึ.ง","มึ_ง","มึ-ง","มึ+ง","กู","ควย","ค ว ย","ค.ว.ย","คอ วอ ยอ","คอ-วอ-ยอ","ปี้","เหี้ย","ไอ้เหี้ย","เฮี้ย","ชาติหมา","ชาดหมา","ช า ด ห ม า","ช.า.ด.ห.ม.า","ช า ติ ห ม า","ช.า.ติ.ห.ม.า","สัดหมา","สัด","เย็ด","หี","สันดาน","แม่ง","ระยำ","ส้นตีน","แตด" );
var wordchange = '<font style="color:red">xxx</font>';
for ( n = 0 ; n < wordrude.length ; n++ )
{
pattern = new RegExp( wordrude[n] , "gi" );
data = data.replace( pattern , wordchange );
};
return data;
};
function ckeckrude( data )
{
//block คำหยาบ และประโยคที่จะนำมาแทนที่
var wordrude = new Array ( "ashole","a s h o l e","a.s.h.o.l.e","bitch","b i t c h","b.i.t.c.h","shit","s h i t","s.h.i.t","fuck","dick","f u c k","d i c k","f.u.c.k","d.i.c.k","มึง","มึ ง","ม ึ ง","ม ึง","มงึ","มึ.ง","มึ_ง","มึ-ง","มึ+ง","กู","ควย","ค ว ย","ค.ว.ย","คอ วอ ยอ","คอ-วอ-ยอ","ปี้","เหี้ย","ไอ้เหี้ย","เฮี้ย","ชาติหมา","ชาดหมา","ช า ด ห ม า","ช.า.ด.ห.ม.า","ช า ติ ห ม า","ช.า.ติ.ห.ม.า","สัดหมา","สัด","เย็ด","หี","สันดาน","แม่ง","ระยำ","ส้น ตีน","แตด" );
var wordchange = '<font style="color:red">xxx</font>';
for ( n = 0 ; n < wordrude.length ; n++ )
{
pattern = new RegExp( wordrude[n] , "gi" );
data = data.replace( pattern , wordchange );
};
return data;
};