function Parse_GatesCust(){
ConnectToFile();
SECT_GATESn = xmlDoc.documentElement.lastChild.firstChild.lastChild.childNodes;
for (var i = 0; i < SECT_GATESn.length; i++){
WIDTH = (SECT_GATESn[i].getAttribute("WIDTH").replace(",","."))*1000;
HEIGHT = (SECT_GATESn[i].getAttribute("HEIGHT").replace(",","."))*1000;
COLOR = SECT_GATESn[i].getAttribute("COLOR");
if(COLOR == "Dark Oak" || COLOR == "Golden Oak"){COLOR = "RAL Oak";}
else{if(COLOR == "ADS703"){COLOR = "RAL S703";}}
COM_SECT_ITEMS = SECT_GATESn[i].getElementsByTagName("Com_Sect_Items");
for (var j = 0; j < COM_SECT_ITEMS.length; j++){
CONDITION_ID = COM_SECT_ITEMS[j].getAttribute("CONDITION_ID");
if(CONDITION_ID == 31 || CONDITION_ID == 206 || CONDITION_ID == 512){
KALITKA = "К, ";
}
else{
KALITKA = "";
}
}
NAME = "Ворота секционные СПР " + WIDTH + "x" + HEIGHT + ", " + KALITKA + COLOR;
console.log(NAME);
//document.getElementById('positions_list').innerHTML += NAME + '<br>';
}
хочу поставить букву "К", если хотя бы один атрибут CONDITION_ID у узла SECT_GATESn равен (31, 206, 512)