diff --git a/src/main/webapp/js/kccadr/kccadrCom.js b/src/main/webapp/js/kccadr/kccadrCom.js index a74fe4db..3fe4d698 100644 --- a/src/main/webapp/js/kccadr/kccadrCom.js +++ b/src/main/webapp/js/kccadr/kccadrCom.js @@ -349,8 +349,12 @@ function onlyNumber(thisObj) { thisObj.value = thisObj.value.replace(/[^0-9]/gi, ""); } -function onlyAlphabetNumber(thisObj) { - thisObj.value = thisObj.value.replace(/[^0-9a-zA-Z\._]/gi, ""); +function onlyAlphabetNumber(thisObj) { + thisObj.value = thisObj.value.replace(/[^0-9a-zA-Z\-._]/gi, ""); +} + +function onlyAlphabetNumber2(thisObj) { + thisObj.value = thisObj.value.replace(/[^0-9a-zA-Z\-._]/gi, ""); } function getChkLen(name) { diff --git a/src/main/webapp/visitEdu/usr/publish/script/visitEduCom.js b/src/main/webapp/visitEdu/usr/publish/script/visitEduCom.js index d6e10c7d..162ad4b4 100644 --- a/src/main/webapp/visitEdu/usr/publish/script/visitEduCom.js +++ b/src/main/webapp/visitEdu/usr/publish/script/visitEduCom.js @@ -371,8 +371,8 @@ function onlyNumber(thisObj) { thisObj.value = thisObj.value.replace(/[^0-9]/gi, ""); } -function onlyAlphabetNumber(thisObj) { - thisObj.value = thisObj.value.replace(/[^0-9a-zA-Z\._]/gi, ""); +function onlyAlphabetNumber(thisObj) { + thisObj.value = thisObj.value.replace(/[^0-9a-zA-Z\-._]/gi, ""); } function getChkLen(name) {