// 주민번호 체크
var count =0
for (var i = 0; i <=5 ; i++) {
count = count + ((i%8+2) * parseInt(fm.c_num1.value.substring(i,i+1)))
}
for (var i = 6; i <=11 ; i++) {
count = count + ((i%8+2) * parseInt(fm.c_num2.value.substring(i-6,i-5)))
}
count = 11 - (count %11)
count = count % 10
if (count != fm.c_num2.value.substring(6,7)) {
return ErrControl('올바르지 않은 주민등록번호입니다','c_num2');
}