function doSend(){ if (IsEmail(document.frmContact.email.value)) { if (document.frmContact.fname.value!=""){ if (document.frmContact.rndchk.value.length>4){ return true; }else{ alert("יש להזין קוד אבטחה בן 5 ספרות"); document.frmContact.rndchk.select(); return false; } }else{ alert("יש להזין שם"); document.frmContact.fname.select(); return false; } }else{ alert("יש להזין כתובת מייל תקינה"); document.frmContact.email.select(); return false; } }