if(text.search('botsm') != -1) { var randomer = Math.random(); randomer = randomer * 278; // 278 смайлов randomer = Math.ceil(randomer); var botrandsm = ' <img src=".../'+randomer+'.gif" onclick="parent.sendto(\' *'+randomer+' \')" title=" *'+randomer+' " style="cursor: pointer; cursor: hand;" alt="" /> '; while(text.search('botsm') != -1) text = text.replace('botsm',botrandsm); }
var randomer = (parseInt(time.substr(6,8))+parseInt(time.substr(3,5)))/1000;