ctor(«.tool-tip»),«tool-tip-show»)(el.parentNode,«input-correct»)
}addToolTip(el,str){(el.parentNode,«input-correct»)(el.parentNode.parentNode.querySelector(«.tool-tip»),«tool-tip-show»).parentNode.parentNode.querySelector(«.tool-tip»).innerHTML =Str;
} applyLanguage (e) {(typeof e!=«string») {= e.target.getAttribute («data-lang»)
} language1=e=language1 (! language) return; (var key in fields) [key]. parentNode.parentNode.querySelector («span»). innerHTML=languageData [language] [key ] (). rules.innerHTML=languageData [language] [«rules»]. support.innerHTML=languageData [language] [«support»] (var key in warningCodes) [key]. parentNode.parentNode.querySelector (« ;. tool-tip »). innerHTML=warningCodes [key]. stepBar.innerHTML=languageData [language] [« step »+ (scroll.posX +1)]. wait.innerHTML=languageData [language] [« wait » ;] + « »+ Time (mode ==« confirm »)
{. confirm.innerHTML=languageData [language] [«name»] + «:» + Fields.name.value + «
» + [Language] [«surname»] + «:» + Fieldsrname.value + «
» + [Language] [«group»] + «:» + Fields.group.value + «
» + [Language] [«mail»] + «:» + Fields.mail.value + «
»
}
} fieldChecker (e) {() (var key in warningCodes) {(e.target == fields [key] | | (key == «pass» && e.target == fields [«pass2»])) (warningCodes [key]) {(fields [key], warningCodes [key]) (key == «pass») removeClass (fields [«pass2»]. parentNode, «input-correct»)
} else {(fields [key]); (key == «pass») removeToolTip (fields [«pass2»]);
}
}
} waiterLoop () {(time == 0) {. wait.style.display=«none». nextBtn.disabled=false (timerId)
} else {. wait.innerHTML=languageData [language] [«wait»] + « » + Time; -;
}
} init () {= «rules» (var key in selectors) [key]=$ (selectors [key]) (var key in fieldSelectors) [key]=$(fieldSelectors[key]).nextBtn.addEventListener(«click»,nextBtnClick)pportBtn.addEventListener(«click»,supportBtnClick).formData.addEventListener(«keyup»,fieldChecker).backBtn.addEventListener(«click»,backBtnClick)(language)().langPanel.addEventListener(«click»,applyLanguage)= setInterval (waiterLoop, 1000);
} supportBtnClick () {(scroll.posY == 1) scroll.moveto (scroll.posX, 0) {. supportBlock.style.left=(scroll.posX * blockspportBlock.offsetWidth) + «px»;. moveto (scroll.posX, 1);
}
} send () {{= «proc». nextBtn.disabled=true.backBtn.disabled=truexmlhttp=getXmlHttp () / / Створюємо об'єкт XMLHTTP.open («POST», scriptAddres, true) / / Відкриваємо асинхронне соедіненіе.setRequestHeader («Content-Type"," application / x-www-form-urlencoded») / / Відправляємо кодування
/ / encodeURIComponentdata=«» dataAdd (key, val) {(data) data +=«&» +=encodeURIComponent (key) + «=» + EncodeURIComponent (val)
} (key in fields) {(key!=«pass2») (key, fields [key]. value)
} (blocks.procError). procErro...