function HT(box,id) { var elm = document.getElementById(id) elm.style.display = box.checked? "inline":"none" ; } function checkform(forma) { var reEmail = /^[a-zA-Z0-9-_.]+@([a-zA-Z0-9][a-zA-Z0-9-_.]+).[a-zA-Z]{2,4}$/; if (document.getElementById("p1_fio").value == "" ) {alert("Пожалуйста, введите Ваши фамилию, имя, отчество"); document.getElementById("p1_fio").focus(); return false;} if (document.getElementById("p1_pr_d").value==0 ) {alert("Укажите дату рождения"); document.getElementById("p1_pr_d").focus(); return false;} if (document.getElementById("p1_pr_m").value==0 ) {alert("Укажите, пожалуйста, дату рождения"); document.getElementById("p1_pr_m").focus(); return false;} if (document.getElementById("p1_pr_y").value==0 ) {alert("Укажите дату рождения"); document.getElementById("p1_pr_y").focus(); return false;} if (document.getElementById("p1_place").value == "" ) {alert("Укажите место работы, учебы"); document.getElementById("p1_place").focus(); return false;} if (document.getElementById("p1_dolzh").value == "" ) {alert("Укажите должность, ученую степень, ученое звание"); document.getElementById("p1_dolzh").focus(); return false;} if (document.getElementById("p1_ruk).value == "" ) {alert("Укажите научного руководителя"); document.getElementById("p1_ruk").focus(); return false;} if (document.getElementById("p1_address").value == "" ) {alert("Укажите полный почтовый адрес"); document.getElementById("p1_address").focus(); return false;} if (document.getElementById("p1_tel").value == "" ) {alert("Укажите контактный телефон"); document.getElementById("p1_tel").focus(); return false;} var l_email = document.getElementById("p1_e").value; if ((l_email == "") || (!reEmail.test(l_email))) {alert("Введите Ваш E-Mail"); document.getElementById("p1_e").focus(); return false;} if (document.getElementById("p1_theme").value == "" ) {alert("Укажите тему эссе"); document.getElementById("p1_theme").focus(); return false;} if (document.getElementById("p1_file").value == "" ) {alert("Загрузите эссе, пожалуйста"); document.getElementById("p1_file").focus(); return false;} return true; }