Уважаемые форумчане, подскажите в чем тут дело.
Выводит только первый цикл, 2рой не хочет... убираю первый выводится 2рой.
var tableFlag = [
[1, 1, 427],
[2, 1, 423],
[3, 2, 927],
[4, 2, 923],
[5, 3, 027],
[6, 3, 023],
];
var tableNumber = [
[1, "ÌÒÑ", "3.54 rur", 3.52],
[1, "Áèëàéí", "3.54 rur", 3.52],
[1, "ÌÒÑ", "3.54 rur", 3.52],
[1, "Áèëàéí", "3.54 rur", 3.52],
[1, "ÌÒÑ", "3.54 rur", 3.52],
[1, "Áèëàéí", "3.54 rur", 3.52],
[2, "ÌÒÑ", "5.54 rur", 5.52],
[2, "Áèëàéí", "5.54 rur", 5.52],
[2, "ÌÒÑ", "5.54 rur", 5.52],
[2, "Áèëàéí", "3.54 rur", 5.52],
[2, "ÌÒÑ", "5.54 rur", 5.52],
[2, "Áèëàéí", "5.54 rur", 5.52],
[3, "Ìåãàôîí", 927, 1],
[4, "ÂîëãàÒåëåêîì", 923, 1],
[5, "Èíôîëàäà", 027, 1],
[6, "Àèñò", 023, 1],
];
function flags(id)
{
document.getElementById("cont2").innerHTML="";
var i = 0;
var td = 1;
for(i=0; i<100; i++)
{
if(td == 1) {var class1 = "t15"; class2 = "t13"; td = 2;}
else {var class1 = "t13"; class2 = "t14"; td = 1;}
if(id == tableNumber[i][0])
{
document.getElementById("cont2").innerHTML+=("<tr> <td width='113' class='left "+class1+"'>"+tableNumber[i][1]+"</td><td width='235' class='"+class2+"'>"+tableNumber[i][2]+"</td><td width='219' class='"+class1+"'>"+tableNumber[i][3]+"</td></tr>");
}
}
document.getElementById("cont1").innerHTML="";
var t = 0;
for(t=0; t<100; t++)
{
if(id == tableFlag[t][1])
{
document.getElementById("cont1").innerHTML+=("<option value='"+tableFlag[t][0]+"'>"+tableFlag[t][2]+"</option>");
}
}
}