diff --git a/inspection/interviewer_regist.asp b/inspection/interviewer_regist.asp index 33fe74d..1ec2f0f 100644 --- a/inspection/interviewer_regist.asp +++ b/inspection/interviewer_regist.asp @@ -550,9 +550,18 @@ // 자리수 체크 if (ssn.length != 13){ alert("올바른 주민등록 번호 / 외국인등록 번호를 입력하여 주세요.");return false; - } - //외국인 예외처리 - if(koreaName.test(x.txtName.value) == false && confirm("외국인이 맞습니까? (이름 : "+x.txtName.value+")")){ + } + + // 재외동포/외국인 여부 판단용 (7번째 자리) + var gubun = ssn.substring(6,7); + + // 외국인 예외처리 + // 기존: 이름이 한글이 아니면 외국인 처리 + // 추가: 이름이 한글이어도 7번째 자리가 5,6,7,8이면 재외동포/외국인으로 처리 + if ( + (koreaName.test(x.txtName.value) == false || /[5678]/.test(gubun)) && + confirm("외국인이 맞습니까? (이름 : "+x.txtName.value+")") + ){ x.chk_jumin.value="yes"; alert("확인 됐습니다."); return true;