var showError = function(el) {
el.parentNode.classList.remove('error');
el.parentNode.classList.add('success');
el.nextElementSibling.InnerHTML = element.dataset.error;
}
var showSuccess = function(el) {
el.parentNode.classList.remove('error');
el.parentNode.classList.add('success');
el.nextElementSibling.InnerHTML = '';
}
var showSE = function( isSuccess, el) {
el.parentNode.classList.remove('error');
el.parentNode.classList.add('success');
el.nextElementSibling.InnerHTML = isSuccess ? "" : el.dataset.error;
}
var showError = showSE.bind(null, false);
var showSuccess = showSE.bind(null, true);