function popupWin(page,name,x,y) { var rtn; var xc = ((screen.availWidth-10)-x) / 2; var yc = ((screen.availHeight-30)- y) / 2; var opt = "'toolbar=no,alwaysRaised=no,location=no,status=yes,menubar=no,scrollbars=yes,width="; opt = opt + x; opt = opt + ",height="+ y; opt = opt +",resizable=yes,hotkey=no,dependent=no,screenX="+xc+",screenY="+yc+", top="+yc+", left="+xc+"'"; //rtn = window.open(page,name,opt); window.open(page,name,opt); //return rtn; } // scrollbar 사용 function popupWin2(page,name,x,y) { var rtn; var xc = ((screen.availWidth-10)-x) / 2; var yc = ((screen.availHeight-30)- y) / 2; var opt = "'toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=yes,width="; opt = opt + x; opt = opt + ",height="+ y; opt = opt +",resizable=no,hotkey=no,dependent=no,screenX="+xc+",screenY="+yc+", top="+yc+", left="+xc+"'"; //rtn = window.open(page,name,opt); window.open(page,name,opt); //return rtn; } function zipCodepopup(obj){ //html obj: form명 popupWin("/includes/jsp/join/popup_zip.jsp?formname="+obj,"searchZipCode","450","170"); } function isEmpty(obj) { if (!obj) { alert("존재하지 않는 Form 변수입니다."); obj.focus(); if (obj.type == "text") obj.select(); return false; } var str = obj.value; str = str + ""; if (( str == "") || (str == null)) { obj.focus(); if (obj.type == "text") obj.select(); return true; } var chk = 0; for(i=0;i=48 && event.keyCode <=57) // 자판 0~9 || (event.keyCode >=96 && event.keyCode <= 105) // keypad 0~9) || (event.keyCode >= 37 && event.keyCode <= 40)){ }else{ event.returnValue=false; } } //-------------------------------------------------------------------- //Function name: isNumeric //Description : 숫자로만 구성되어 있는지를 검사 //Parameter : obj(화면컨트롤) //-------------------------------------------------------------------- //Usage : //Caution : 화면컨트롤에 데이타가 없는 경우에는 true를 리턴 //-------------------------------------------------------------------- function isNumeric(str) { //if (str=="" || str.length == 0) // return false; for (var i = 0; i < str.length; i++){ var ch = str.substring(i, i + 1); if ((ch < "0" || "9" < ch) ){ //obj.focus(); return false; } } return true; } function checkEnglishNumber(frmName,inStr) { strarr = new Array(inStr.length); schar = new Array('/','>','<',',','?','}','{',' ','\\','|','(',')','+','=','&','"','@','%','!','#','$','*','<','>','#','$','&','!','`','"','{','}',';',':','~','\''); for (i=0; i='a') && (strarr[i] <='z'))||((strarr[i] >='A') && (strarr[i] <='Z'))||(strarr[i] == '_')||((strarr[i] >=0) && (strarr[i] <=9)))) { alert(frmName+" : 영문 및 숫자 입력만 가능합니다."); return false; } else if ((escape(strarr[i]) > '%60') && (escape(strarr[i]) <'%80') ) { alert(frmName+" : 특수문자 입력이 불가합니다."); return false; } else { continue; } } return true; } function isAllAlphaNum( inStr ) { if (inStr.length > 0) { var intCount,intCharCount; intCount = 0; intCharCount = 0; for (i=0; i < inStr.length; i++) { if ( (inStr.charAt(i) >= '0' && inStr.charAt(i) <= '9') ) { intCount += 1; } if ( (inStr.charAt(i) >= 'a' && inStr.charAt(i) <= 'z') || (inStr.charAt(i) >= 'A' && inStr.charAt(i) <= 'Z') ) { intCharCount += 1; } } if ( (inStr.length == intCount) || (intCharCount < 1) ) { return false; } return true; }else { return false; } } function isEmail(str) { var supported = 0; if (window.RegExp) { var tempStr = "a"; var tempReg = new RegExp(tempStr); if (tempReg.test(tempStr)) supported = 1; } if (!supported) return (str.indexOf(".") > 2) && (str.indexOf("@") > 0); var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)"); var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"); return (!r1.test(str) && r2.test(str)); } function number(){ var e1 = event.srcElement; var num ="0123456789"; event.returnValue = true; for (var i=0;i