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_sname").value == "" ) {alert("Введите Ваши фамилию"); document.getElementById("p1_sname").focus(); return false;} if (document.getElementById("p1_name").value == "" ) {alert("Введите Ваше имя"); document.getElementById("p1_name").focus(); return false;} if (document.getElementById("p1_mname").value == "" ) {alert("Введите Ваше отчество"); document.getElementById("p1_mname").focus(); return false;} var l_email = document.getElementById("p2_e").value; if ((l_email == "") || (!reEmail.test(l_email))) {alert("Введите Ваш E-Mail"); document.getElementById("p2_e").focus(); return false;} if (document.getElementById("p2_mob").value == "" ) {alert("Введите мобильный телефон"); document.getElementById("p2_mob").focus(); return false;} if (document.getElementById("p2_address").value == "" ) {alert("Укажите адрес проживания"); document.getElementById("p2_address").focus(); return false;} if (document.getElementById("p4_org").value == "" ) {alert("Укажите наименовании организации"); document.getElementById("p4_org").focus(); return false;} return true; }