 // Функция вызывается при нажатии на кнопку.
 /* function proverka() {
    JsHttpRequest.query(
      '/inor.php', // путь к backend-скрипту
      {
        // передаем текстовые данные
        'proverka': document.getElementById("che")
      },
      // Функция-обработчик, вызывается при ответе сервера.
      function(result, errors) {

        // Вывести результат работы.
        document.getElementById("nawel").innerHTML = result["tree"];
      }
    );
  }*/

  function proverka(){
var req = new JsHttpRequest();
      req.onreadystatechange = function() {if (req.readyState == 4) {
	 document.getElementById('nawel').innerHTML = req.responseJS.tree;
}
    }
    req.open(null, '/inor.php', true);  req.send();
    }