//비밀번호 연속된 문자 4개 정규식
function pwReg(){
let cnt = 0;
let cnt2 = 0;
let tmp = "";
let tmp2 = "";
let tmp3 = "";
let tmp4 = "";
const validpw = password;
for(let i=0; i<validpw.length; i++){tmp = validpw.charAt(i);
tmp2 = validpw.charAt(i+1);
tmp3 = validpw.charAt(i+2);
tmp4 = validpw.charAt(i+3);
if(tmp.charCodeAt(0) - tmp2.charCodeAt(0) == 1 && tmp2.charCodeAt(0) - tmp3.charCodeAt(0) == 1 && tmp3.charCodeAt(0) - tmp4.charCodeAt(0) == 1){
cnt = cnt + 1;
}
if(tmp.charCodeAt(0) - tmp2.charCodeAt(0) == -1 && tmp2.charCodeAt(0) - tmp3.charCodeAt(0) == -1 && tmp3.charCodeAt(0) - tmp4.charCodeAt(0) == -1){
cnt2 = cnt2 + 1;
}
}
if(cnt > 0 || cnt2 > 0){
return true;
}else{
return false;
}
}