var r = dhx.ajax.getSync("server.php");
var items = [];
var xml = r.xmlDoc.responseXML;
var nodes = xml.getElementsByTagName("items");
for (var q=0; q<nodes.length; q++) {
items.push({
name: nodes[q].children[0].getAttribute("name"),
value: nodes[q].children[0].getAttribute("value")
});
}