var inputName = document.querySelectorAll('[name="where"]');
if (inputName) {
inputName.forEach(function(el) {
el.addEventListener('change', changeSlide);
});
}
function changeSlide(evt) {
var dataForm = evt.target.dataset.form;
if (document.querySelector('.d-block')) document.querySelector('.d-block').classList.remove('d-block');
var form = document.querySelector("#" + dataForm);
form.classList.add('d-block');
}