function inputCheck(){ if(document.userForm.email.value==""){ alert("이메일을 입력해 주세요."); document.userForm.email.focus(); return; } var str=document.userForm.email.value; var atPos = str.indexOf('@'); var atLastPos = str.lastIndexOf('@'); var dotPos = str.indexOf('.'); var spacePos = str.indexOf(' '); var commaPos = str.indexOf(','); var eMailSize = str.length; if (atPos > 1 && atPos == atLastPos &..