function AddTo(login)
{
if(top.cf.action==0){
top.talk.F1.text.focus();
top.talk.F1.text.value = 'to ['+login+'] '+ top.talk.F1.text.value;
}
else if(top.cf.action==1){
top.main.action.target.focus();
top.main.action.target.value = login;
}
}
function AddToPrivate(login)
{top.talk.F1.text.focus();
top.talk.F1.text.value = 'private ['+login+'] ' + top.talk.F1.text.value;
}
function OpenMenu() //Менюшка в чате
{var el, x, y, login, login2;
el = frames["chat"].document.all("oMenu");
var o = frames["chat"].window.event.srcElement;
if (o.tagName != "SPAN") return true;
x = frames["chat"].window.event.clientX + frames["chat"].document.documentElement.scrollLeft + frames["chat"].document.body.scrollLeft - 3;
y = frames["chat"].window.event.clientY + frames["chat"].document.documentElement.scrollTop + frames["chat"].document.body.scrollTop;
if (frames["chat"].window.event.clientY + 72 > frames["chat"].document.body.clientHeight) { y-=34 } else { y-=2 }
login = o.innerText;
frames["chat"].window.event.returnValue=false;
var i1, i2;
if ((i1 = login.indexOf('['))>=0 && (i2 = login.indexOf(']'))>0) login=login.substring(i1+1, i2);
var login2 = login;
login2 = login2.replace('%', '%25');
while (login2.indexOf('+')>=0) login2 = login2.replace('+', '%2B');
while (login2.indexOf('#')>=0) login2 = login2.replace('#', '%23');
while (login2.indexOf('?')>=0) login2 = login2.replace('?', '%3F');
el.innerHTML = '<A class=menuItem HREF="javascript:top.cf.AddTo(\''+login+'\');top.cf.cMenu()">Сказать</A>'+
'<A class=menuItem HREF="javascript:top.cf.AddToPrivate(\''+login+'\');top.cf.cMenu()">Шепнуть</A>'+
'<A class=menuItem HREF="javascript:top.cf.copyLogin(\''+login+'\');top.cf.cMenu()">копировать</A>'+
'<A class=menuItem HREF="javascript:top.cf.inf(\''+login+'\');top.cf.cMenu()">Инфо</A>';
el.style.left = x + "px";
el.style.top = y + "px";
el.style.visibility = "visible";
}
<a href=\"javascript:top.cf.AddToPrivate(\'".$login_hr."\');\"><img border=0 src=../img/arrow3.gif alt=\"Приватное сообщение\" width=20 height=15></a>$orden$clan<a class=link href=javascript:top.cf.AddTo(\"$log2\")><B>$log</B></a> [$lev]$inf $shut_i $travm_i $boy_i<br>";
Подскажите, пожалуйста.