1//-------------------------------------------------------------------------------- 2// Macromedia Dreamweaver JavaScript 3//-------------------------------------------------------------------------------- 4 5function MM_swapImgRestore() { //v3.0 6 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 7} 8 9function MM_preloadImages() { //v3.0 10 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 11 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 12 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 13} 14 15function MM_findObj(n, d) { //v4.0 16 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 17 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 18 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 19 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 20 if(!x && document.getElementById) x=document.getElementById(n); return x; 21} 22 23function MM_swapImage() { //v3.0 24 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 25 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 26} 27 28function MM_openBrWindow(theURL,winName,features) { //v2.0 29 window.open(theURL,winName,features); 30} 31//-------------------------------------------------------------------------------- 32 33 34function comingsoon() 35{ 36 alert('ì£ì¡í©ëë¤. íì¬ ìë¹ì¤ ì¤ë¹ì¤ì ëë¤.'); 37} 38 39 40function checkId(form, id_name, SID) 41{ 42 if(checkNull(SID)==true){ 43 alert('ìì´ë를 ì ë ¥í´ ì£¼ì¸ì.'); 44 eval(form+"."+id_name+".focus()"); 45 return; 46 } 47 48 49 var all_id = "abcdefghijklmnopqrstuvwxyz1234567890-_"; 50 var first_id = "abcdefghijklmnopqrstuvwxyz"; 51 52 if (checkNull(SID)==true) { 53 alert('ì¬ì©íì¤ ìì´ë를 ì ë ¥í´ ì£¼ì¸ì.'); 54 eval(form+"."+id_name+".focus()"); 55 return; 56 } 57 if (checkLen(SID)<4) { 58 alert('ìì´ëë 4ì리 ì´ìì´ì´ì¼ í©ëë¤.'); 59 eval(form+"."+id_name+".focus()"); 60 return; 61 } 62 if (first_id.indexOf(SID.substring(0, 1))<0) { 63 alert('ìì´ëë 첫ê¸ìë ìì문ìë§ ê°ë¥í©ëë¤.'); 64 eval(form+"."+id_name+".focus()"); 65 return; 66 } 67 for (var i=0; i<SID.length; i++) { 68 thisChar = SID.substring(i, i+1); 69 if (thisChar==' ') { 70 alert('ìì´ëì 공백문ìê° ë¤ì´ê°ì§ 못í©ëë¤.'); 71 eval(form+"."+id_name+".focus()"); 72 return; 73 } 74 } 75 for (var i=0; i<SID.length; i++) { 76 if (all_id.indexOf(SID.substring(i,i+1))<0) { 77 alert('ìì´ëì íì©ëì§ ìë 문ìê° ììµëë¤.\n\nìì´ëë ( ìì문ì, ì«ì, -, _ ) 문ìë§ íì©ë©ëë¤.'); 78 eval(form+"."+id_name+".focus()"); 79 return; 80 } 81 } 82 83 84 window.open('/kyh0924_admin/kyh_User_File/check_id.asp?txt_SearchText=' + SID + '&form_name=' + form + '&id_name=' + id_name, 'check_id', 'left=200, top=200, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=330, height=210'); 85} 86 87 88function findAddr(form, zipcode, addr, addr_etc) 89{ 90 window.open('/kyh0924_admin/kyh_User_File/find_addr.asp?form_name=' + form + '&zipcode_name=' + zipcode + '&addr_name=' + addr + '&addr_etc_name=' + addr_etc, 'find_addr', 'left=200, top=200, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=440, height=280'); 91} 92 93 94function ImgView(img_path) 95{ 96 window.open('/kyh0924_admin/kyh_User_File/img_view.asp?img_path=' + img_path,'img_view', 'left=100, top=100, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=10, height=10'); 97} 98 99 100function goLink(url, target) 101{ 102 if (target) { 103 if (target=='open' || target=='blank') { 104 window.open(url); 105 } else if(target=='parent') { 106 parent.location.href = url; 107 } else if(target=='top') { 108 top.location.href = url; 109 } else if(target=='self') { 110 self.location.href = url; 111 } else { 112 //eval('parent'+target).location.href = url; 113 parent[target].location.href = url; 114 } 115 } else { 116 location.href = url; 117 } 118} 119 120 121function checkNull(string) 122{ 123 if (string==null || string=='') { 124 return true; 125 } else { 126 return false; 127 } 128} 129 130 131function checkLen(string) 132{ 133 if (checkNull(string)==false) { 134 return string.length; 135 } 136} 137 138 139function onlyNum(objEv) 140{ 141 var numPattern = /([^0-9])/; 142 numPattern = objEv.value.match(numPattern); 143 if (numPattern != null) { 144 //alert("ì«ìë§ ì ë ¥ ê°ë¥í©ëë¤. ë¤ìì ë ¥í´ ì£¼ì¸ì."); 145 objEv.value=""; 146 objEv.focus(); 147 return false; 148 } 149} 150 151 152function adjustImg(target_img, max_width, max_height) 153{ 154 var newX, newY; 155 var newHeight, newWidth; 156 var newImg; 157 158 var maxWidth = max_width; 159 var maxHeight = max_height; 160 161 newImg = new Image(); 162 newImg.src = target_img.src; 163 imgw = newImg.width;
164 imgh = newImg.height; 165 166 if (imgw > maxWidth || imgh > maxHeight) { 167 if(imgw > imgh) { 168 if(imgw > maxWidth) { 169 newWidth = maxWidth; 170 } else { 171 newWidth = imgw; 172 } 173 newHeight = Math.round((imgh*newWidth)/imgw); 174 } else { 175 if(imgh > maxHeight) { 176 newHeight = maxHeight; 177 } else { 178 newHeight = imgh; 179 } 180 newWidth = Math.round((imgw*newHeight)/imgh); 181 } 182 } else { 183 newWidth = imgw; 184 newHeight = imgh; 185 } 186 newX = maxWidth/2 - newWidth/2; 187 newY = maxHeight/2 - newHeight/2; 188 189 target_img.onload = null; 190 target_img.src = newImg.src; 191 target_img.width = newWidth; 192 target_img.height = newHeight; 193} 194 195 196var chk_all = 0; 197function CheckList() 198{ 199 var obj_chk = document.getElementsByName('chkbox[]'); 200 for (var i=0; i<obj_chk.length; i++) { 201 if (chk_all==1) { 202 obj_chk[i].checked = false; 203 } else { 204 obj_chk[i].checked = true; 205 } 206 } 207 208 if (chk_all==1) { 209 chk_all = 0; 210 } else { 211 chk_all = 1; 212 } 213} 214 215 216function getNextFocus(obj1, obj2, len) 217{ 218 var str = obj1.value.length 219 if(str==len) { 220 obj2.focus(); 221 } 222} 223 224function moveFocus(num,fromform,toform){ 225 var str = fromform.value.length; 226 if(str == num) 227 toform.focus(); 228} 229 230function CheckEmail(email) 231{ 232 var pattern = /^(.+)@(.+)$/; 233 var atom = "\[^\\s\\(\\)<>#@,;:!\\\\\\\"\\.\\[\\]\]+"; 234 var word="(" + atom + "|(\"[^\"]*\"))"; 235 var user_pattern = new RegExp("^" + word + "(\\." + word + ")*$"); 236 var ip_pattern = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/; 237 var domain_pattern = new RegExp("^" + atom + "(\\." + atom +")*$"); 238 239 var arr = email.match(pattern); 240 if (!arr) { 241 return false; 242 } 243 if(!arr[1].match(user_pattern)) { 244 return false; 245 } 246 247 var ip = arr[2].match(ip_pattern); 248 if (ip) { 249 for(var i=1; i<5; i++) { 250 if (ip[i] > 255) { 251 return false; 252 } 253 } 254 } else { 255 if (!arr[2].match(domain_pattern)) { 256 return false; 257 } 258 var domain = arr[2].match(new RegExp(atom,"g")); 259 if (domain.length<2) { 260 return false; 261 } 262 if (domain[domain.length-1].length<2 || domain[domain.length-1].length>3) { 263 return false; 264 } 265 } 266 return true; 267} 268 269 270//# 주민ë±ë¡ë²í¸ ì í¨ì±ê²ì¬ 271function isNumeric(str) 272{ 273 for(i=0; i<str.length; i++) { 274 c = str.substr(i, 1); 275 if(c<"0" || c>"9") { 276 return false; 277 } 278 } 279 return true; 280} 281function isYYYYMMDD(y, m, d) 282{ 283 switch(m) { 284 case 2: // 2ìì ê²½ì° 285 if(d > 29) { 286 return false; 287 } 288 if(d == 29) { 289 // 2ì 29ì ê²½ì° ë¹í´ê° ì¤ë ì¸ì§ë¥¼ íì¸ 290 if((y%4 != 0) || (y%100 == 0) && (y%400 != 0)) { 291 return false; 292 } 293 } 294 break; 295 case 4: // ìì ë¬ì ê²½ì° 296 case 6: 297 case 9: 298 case 11: 299 if(d == 31) { 300 return false; 301 } 302 } 303 // í° ë¬ì ê²½ì° 304 return true; 305} 306function isSSN(s1, s2) { 307 n = 2; 308 sum = 0; 309 for(i=0; i<s1.length; i++) { 310 sum += parseInt(s1.substr(i, 1)) * n++; 311 } 312 for(i=0; i<s2.length-1; i++) { 313 sum += parseInt(s2.substr(i, 1)) * n++; 314 if(n == 10) { 315 n = 2; 316 } 317 } 318 c = 11-sum%11; 319 if(c == 11) { 320 c = 1; 321 } 322 if(c == 10) { 323 c = 0; 324 } 325 if(c != parseInt(s2.substr(6, 1))) { 326 return false; 327 } else { 328 return true; 329 } 330} 331function checkkJumin(jumin1, jumin2) 332{ 333 var yy = jumin1.substr(0,2); // ë ë 334 var mm = jumin1.substr(2,2); // ì 335 var dd = jumin1.substr(4,2); // ì¼ 336 var genda = jumin2.substr(0,1); // ì±ë³ 337 var msg, ss, cc; 338 if(jumin1=='') { 339 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ë¥¼ ì ë ¥í´ ì£¼ì¸ì."; 340 } 341 if (!isNumeric(jumin1)) { 342 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ ìì리를 ì«ìë¡ ì ë ¥íì¸ì."; 343 } 344 if (jumin1.length != 6) { 345 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ ìì리를 ë¤ì ì ë ¥íì¸ì."; 346 } 347 // 첫ë²ì§¸ ìë£ìì ì°ìì¼(YYMMDD) íì ì¤ ê¸°ë³¸ êµ¬ì± ê²ì¬ 348 if (yy<"00" || yy>"99" || mm<"01" || mm>"12" || dd<"01" || dd>"31") { 349 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ ìì리를 ë¤ì ì ë ¥íì¸ì."; 350 } 351 if(jumin2=='') { 352 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ë¥¼ ì ë ¥í´ ì£¼ì¸ì."; 353 } 354 // ì«ìê° ìë ê²ì ì ë ¥í ê²½ì° 355 if (!isNumeric(jumin2)) { 356 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ ë·ì리를 ì«ìë¡ ì ë ¥íì¸ì."; 357 } 358 // 길ì´ê° 7ì´ ìë ê²½ì° 359 if (jumin2.length != 7) { 360 return false; // rtn_msg = "Error : 주민ë±ë¡ë²í¸ ë·ì리를 ë¤ì ì ë ¥íì¸ì."; 361 } 362 // ì±ë³ë¶ë¶ì´ 1 ~ 4 ê° ìë ê²½ì° 363 if (genda < "1" || genda > "4") { 364 return false; // rtn_msg = "주민ë±ë¡ë²í¸ ë·ì리를 ë¤ì ì ë ¥íì¸ì."; 365 } 366 // ì°ë ê³ì° - 1 ëë 2: 1900ë ë, 3 ëë 4: 2000ë ë 367 cc = (genda == "1" || genda == "2") ? "19" : "20"; 368 // 첫ë²ì§¸ ìë£ìì ì°ìì¼(YYMMDD) íì ì¤ ë ì§ íì ê²ì¬ 369 if (isYYYYMMDD(parseInt(cc+yy), parseInt(mm), parseInt(dd)) == false) { 370 return false; // rtn_msg = "주민ë±ë¡ë²í¸ ìì리를 ë¤ì ì ë ¥íì¸ì."; 371 } 372 // Check Digit ê²ì¬ 373 if (!isSSN(jumin1, jumin2)) { 374 return false; // rtn_msg = "ì ë ¥í 주민ë±ë¡ë²í¸ë¥¼ ê²í í í, ë¤ì ì ë ¥íì¸ì."; 375 } 376 return true; 377} 378 379 380 381// ì¤í¬ë¦½í¸ ìë¬ ë¬´ì 382function KillError() {return true;} 383//window.onerror=KillError; 384 385 386 387function comment_parent_resize(obj){ 388 389 var ParentFrame = eval(obj+".document.body"); 390 var ContentFrame = eval("document.all."+obj); 391 ContentFrame.style.height = ParentFrame.scrollHeight + (ParentFrame.offsetHeight - ParentFrame.clientHeight); 392 393} 394function paper2Init() 395{ 396 var obj = "ifrmUser"; 397 parent.comment_parent_resize(obj); 398 399} 400 401 function fncMoveTop(){ 402 403 404 var thisBody = document.body; 405 406 thisBody.scrollTop = 0; 407 408 409 } 410 411function reSize4(obj) 412{ 413 var obj = "ifrmUser"; 414 var ParentFrame = eval(obj+".document.body"); 415 var ContentFrame = eval("document.all."+obj); 416 ContentFrame.style.height = ParentFrame.scrollHeight + (ParentFrame.offsetHeight - ParentFrame.clientHeight); 417} 418 419 420function BuildGIPart(num) 421{
422 var FJ=document.registform; 423 424 if (FJ.txt_Cpart.value!="0"){ 425 jsSelectClear(FJ.Part_No); 426 FJ.Part_No.selectedIndex=0; 427 428 for(ctr=0;ctr<arrGIPartName[num].length;ctr++) 429 { 430 FJ.Part_No.options[ctr]=new Option(arrGIPartName[num][ctr],arrGIPartCode[num][ctr]); 431 432 } 433 FJ.Part_No.length=arrGIPartName[num].length; 434 }else{ 435 jsSelectClear(FJ.Part_No); 436 FJ.Part_No.options[0]=new Option(":: 2ì°¨ ë¶ë¥ ì í ::",'0'); 437 } 438} 439 440function BuildGIPartE(num) 441{ 442 var FJ=document.modifyform; 443 444 if (FJ.txt_Cpart.value!="0"){ 445 jsSelectClear(FJ.Part_No); 446 FJ.Part_No.selectedIndex=0; 447 448 for(ctr=0;ctr<arrGIPartName[num].length;ctr++) 449 { 450 FJ.Part_No.options[ctr]=new Option(arrGIPartName[num][ctr],arrGIPartCode[num][ctr]); 451 } 452 FJ.Part_No.length=arrGIPartName[num].length; 453 }else{ 454 jsSelectClear(FJ.Part_No); 455 FJ.Part_No.options[0]=new Option(":: 2ì°¨ ë¶ë¥ ì í ::",'0'); 456 } 457 458 if (FJ.oldPart_No.value!="0") 459 {
460 if (FJ.oldCpart.value==FJ.txt_Cpart.value) 461 { 462 FJ.Part_No.value=FJ.oldPart_No.value; 463 } 464 } 465} 466 467function BuildGIPartEA(num) 468{ 469 var FJ=document.viewform; 470 471 if (FJ.txt_Cpart.value!="0"){ 472 jsSelectClear(FJ.Part_No); 473 FJ.Part_No.selectedIndex=0; 474 475 for(ctr=0;ctr<arrGIPartName[num].length;ctr++) 476 { 477 FJ.Part_No.options[ctr]=new Option(arrGIPartName[num][ctr],arrGIPartCode[num][ctr]); 478 } 479 FJ.Part_No.length=arrGIPartName[num].length; 480 }else{ 481 jsSelectClear(FJ.Part_No); 482 FJ.Part_No.options[0]=new Option(":: 2ì°¨ ë¶ë¥ ì í ::",'0'); 483 } 484 485 if (FJ.oldPart_No.value!="0") 486 { 487 if (FJ.oldCpart.value==FJ.txt_Cpart.value) 488 { 489 FJ.Part_No.value=FJ.oldPart_No.value; 490 } 491 } 492} 493 494 495function jsSelectClear(argObj) { 496 for (i=argObj.length-1; i>=0; i--) { 497 argObj.options[i] = null; 498 } 499} 500 501 502 503 504 505// 주민ë±ë¡ ë²í¸ ì¡°íí기 : S 506function Next(frm) { 507var frm = eval("document."+frm); 508var str = frm.user_jumin1.value.length; 509if (str == 6) 510frm.user_jumin2.focus(); 511return false; 512} 513 514var errfound = false; 515function Validate(frm) { 516var frm = eval("document."+frm); 517// 첫ë²ì§¸ 주민ë²í¸ì¤í if(!JuminCheck(frm.user_jumin1.value, frm.user_jumin2.value)){ 518/* ëë²ì§¸ 주민ë²í¸ì¤í */if(!checkkJumin(frm.user_jumin1.value, frm.user_jumin2.value)){ 519 frm.user_jumin1.focus(); 520 alert("주민ë±ë¡ ë²í¸ê° íë ¸ìµëë¤. ë¤ì ì¨ì£¼ì¸ì!"); 521 frm.user_jumin1.value="" 522 frm.user_jumin2.value="" 523 frm.user_jumin1.focus(); 524 errfound=true; 525 } 526 //else 527 // window.alert("주민ë±ë¡ ë²í¸ê° ë§ììµëë¤. ë¤ì ì¬ì´í¸ë¡ ì´ëí©ëë¤!"); 528 //return !errfound; 529} 530 531function JuminCheck(jumin1, jumin2){ 532 check = false; 533 total = 0; 534 temp = new Array(13); 535 536 for(i=1; i<=6; i++) 537 temp[i] = jumin1.charAt(i-1); 538 for(i=7; i<=13; i++) 539 temp[i] = jumin2.charAt(i-7); 540 541 for(i=1; i<=12; i++){ 542 k = i + 1; 543 if(k >= 10) 544 k = k % 10 + 2; 545 total = total + temp[i] * k; 546 } 547 mm = temp[3] + temp[4]; 548 dd = temp[5] + temp[6]; 549 550 totalmod = total % 11; 551 chd = 11 - totalmod; 552 if(chd == temp[13] && mm < 13 && dd < 32 && (temp[7]==1 || temp[7]==2)) 553 check=true; 554 return check; 555} 556// 주민ë±ë¡ ë²í¸ ì¡°íí기 : E 557 558 559 560// ì´ë©ì¼ ê²ìí기 --- ê°ë³ì ì´ë©ì¼ìì¤ 561function inputEmailCompany(frm) { 562 563var frm = eval("document."+frm); 564var idx = frm.email3.selectedIndex; 565 566if(idx == 0) { 567 568frm.email2.readOnly = false; 569 570frm.email2.value = ""; 571 572frm.email2.focus(); 573 574} 575else { 576 577frm.email2.readOnly = true; 578 579//frm.email2.value = frm.email3.options[idx].text; 580 581frm.email2.value = frm.email3.value; 582frm.email1.focus(); 583 584} 585 586} 587 588 589/* 590 591 592 ê°ì í¼ ì²´í¬ ë° Submit í¨ì 593 594 595*/ 596 597 598 function chkRegistForm() 599 { 600 var objForm = document.registform 601 602 if (checkNull(objForm.txt_MemId.value)==true) { 603 alert('ìì´ë ì ë ¥ê°ì´ ììµëë¤.\n\nìì´ë ì¤ë³µê²ì¬ë¥¼ íµí´ ìì´ë를 ì ë ¥í´ ì£¼ì¸ì.'); 604 objForm.txt_MemId.focus(); 605 return; 606 } 607 608 if (checkNull(objForm.txt_MemPwd.value)==true) { 609 alert('ë¹ë°ë²í¸ ì ë ¥ê°ì´ ììµëë¤. '); 610 objForm.txt_MemPwd.focus(); 611 return; 612 } 613 if (checkNull(objForm.txt_MemPwd_2.value)==true) { 614 alert('ë¹ë°ë²í¸íì¸ ì ë ¥ê°ì´ ììµëë¤. '); 615 objForm.txt_MemPwd_2.focus(); 616 return; 617 } 618 if (checkLen(objForm.txt_MemPwd.value)<4) { 619 alert('ë¹ë°ë²í¸ë 4ì리 ì´ìì ëë¤. '); 620 objForm.txt_MemPwd.focus(); 621 return; 622 } 623 if (objForm.txt_MemPwd.value!=objForm.txt_MemPwd_2.value) { 624 alert('ë¹ë°ë²í¸ê° í립ëë¤.\n\në¤ì íì¸íìê³ ì ë ¥í´ ì£¼ì¸ì. '); 625 objForm.txt_MemPwd_2.focus(); 626 return; 627 } 628 629 if (checkNull(objForm.txt_MemName.value)==true) { 630 alert('ì´ë¦ ì ë ¥ê°ì´ ììµëë¤. '); 631 objForm.txt_MemName.focus(); 632 return; 633 } 634 635 /* 636 if (checkkJumin(objForm.user_jumin1.value, objForm.user_jumin2.value)==false) { 637 alert('주민ë²í¸ê° ì못ëììµëë¤. '); 638 objForm.user_jumin1.focus(); 639 return; 640 } 641 */ 642 643 644 if (onlyNum(objForm.txt_Phone_1)==false || checkNull(objForm.txt_Phone_1.value)==true || checkLen(objForm.txt_Phone_1.value)<2) { 645 alert('ì íë²í¸ ì ë ¥ê°ì´ ì못ëììµëë¤. '); 646 objForm.txt_Phone_1.focus(); 647 return; 648 } 649 if (onlyNum(objForm.txt_Phone_2)==false || checkNull(objForm.txt_Phone_2.value)==true || checkLen(objForm.txt_Phone_2.value)<3) { 650 alert('ì íë²í¸ ì ë ¥ê°ì´ ì못ëììµëë¤. ');
651 objForm.txt_Phone_2.focus(); 652 return; 653 } 654 if (onlyNum(objForm.txt_Phone_3)==false || checkNull(objForm.txt_Phone_3.value)==true || checkLen(objForm.txt_Phone_3.value)!=4) { 655 alert('ì íë²í¸ ì ë ¥ê°ì´ ì못ëììµëë¤. '); 656 objForm.txt_Phone_3.focus(); 657 return; 658 } 659 660 if (onlyNum(objForm.txt_CellPhone_1)==false || checkNull(objForm.txt_CellPhone_1.value)==true || checkLen(objForm.txt_CellPhone_1.value)<3) { 661 alert('í´ëì í ì ë ¥ê°ì´ ì못ëììµëë¤. '); 662 objForm.txt_CellPhone_1.focus(); 663 return; 664 } 665 if (onlyNum(objForm.txt_CellPhone_2)==false || checkNull(objForm.txt_CellPhone_2.value)==true || checkLen(objForm.txt_CellPhone_2.value)<3) { 666 alert('í´ëì í ì ë ¥ê°ì´ ì못ëììµëë¤. '); 667 objForm.txt_CellPhone_2.focus(); 668 return; 669 } 670 if (onlyNum(objForm.txt_CellPhone_3)==false || checkNull(objForm.txt_CellPhone_3.value)==true || checkLen(objForm.txt_CellPhone_3.value)!=4) { 671 alert('í´ëì í ì ë ¥ê°ì´ ì못ëììµëë¤. '); 672 objForm.txt_CellPhone_3.focus(); 673 return; 674 } 675 676 if (checkNull(objForm.email1.value)==true) { 677 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 678 objForm.email1.focus(); 679 return; 680 } 681 if (checkNull(objForm.email2.value)==true) { 682 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 683 objForm.email2.focus(); 684 return; 685 } 686 687 /* ë¨ì¼ì´ë©ì¼ì£¼ìì¼ë 688 if (checkNull(objForm.txt_Email.value)==true) { 689 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 690 objForm.txt_Email.focus(); 691 return; 692 } 693 if (CheckEmail(objForm.txt_Email.value)==false) { 694 alert('ì´ë©ì¼ 주ìê° ì못ëììµëë¤. '); 695 objForm.txt_Email.focus(); 696 return; 697 } 698 */ 699 700 if (checkNull(objForm.txt_Zipcode_1.value)==true) { 701 alert('주ìê° ììµëë¤.\n\nì°í¸ë²í¸ì°¾ê¸°ë¥¼ ì ííì¬ ì£¼ì를 ì ë ¥í´ ì£¼ì¸ì. '); 702 objForm.txt_Zipcode_1.focus(); 703 return; 704 } 705 if (checkNull(objForm.txt_Addr.value)==true) { 706 alert('주ìê° ììµëë¤.\n\nì°í¸ë²í¸ì°¾ê¸°ë¥¼ ì ííì¬ ì£¼ì를 ì ë ¥í´ ì£¼ì¸ì. '); 707 objForm.txt_Addr.focus(); 708 return; 709 } 710 if (checkNull(objForm.txt_AddrEtc.value)==true) { 711 alert('ìì¸ ì£¼ìê° ììµëë¤. '); 712 objForm.txt_AddrEtc.focus(); 713 return; 714 } 715 716 objForm.submit(); 717 } 718 719 720 function chkFindIdForm() 721 { 722 var objForm = document.id_search_fom; 723 724 if (checkNull(objForm.user_name.value)==true) { 725 alert('ì´ë¦ ì ë ¥ê°ì´ ììµëë¤. '); 726 objForm.user_name.focus(); 727 return false; 728 } 729 if (checkNull(objForm.user_email.value)==true) { 730 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 731 objForm.user_email.focus(); 732 return false; 733 } 734 if (CheckEmail(objForm.user_email.value)==false) { 735 alert('ì´ë©ì¼ 주ìê° ì못ëììµëë¤. '); 736 objForm.user_email.focus(); 737 return false; 738 } 739 /* 740 if (checkkJumin(objForm.user_jumin1.value, objForm.user_jumin2.value)==false) { 741 alert('주민ë²í¸ê° ì못ëììµëë¤. '); 742 objForm.user_jumin1.focus(); 743 return false; 744 } 745 */ 746 objForm.submit(); 747 } 748 749 750 function chkFindPwForm() 751 { 752 var objForm = document.id_search_fom2; 753 754 if (checkNull(objForm.txt_MemId.value)==true) { 755 alert('ìì´ë ì ë ¥ê°ì´ ììµëë¤. '); 756 objForm.txt_MemId.focus(); 757 return; 758 } 759 if (checkNull(objForm.user_name.value)==true) { 760 alert('ì´ë¦ ì ë ¥ê°ì´ ììµëë¤. '); 761 objForm.user_name.focus(); 762 return false; 763 } 764 if (checkNull(objForm.user_email.value)==true) { 765 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 766 objForm.user_email.focus(); 767 return false; 768 } 769 if (CheckEmail(objForm.user_email.value)==false) { 770 alert('ì´ë©ì¼ 주ìê° ì못ëììµëë¤. '); 771 objForm.user_email.focus(); 772 return false; 773 } 774 /* 775 if (checkkJumin(objForm.user_jumin1.value, objForm.user_jumin2.value)==false) { 776 alert('주민ë²í¸ê° ì못ëììµëë¤. '); 777 objForm.user_jumin1.focus(); 778 return false; 779 } 780 */ 781 objForm.submit(); 782 } 783 784 785 function chkModifyForm() 786 { 787 var objForm = document.modifyform; 788 789 if (checkNull(objForm.txt_rMemPwd.value)==true) { 790 alert('ë¹ë°ë²í¸ ì ë ¥ê°ì´ ììµëë¤. '); 791 objForm.txt_rMemPwd.focus(); 792 return; 793 } 794 if (checkNull(objForm.txt_rMemPwd_2.value)==true) { 795 alert('ë¹ë°ë²í¸íì¸ ì ë ¥ê°ì´ ììµëë¤. '); 796 objForm.txt_rMemPwd_2.focus(); 797 return; 798 } 799 if (checkLen(objForm.txt_rMemPwd.value)<4) { 800 alert('ë¹ë°ë²í¸ë 4ì리 ì´ìì ëë¤. '); 801 objForm.txt_rMemPwd.focus(); 802 return; 803 } 804 if (objForm.txt_rMemPwd.value!=objForm.txt_rMemPwd_2.value) { 805 alert('ë¹ë°ë²í¸ê° í립ëë¤.\n\në¤ì íì¸íìê³ ì ë ¥í´ ì£¼ì¸ì. '); 806 objForm.txt_rMemPwd_2.focus(); 807 return; 808 } 809 810 if (onlyNum(objForm.txt_Phone_1)==false || checkNull(objForm.txt_Phone_1.value)==true || checkLen(objForm.txt_Phone_1.value)<2) { 811 alert('ì íë²í¸ ì ë ¥ê°ì´ ì못ëììµëë¤. '); 812 objForm.txt_Phone_1.focus(); 813 return; 814 } 815 if (onlyNum(objForm.txt_Phone_2)==false || checkNull(objForm.txt_Phone_2.value)==true || checkLen(objForm.txt_Phone_2.value)<3) { 816 alert('ì íë²í¸ ì ë ¥ê°ì´ ì못ëììµëë¤. ');
817 objForm.txt_Phone_2.focus(); 818 return; 819 } 820 if (onlyNum(objForm.txt_Phone_3)==false || checkNull(objForm.txt_Phone_3.value)==true || checkLen(objForm.txt_Phone_3.value)!=4) { 821 alert('ì íë²í¸ ì ë ¥ê°ì´ ì못ëììµëë¤. '); 822 objForm.txt_Phone_3.focus(); 823 return; 824 } 825 826 if (onlyNum(objForm.txt_CellPhone_1)==false || checkNull(objForm.txt_CellPhone_1.value)==true || checkLen(objForm.txt_CellPhone_1.value)<3) { 827 alert('í´ëì í ì ë ¥ê°ì´ ì못ëììµëë¤. '); 828 objForm.txt_CellPhone_1.focus(); 829 return; 830 } 831 if (onlyNum(objForm.txt_CellPhone_2)==false || checkNull(objForm.txt_CellPhone_2.value)==true || checkLen(objForm.txt_CellPhone_2.value)<3) { 832 alert('í´ëì í ì ë ¥ê°ì´ ì못ëììµëë¤. '); 833 objForm.txt_CellPhone_2.focus(); 834 return; 835 } 836 if (onlyNum(objForm.txt_CellPhone_3)==false || checkNull(objForm.txt_CellPhone_3.value)==true || checkLen(objForm.txt_CellPhone_3.value)!=4) { 837 alert('í´ëì í ì ë ¥ê°ì´ ì못ëììµëë¤. '); 838 objForm.txt_CellPhone_3.focus(); 839 return; 840 } 841 842 if (checkNull(objForm.email1.value)==true) { 843 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 844 objForm.email1.focus(); 845 return; 846 } 847 if (checkNull(objForm.email2.value)==true) { 848 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 849 objForm.email2.focus(); 850 return; 851 } 852 853 /* ë¨ì¼ì´ë©ì¼ì£¼ìì¼ë 854 if (checkNull(objForm.txt_Email.value)==true) { 855 alert('ì´ë©ì¼ 주ì ì ë ¥ê°ì´ ììµëë¤. '); 856 objForm.txt_Email.focus(); 857 return; 858 } 859 if (CheckEmail(objForm.txt_Email.value)==false) { 860 alert('ì´ë©ì¼ 주ìê° ì못ëììµëë¤. '); 861 objForm.txt_Email.focus(); 862 return; 863 } 864 */ 865 866 if (checkNull(objForm.txt_Zipcode_1.value)==true) { 867 alert('주ìê° ììµëë¤.\n\nì°í¸ë²í¸ì°¾ê¸°ë¥¼ ì ííì¬ ì£¼ì를 ì ë ¥í´ ì£¼ì¸ì. '); 868 objForm.txt_Zipcode_1.focus(); 869 return; 870 } 871 if (checkNull(objForm.txt_Addr.value)==true) { 872 alert('주ìê° ììµëë¤.\n\nì°í¸ë²í¸ì°¾ê¸°ë¥¼ ì ííì¬ ì£¼ì를 ì ë ¥í´ ì£¼ì¸ì. '); 873 objForm.txt_Addr.focus(); 874 return; 875 } 876 if (checkNull(objForm.txt_AddrEtc.value)==true) { 877 alert('ìì¸ ì£¼ìê° ììµëë¤. '); 878 objForm.txt_AddrEtc.focus(); 879 return; 880 } 881 882 objForm.submit(); 883 } 884 885 886 function chkSecedeForm() 887 { 888 var cfm = confirm('ì ë§ íìíí´ íìê² ìµëê¹? \n\níí´íìë©´ 모ë íìì ë³´ë ìì ëë©° ëì¼ìì´ë를 ë¤ì ì°ì¤ì ììµëë¤.'); 889 890 if (cfm==false) { 891 return; 892 } 893 var objForm = document.secedeform; 894 895 if (checkNull(objForm.txt_MemId.value)==true) { 896 alert('ìì´ë ì ë ¥ê°ì´ ììµëë¤.'); 897 return; 898 } 899 if (checkNull(objForm.txt_MemName.value)==true) { 900 alert('ì´ë¦ ì ë ¥ê°ì´ ììµëë¤. '); 901 objForm.txt_MemName.focus(); 902 return; 903 }
904 /*if (checkNull(objForm.txt_MemPwd.value)==true) { 905 alert('ë¹ë°ë²í¸ ì ë ¥ê°ì´ ììµëë¤. '); 906 objForm.txt_MemPwd.focus(); 907 return; 908 }*/ 909 if (checkkJumin(objForm.user_jumin1.value, objForm.user_jumin2.value)==false) { 910 alert('주민ë²í¸ê° ì못ëììµëë¤. '); 911 objForm.user_jumin1.focus(); 912 return; 913 } 914 objForm.submit(); 915 } 916 917 918 919function email_popup(objForm) { 920 /*if (obj) 921 { 922 var objForm = document.modifyform; 923 }else{ 924 var objForm = document.registform; 925 }*/ 926 var urlname = "/kyh0924_admin/kyh_User_File/popup_email.asp?COMM_001=0000100000&COMM_002=0&eml_id="+objForm.txt_Email1.value; 927 addr_etc = window.open(urlname, '',"top=100px,left=100px,status=no,resizable=no,menubar=no,scrollbars=no,width=391,height=238"); 928 addr_etc.focus(); 929} 930 931 932 933function mailAddr(objForm) 934{ 935 /*if (obj) 936 { 937 var objForm = document.modifyform; 938 }else{ 939 var objForm = document.registform; 940 }*/ 941 var str_id = objForm.txt_Email1.value; 942 var str_addr = objForm.txt_Email2.value; 943 if(str_id == "" && !objForm.txt_Email2.options[0].selected){ 944 alert("ë¹ì¹¸ì ì±ì주ì¸ì."); 945 objForm.txt_Email1.focus(); 946 objForm.txt_Email2.options[0].selected = true; 947 return; 948 }else if(str_id != "" && str_id.indexOf("@") > -1){ 949 alert("@ì ìë¶ë¶ë§ ì ë ¥í´ ì£¼ìê³ ,\në·ë¶ë¶ì ì íí´ ì£¼ì¸ì."); 950 objForm.txt_Email1.focus(); 951 objForm.txt_Email2.options[0].selected = true; 952 return; 953 } 954 if ( str_addr == "etc" ){ 955 email_popup(objForm); 956 }else { 957 var mailsum = objForm.txt_Email1.value + "@" + objForm.txt_Email2.value; 958 objForm.txt_Email.value = mailsum; 959 } 960 //alert(objForm.txt_Email.value) ; 961}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.