File: /home/asjudine/public_html/chatasjudinet/script.js
mensajes = new Array();
i = 0;
function anade(){
i=mensajes.length;
if(document.forms[0][0].value)mensajes[mensajes.length] = document.forms[0][0].value;
setTimeout('document.forms[0][0].value=""',10);
}
function mensaje(ob,n){
if((i-n>-2)&& (i-n<mensajes.length-1)){
i-=n;
ob.value = mensajes[i+1];
}
}
function am(m){
txt = parent.document.getElementById('texto');
txt.innerHTML = txt.innerHTML + '#' + m + '<br />';
txt.scrollTop = 10000;
}
function ms(d,c,m){
txt = parent.document.getElementById('texto');
txt.innerHTML = txt.innerHTML + '<font color="' + c + '"><a href="#" onclick="to(this)">'+d+'</a> > ' + m + '</font><br />';
txt.scrollTop = 10000;
}
function mp(d,c,m){
txt = parent.document.getElementById('texto');
txt.innerHTML = txt.innerHTML + '#Privado <font color="' + c + '"><a href="#" onclick="to(this)">'+d+'</a> > ' + m + '</font><br />';
txt.scrollTop = 10000;
}
function st(){
parent.frames['sercl'].location = 'script.php';
}
function sp(){
parent.frames['sercl'].location = 'blank.php';
}
function ul(l){
usr = parent.document.getElementById('usuarios');
usr.innerHTML = '';
if(l)for(i=0; i<l.length; i++)usr.innerHTML = usr.innerHTML + '<a href="#" onclick="to(this)">' + l[i] +'</a><br>';
}
function cl(l){
parent.document.getElementById('texto').innerHTML = '';
}
function to(vinculo){
txt = document.forms[0][0];
txt.value = '/msg ' + vinculo.innerHTML + ' ';
txt.focus();
}
function mn(t){
txt = document.forms[0][0];
txt.value = t;
txt.focus();
}