  function open_wind(){
    var h;
    h = document.getElementById('wrap').offsetHeight;
    document.getElementById('alles').style.height = h+ 'px';
    document.getElementById('alles').style.display = 'block';
    document.getElementById('popup').style.display = 'block';
  }

  function close_wind(){
    document.getElementById('alles').style.display = 'none';
    document.getElementById('popup').style.display = 'none';
  }

function kv_show(n) {
    $(".kv"+n).show();
}
function kv_hide(n) {
    $(".kv"+n).hide();
}

function cont_open() {
    if ($(".cont_form").is(':hidden')) {
        $(".cont_form").show();
        $(".napisal").addClass('napisal_bg');
    } else {
        $(".cont_form").hide();
        $(".napisal").removeClass('napisal_bg');
    }
}