var lsAllies = new Array(), idAllies = new Array();
var lsRAllies = new Array(), idRAllies = new Array();
var lsBans = new Array(), idBans = new Array();
var tratt;
function TrustedAlly(id,name)
{
this.id = id;
this.name = name;
this.selected = false;
}
function ReverseAlly(id,level,name)
{
this.id = id;
this.name = name;
this.level = parseInt(level,10);
this.selected = false;
}
function BannedPlayer(id,name)
{
this.id = id;
this.name = name;
this.selected = false;
}
function parseData(data)
{
var list = new Array();
var byId = new Array();
var l = data.split('\n');
var na, nr, nb;
var i, a, t, id;
a = l.shift().split('#');
na = parseInt(a[0], 10);
nr = parseInt(a[1], 10);
nb = parseInt(a[2], 10);
for (i=0;i ' + emptyList + '' + listTitle + '
';
if (lsAllies.length == 0)
return str + '';
for (i=0;i
';
return str;
}
function updateButtons()
{
if (!document.getElementById('buttons'))
return;
var i, cr = false, cmu = true, cmd = true;
for (i=0;i ';
str += ' ';
}
str += '
'; str += ' | '+raHeaders[0]+' | ' + raHeaders[1] + ' | ' + lsRAllies[i].name + ' | ' + '' + (lsRAllies[i].level + 1) + ' | '; } str += '
---|---|---|---|
' + addBanLabel + '
' + emptyBlackList + '
'; str += ''; str += ' | ' + lsBans[i].name + ' | '; } str += '|