container.style.display = "none";
var list = JSON.parse(jsonStr);
var ul = document.createElement("ul");
for (var i = 0; i < list.length; i++ ) {
var li = document.createElement("li");
li.dataset.value = list[i]["value"];
if (/[а-я]+/.test(list[i]["value"])) {
li.innerHTML = list[i]["caption"]+' : '+list[i]["value"];
}
else
{
li.innerHTML = list[i]["caption"];
}
ul.appendChild(li);
}
container.replaceChild(ul, container.firstChild);
container.style.display = "block";