1if (location.hostname != "www.hearsayenglish.com") { 2 location.href = location.href.replace(location.hostname, "www.hearsayenglish.com"); 3} 4 5if (location.protocol == "http:") { 6 location.href = location.href.replace("http://", "https://"); 7} 8 9function isMobile() { 10 var filter = "win16|win32|win64|mac|macintel"; 11 if (navigator.platform) { 12 if (filter.indexOf(navigator.platform.toLowerCase()) < 0) { 13 return true; 14 } else { 15 return false; 16 } 17 } 18} 19 20function BrowserVersionCheck() { 21 22 var word; 23 var versionOrType = "another"; 24 25 var agent = navigator.userAgent.toLowerCase(); 26 var name = navigator.appName; 27 28 /*********************************************** 29 * IEì¸ ê²½ì° ë²ì ì²´í¬ 30 ***********************************************/ 31 // IE old version ( IE 10 or Lower ) 32 if (name == "Microsoft Internet Explorer") { 33 word = "msie "; 34 versionOrType = "IE"; 35 } else { 36 // IE 11 37 if (agent.search("trident") > -1) { 38 word = "trident/.*rv:"; 39 versionOrType = "IE"; 40 // IE 12 ( Microsoft Edge ) 41 } else if (agent.search("edge/") > -1) { 42 word = "edge/"; 43 versionOrType = "Edge"; 44 } 45 } 46 47 /* 48 var reg = new RegExp( word + "([0-9]{1,})(\\.{0,}[0-9]{0,1})" ); 49 if ( reg.exec( agent ) != null ) 50 versionOrType = RegExp.$1 + RegExp.$2; 51 */ 52 53 /*********************************************** 54 * IEê° ìë ê²½ì° ë¸ë¼ì°ì ì ì¢ ë¥ ì²´í¬ 55 ***********************************************/ 56 if (versionOrType == "another") { 57 if (agent.indexOf("chrome") != -1) versionOrType = "Chrome"; 58 else if (agent.indexOf("opera") != -1) versionOrType = "Opera"; 59 else if (agent.indexOf("firefox") != -1) versionOrType = "Firefox"; 60 else if (agent.indexOf("safari") != -1) versionOrType = "Safari"; 61 } 62 63 return versionOrType; 64} 65 66/* ì«ìì²´í¬*/ 67function IsNumber(num) { 68 var x = num; 69 //var anum=/(^\d+$)|(^\d+\.\d+$)/ 70 var anum = /(^\d+$)|(^\d+$)/ 71 if (anum.test(x)) 72 testresult = true 73 else { 74 testresult = false 75 } 76 return (testresult) 77} 78 79 80function pageRun(num) { 81 document.listScriptForm.pg.value = num; 82 document.listScriptForm.submit(); 83} 84 85function readRun(no) { 86 document.listScriptForm.no2.value = no; 87 document.listScriptForm.submit(); 88} 89 90function readRunYoon(no) { 91 document.listScriptForm.no2.value = no; 92 document.listScriptForm.yoon_mode.value = "Y"; 93 document.listScriptForm.submit(); 94} 95 96function hanCheck(MemberID) { 97 98 var digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 99 var temp; 100 //alert(MemberID.value); 101 for (i = 0; i < MemberID.value.length; i++) { 102 temp = MemberID.value.substring(i, i + 1); 103 if (digits.indexOf(temp) == -1) { 104 message.innerHTML = "<strong>ìì´ëë ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤.</strong>"; 105 return false 106 } 107 } 108 return true 109} 110 111function hanCheck2(MemberID) { 112 113 var digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 114 var temp; 115 //alert(MemberID.value); 116 for (i = 0; i < MemberID.value.length; i++) { 117 temp = MemberID.value.substring(i, i + 1); 118 if (digits.indexOf(temp) == -1) { 119 return false 120 } 121 } 122 return true 123} 124 125function hanCheck3(str) { 126 127 var digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 128 var temp; 129 //alert(MemberID.value); 130 for (i = 0; i < str.length; i++) { 131 temp = str.substring(i, i + 1); 132 if (digits.indexOf(temp) == -1) { 133 return false 134 } 135 } 136 return true 137} 138 139function ID_Check_ajax(MemberID) { 140 141 try { 142 xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); 143 } 144 catch (e) { 145 try { 146 xmlhttp = new XMLHttpRequest(); 147 } 148 catch (ee) { 149 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 150 } 151 } 152 153 xmlhttp.onreadystatechange = ID_Check_ajax_Message; 154 xmlhttp.open("GET", "/member/id_search.php?MemberID=" + MemberID, false); 155 xmlhttp.send(null); 156} 157 158function ID_Check_ajax_Message() { 159 if (xmlhttp.readyState == 4) { 160 if (xmlhttp.status == 200) { 161 message.innerHTML = xmlhttp.responseText; 162 } else { 163 //alert(xmlhttp.status); 164 } 165 } 166 167} 168 169 170function ID_Check() { 171 172 MemberID = document.JoinForm.ID; 173 174 if (MemberID.value == "") { 175 message.innerHTML = "<strong>ìì´ë를 ì ë ¥íì¸ì.</strong>"; 176 return false; 177 } 178 179 if (hanCheck(MemberID) == false) { 180 return false; 181 } 182 183 if (MemberID.value.length < 6 || MemberID.value.length > 20) { 184 message.innerHTML = "<strong>ìì´ëë 6ì ì´ì 20ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤.</strong>"; 185 } else { 186 ID_Check_ajax(MemberID.value); 187 } 188 189 190} 191 192function ID_m3_Check() { 193 194 MemberID = document.JoinForm.ID_m3; 195 196 if (MemberID.value == "") { 197 message.innerHTML = "<strong>ìì´ë를 ì ë ¥íì¸ì.</strong>"; 198 return false; 199 } 200 201 if (hanCheck(MemberID) == false) { 202 return; 203 } 204 205 if (MemberID.value.length < 6 || MemberID.value.length > 20) { 206 message.innerHTML = "<strong>ìì´ëë 6ì ì´ì 20ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤.</strong>"; 207 } else { 208 ID_Check_ajax(MemberID.value); 209 } 210} 211 212function ID_m4_Check() { 213 214 MemberID = document.JoinForm.ID_m4; 215 216 if (MemberID.value == "") { 217 message.innerHTML = "<strong>ìì´ë를 ì ë ¥íì¸ì.</strong>"; 218 return false; 219 } 220 221 if (hanCheck(MemberID) == false) { 222 return; 223 } 224 225 if (MemberID.value.length < 6 || MemberID.value.length > 20) { 226 message.innerHTML = "<strong>ìì´ëë 6ì ì´ì 20ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤.</strong>"; 227 } else { 228 ID_Check_ajax(MemberID.value); 229 } 230} 231 232 233function Nick_Check_ajax(MemberID) { 234 235 try { 236 xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); 237 } 238 catch (e) { 239 try { 240 xmlhttp = new XMLHttpRequest(); 241 } 242 catch (ee) { 243 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 244 } 245 } 246 247 xmlhttp.onreadystatechange = Nick_Check_ajax_Message; 248 xmlhttp.open("GET", "/member/nickname_search.php?MemberID=" + encodeURI(MemberID), false); 249 xmlhttp.send(null); 250} 251 252function Nick_Check_ajax_Message() { 253 if (xmlhttp.readyState == 4) { 254 if (xmlhttp.status == 200) { 255 message.innerHTML = xmlhttp.responseText; 256 } else { 257 //alert(xmlhttp.status); 258 } 259 } 260 261} 262 263function Nick_Check() { 264 265 MemberID = document.JoinForm.Nick; 266 267 if (MemberID.value == "") { 268 message.innerHTML = "<strong>ëë¤ìì ì ë ¥íì¸ì.</strong>"; 269 return false; 270 } 271 272 if (MemberID.value.length < 2 || MemberID.value.length > 16) { 273 message.innerHTML = "<strong>ëë¤ìì 2ì ì´ì 16ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤.</strong>"; 274 return false; 275 } else { 276 Nick_Check_ajax(MemberID.value); 277 } 278} 279 280function Nick_m3_Check() { 281 282 MemberID = document.JoinForm.Nick_m3; 283 284 if (MemberID.value == "") { 285 message.innerHTML = "<strong>ëë¤ìì ì ë ¥íì¸ì.</strong>"; 286 return false; 287 } 288 289 if (MemberID.value.length < 2 || MemberID.value.length > 16) { 290 message.innerHTML = "<strong>ëë¤ìì 2ì ì´ì 16ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤.</strong>"; 291 return false; 292 } else { 293 Nick_Check_ajax(MemberID.value); 294 } 295} 296 297function Nick_m4_Check() { 298 299 MemberID = document.JoinForm.Nick_m4; 300 301 if (MemberID.value == "") { 302 message.innerHTML = "<strong>ëë¤ìì ì ë ¥íì¸ì.</strong>"; 303 return false; 304 } 305 306 if (MemberID.value.length < 2 || MemberID.value.length > 16) { 307 message.innerHTML = "<strong>ëë¤ìì 2ì ì´ì 16ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤.</strong>"; 308 return false; 309 } else { 310 Nick_Check_ajax(MemberID.value); 311 } 312} 313 314function chkEmail(str) { 315 316 var reg_email = /^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/; 317 318 if (!reg_email.test(str)) { 319 return false; 320 } 321 return true; 322} 323 324 325function JoinOk() { 326 327 val = document.JoinForm; 328 329 if (val.Name.value == "") { 330 popupOpen2('join_check', 'ì´ë¦ì ì ë ¥íì¸ì.', 100); 331 return; 332 } 333 if (val.Birth.value == "") { 334 popupOpen2('join_check', 'ìë ìì¼ì ì ë ¥íì¸ì.', 100); 335 return; 336 } 337 if (val.ID.value == "") { 338 popupOpen2('join_check', 'ìì´ë를 ì ë ¥íì¸ì.', 100); 339 return; 340 } 341 342 MemberID = document.JoinForm.ID; 343 344 if (hanCheck2(MemberID) == false) { 345 popupOpen2('join_check', 'ìì´ëë ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤.', 100); 346 return; 347 } 348 349 350 351 if ($("input[id='Gender1']:checked").length == 0 && $("input[id='Gender2']:checked").length == 0) { 352 popupOpen2('join_check', 'ì±ë³ì ì ííì¸ì.', 100); 353 return; 354 } 355 356 if (val.Pass.value == "") { 357 popupOpen2('join_check', 'ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì.', 130); 358 return; 359 } 360 if (val.Pass.value.length < 6 || val.Pass.value.length > 20) { 361 popupOpen2('join_check', 'ë¹ë°ë²í¸ë ì문ì문ì, ì«ìì¡°í©ì¼ë¡<BR>6~20ìë¡ ì ë ¥ íì¸ì.', 130); 362 return; 363 } 364 if (val.Pass2.value == "") { 365 popupOpen2('join_check', 'ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì.', 130); 366 return; 367 } 368 if (val.Pass.value != val.Pass2.value) { 369 popupOpen2('join_check', 'ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤.', 130); 370 return; 371 } 372 /* 373 if(val.Email1.value=="") { 374 popupOpen2('join_check','ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.',130); 375 return; 376 } 377 378 if(val.Email2.value=="") { 379 popupOpen2('join_check','ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.',130); 380 return; 381 } 382 383 var Emailstr=val.Email1.value + "@" + val.Email2.value; 384 385 if(chkEmail(Emailstr)==false) { 386 popupOpen2('join_check','ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.',130); 387 return ; 388 } 389 */ 390 if ($("#Mobile1 option:selected").val() == "") { 391 popupOpen2('join_check', 'í¸ëí°ì ì ë ¥íì¸ì.', 150); 392 return; 393 } 394 if (val.Mobile2.value == "") { 395 popupOpen2('join_check', 'í¸ëí°ì ì ë ¥íì¸ì.', 150); 396 return; 397 } 398 if (IsNumber(val.Mobile2.value) == false) { 399 popupOpen2('join_check', 'í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 150); 400 return; 401 } 402 if (val.Mobile3.value == "") { 403 popupOpen2('join_check', 'í¸ëí°ì ì ë ¥íì¸ì.', 150); 404 return; 405 } 406 if (IsNumber(val.Mobile3.value) == false) { 407 popupOpen2('join_check', 'í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 150); 408 return; 409 } 410 /* 411 if(val.Zip1.value=="") { 412 popupOpen2('join_check','주ì를를 ì ë ¥íì¸ì.',150); 413 return; 414 } 415 if(val.Zip2.value=="") { 416 popupOpen2('join_check','주ì를를 ì ë ¥íì¸ì.',150); 417 return; 418 } 419 if(val.Address.value=="") { 420 popupOpen2('join_check','주ì를를 ì ë ¥íì¸ì.',150); 421 return; 422 } 423 if($("#join_type option:selected").val()=="") { 424 popupOpen2('join_check','ê°ì ê²½ë¡ë¥¼ë¥¼ ì ë ¥íì¸ì.',150); 425 return; 426 } 427 */ 428 429 if ($("input[id='Agree1']:checked").length == 0) { 430 popupOpen2('join_check', 'íìê°ì ì½ê´ì ëìíì¬ì¼<BR>íìê°ì ì´ ê°ë¥í©ëë¤.', 1200); 431 return; 432 } 433 if ($("input[id='Agree2']:checked").length == 0) { 434 popupOpen2('join_check', 'ê°ì¸ì ë³´ë³´í¸ì ì± ì ëìíì¬ì¼<BR>íìê°ì ì´ ê°ë¥í©ëë¤.', 1500); 435 return; 436 } 437 438 439 440 441 $("input[name='TempGender']").val($("input[name='Gender']:checked").val()); 442 $("input[name='TempMobile1']").val($("#Mobile1 option:selected").val()); 443 $("input[name='TempPhone1']").val($("#Phone1 option:selected").val()); 444 $("input[name='Tempjoin_type']").val($("#join_type option:selected").val()); 445 $("input[name='TempJob']").val($("#Job option:selected").val()); 446 447 448 if ($("input[name='Email_Accept']:checked").val() == "Y") { 449 $("input[name='TempEmail_Accept']").val("Y"); 450 } else { 451 $("input[name='TempEmail_Accept']").val("N"); 452 } 453 454 if ($("input[name='SMS_Accept']:checked").val() == "Y") { 455 $("input[name='TempSMS_Accept']").val("Y"); 456 } else { 457 $("input[name='TempSMS_Accept']").val("N"); 458 } 459 460 if ($("input[name='Agree1']:checked").val() == "Y") { 461 $("input[name='TempAgree1']").val("Y"); 462 } else { 463 $("input[name='TempAgree1']").val("N"); 464 } 465 466 if ($("input[name='Agree2']:checked").val() == "Y") { 467 $("input[name='TempAgree2']").val("Y"); 468 } else { 469 $("input[name='TempAgree2']").val("N"); 470 } 471 472 val.submit(); 473} 474 475 476 477function JoinOkPop() { 478 479 val = document.JoinFormPop; 480 481 var pwExp = /^(?=.*[a-zA-z])(?=.*[0-9])(?=.*[`~!@#$%^&*|\\\'\";:\/?^=^+_()<>]).{8,20}$/; // 8 ~ 20ì ì문, ì«ì, í¹ì문ì ì¡°í© 482 483 if ($("#Name2").val() == "") { 484 alert("ì´ë¦ì ì ë ¥íì¸ì."); 485 $("#Name2").focus(); 486 return; 487 } 488 489 //var reg_hanengnum = /^[ã±-ã |ê°-í£|a-z|A-Z|0-9|\*]+$/; 490 var reg_hanengnum = /^[ã±-ã |ê°-í£|a-z|A-Z|\*]+$/; 491 492 if (!reg_hanengnum.test($("#Name2").val())) { 493 alert("ì´ë¦ì íê¸/ìë¬¸ë§ ì ë ¥ ê°ë¥í©ëë¤."); 494 $("#Name2").focus(); 495 return; 496 497 } 498 499 if ($("#Email_1").val() == "") {
500 alert("ì´ë©ì¼(ID)ì ì ë ¥íì¸ì."); 501 $("#Email_1").focus(); 502 return; 503 } 504 /* 505 if(hanCheck3($("#Email_1").val())==false) { 506 alert("ì´ë©ì¼(ID)ì ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤."); 507 $("#Email_1").focus(); 508 return; 509 } 510 */ 511 if ($("#Email_2").val() == "") { 512 alert("ì´ë©ì¼(ID)ì ì ë ¥íì¸ì."); 513 $("#Email_2").focus(); 514 return; 515 } 516 /* 517 if(hanCheck3($("#Email_2").val())==false) { 518 alert("ì´ë©ì¼(ID)ì ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤."); 519 $("#Email_2").focus(); 520 return; 521 } 522 */ 523 var result1 = $("#Email_1").val().search(" "); 524 525 if (result1 > -1) { 526 alert("ì´ë©ì¼(ID)ì 공백ì ì ë ¥í ì ììµëë¤."); 527 $("#Email_1").focus(); 528 return; 529 } 530 531 var result2 = $("#Email_2").val().search(" "); 532 533 if (result2 > -1) { 534 alert("ì´ë©ì¼(ID)ì 공백ì ì ë ¥í ì ììµëë¤."); 535 $("#Email_2").focus(); 536 return; 537 } 538 539 540 /* 541 var Emailstr=val.Email1.value + "@" + val.Email2.value; 542 543 if(chkEmail(Emailstr)==false) { 544 popupOpen2('join_check','ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.',130); 545 return ; 546 } 547 */ 548 549 if ($("#Pass_1").val() == "") { 550 alert("ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì."); 551 $("#Pass_1").focus(); 552 return; 553 } 554 if ($("#Pass_1").val().length < 6 || $("#Pass_1").val().length > 20) { 555 alert("ë¹ë°ë²í¸ë ì문, ì«ì, í¹ì문ì ì¡°í©ì¼ë¡ 8~20ìë¡ ì ë ¥ íì¸ì."); 556 $("#Pass_1").focus(); 557 return; 558 } 559 560 if (pwExp.test($("#Pass_1").val()) == false) { 561 alert("ë¹ë°ë²í¸ë ì문, ì«ì, í¹ì문ì ì¡°í©ì¼ë¡ ì ë ¥íì¸ì."); 562 $("#Pass_1").focus(); 563 return false; 564 } 565 if ($("#Pass_2").val() == "") { 566 alert("ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì."); 567 $("#Pass_2").focus(); 568 return; 569 } 570 if ($("#Pass_1").val() != $("#Pass_2").val()) { 571 alert("ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤."); 572 $("#Pass_2").focus(); 573 return; 574 } 575 576 if ($("#MobileChange").val() == "N") { 577 578 if ($("#Mobile_1 option:selected").val() == "") { 579 alert("í¸ëí°ì ì ë ¥íì¸ì."); 580 $("#Mobile_1").focus(); 581 return; 582 } 583 584 } else { 585 586 if (val.Mobile_1.value == "") { 587 alert("í¸ëí°ì ì ë ¥íì¸ì."); 588 $("#Mobile_1").focus(); 589 return; 590 } 591 if (IsNumber(val.Mobile1.value) == false) { 592 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 593 $("#Mobile_1").focus(); 594 return; 595 } 596 597 } 598 599 600 if (val.Mobile_2.value == "") { 601 alert("í¸ëí°ì ì ë ¥íì¸ì."); 602 $("#Mobile_2").focus(); 603 return; 604 } 605 if (IsNumber(val.Mobile2.value) == false) { 606 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 607 $("#Mobile_2").focus(); 608 return; 609 } 610 if (val.Mobile3.value == "") { 611 alert("í¸ëí°ì ì ë ¥íì¸ì."); 612 $("#Mobile_3").focus(); 613 return; 614 } 615 if (IsNumber(val.Mobile3.value) == false) { 616 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 617 $("#Mobile_3").focus(); 618 return; 619 } 620 621 622 if ($("input[id='Agree']:checked").length == 0) { 623 alert("íìì´ì©ì½ê´ì ëìíì¬ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 624 $("#Agree").focus(); 625 return; 626 } 627 628 if ($("input[id='Agree2']:checked").length == 0) { 629 alert("ê°ì¸ì ë³´ì²ë¦¬ë°©ì¹¨ì ëìíì¬ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 630 $("#Agree2").focus(); 631 return; 632 } 633 634 if ($("input[id='Agree3']:checked").length == 0) { 635 alert("ë§ 14ì¸ ì´ì ì¬ë¶ì ëìíì¬ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 636 $("#Agree3").focus(); 637 return; 638 } 639 640 var Email = $("#Email_1").val() + "@" + $("#Email_2").val(); 641 var Mobile = $("#Mobile_1").val() + "-" + $("#Mobile_2").val() + "-" + $("#Mobile_3").val(); 642 643 $("#TempName").val($("#Name2").val()); 644 $("#TempEmail").val(Email); 645 $("#TempMobile").val(Mobile); 646 647 648 649 if ($("input[name='Agree']:checked").val() == "Y") { 650 $("input[name='TempAgree']").val("Y"); 651 } else { 652 $("input[name='TempAgree']").val("N"); 653 } 654 655 val.submit(); 656} 657 658function JoinOkNew() { 659 660 val = document.JoinForm; 661 662 var pwExp = /^(?=.*[a-zA-z])(?=.*[0-9])(?=.*[`~!@#$%^&*|\\\'\";:\/?^=^+_()<>]).{8,20}$/; // 8 ~ 20ì ì문, ì«ì, í¹ì문ì ì¡°í© 663 664 if ($("#Name2").val() == "") { 665 alert("ì´ë¦ì ì ë ¥íì¸ì."); 666 $("#Name2").focus(); 667 return; 668 } 669 670 //var reg_hanengnum = /^[ã±-ã |ê°-í£|a-z|A-Z|0-9|\*]+$/; 671 var reg_hanengnum = /^[ã±-ã |ê°-í£|a-z|A-Z|\*]+$/; 672 673 if (!reg_hanengnum.test($("#Name2").val())) { 674 alert("ì´ë¦ì íê¸/ìë¬¸ë§ ì ë ¥ ê°ë¥í©ëë¤."); 675 $("#Name2").focus(); 676 return; 677 678 } 679 680 if ($("#Email_1").val() == "") {
681 alert("ì´ë©ì¼(ID)ì ì ë ¥íì¸ì."); 682 $("#Email_1").focus(); 683 return; 684 } 685 /* 686 if(hanCheck3($("#Email_1").val())==false) { 687 alert("ì´ë©ì¼(ID)ì ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤."); 688 $("#Email_1").focus(); 689 return; 690 } 691 */ 692 if ($("#Email_2").val() == "") { 693 alert("ì´ë©ì¼(ID)ì ì ë ¥íì¸ì."); 694 $("#Email_2").focus(); 695 return; 696 } 697 /* 698 if(hanCheck3($("#Email_2").val())==false) { 699 alert("ì´ë©ì¼(ID)ì ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤."); 700 $("#Email_2").focus(); 701 return; 702 } 703 */ 704 var result1 = $("#Email_1").val().search(" "); 705 706 if (result1 > -1) { 707 alert("ì´ë©ì¼(ID)ì 공백ì ì ë ¥í ì ììµëë¤."); 708 $("#Email_1").focus(); 709 return; 710 } 711 712 var result2 = $("#Email_2").val().search(" "); 713 714 if (result2 > -1) { 715 alert("ì´ë©ì¼(ID)ì 공백ì ì ë ¥í ì ììµëë¤."); 716 $("#Email_2").focus(); 717 return; 718 } 719 720 721 /* 722 var Emailstr=val.Email1.value + "@" + val.Email2.value; 723 724 if(chkEmail(Emailstr)==false) { 725 popupOpen2('join_check','ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.',130); 726 return ; 727 } 728 */ 729 730 if ($("#Pass_1").val() == "") { 731 alert("ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì."); 732 $("#Pass_1").focus(); 733 return; 734 } 735 if ($("#Pass_1").val().length < 6 || $("#Pass_1").val().length > 20) { 736 alert("ë¹ë°ë²í¸ë ì문, ì«ì, í¹ì문ì ì¡°í©ì¼ë¡ 8~20ìë¡ ì ë ¥ íì¸ì."); 737 $("#Pass_1").focus(); 738 return; 739 } 740 741 if (pwExp.test($("#Pass_1").val()) == false) { 742 alert("ë¹ë°ë²í¸ë ì문, ì«ì, í¹ì문ì ì¡°í©ì¼ë¡ ì ë ¥íì¸ì."); 743 $("#Pass_1").focus(); 744 return false; 745 } 746 if ($("#Pass_2").val() == "") { 747 alert("ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì."); 748 $("#Pass_2").focus(); 749 return; 750 } 751 if ($("#Pass_1").val() != $("#Pass_2").val()) { 752 alert("ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤."); 753 $("#Pass_2").focus(); 754 return; 755 } 756 757 if ($("#MobileChange").val() == "N") { 758 759 if ($("#Mobile_1 option:selected").val() == "") { 760 alert("í¸ëí°ì ì ë ¥íì¸ì."); 761 $("#Mobile_1").focus(); 762 return; 763 } 764 765 } else { 766 767 if (val.Mobile_1.value == "") { 768 alert("í¸ëí°ì ì ë ¥íì¸ì."); 769 $("#Mobile_1").focus(); 770 return; 771 } 772 if (IsNumber(val.Mobile1.value) == false) { 773 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 774 $("#Mobile_1").focus(); 775 return; 776 } 777 778 } 779 780 781 if (val.Mobile_2.value == "") { 782 alert("í¸ëí°ì ì ë ¥íì¸ì."); 783 $("#Mobile_2").focus(); 784 return; 785 } 786 if (IsNumber(val.Mobile2.value) == false) { 787 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 788 $("#Mobile_2").focus(); 789 return; 790 } 791 if (val.Mobile3.value == "") { 792 alert("í¸ëí°ì ì ë ¥íì¸ì."); 793 $("#Mobile_3").focus(); 794 return; 795 } 796 if (IsNumber(val.Mobile3.value) == false) { 797 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 798 $("#Mobile_3").focus(); 799 return; 800 } 801 802 803 if ($("input[id='Agree']:checked").length == 0) { 804 alert("íìì´ì©ì½ê´ì ëìíì¬ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 805 $("#Agree").focus(); 806 return; 807 } 808 809 if ($("input[id='Agree2']:checked").length == 0) { 810 alert("ê°ì¸ì ë³´ ìì§ ë° ì´ì©ì ëìíì¬ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 811 $("#Agree2").focus(); 812 return; 813 } 814 815 if ($("input[id='Agree3']:checked").length == 0) { 816 alert("ë§ 14ì¸ ì´ì ì¬ë¶ì ëìíì¬ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 817 $("#Agree3").focus(); 818 return; 819 } 820 821 var Email = $("#Email_1").val() + "@" + $("#Email_2").val(); 822 var Mobile = $("#Mobile_1").val() + "-" + $("#Mobile_2").val() + "-" + $("#Mobile_3").val(); 823 824 $("#TempName").val($("#Name2").val()); 825 $("#TempEmail").val(Email); 826 $("#TempMobile").val(Mobile); 827 828 829 830 if ($("input[name='Agree']:checked").val() == "Y") { 831 $("input[name='TempAgree']").val("Y"); 832 } else { 833 $("input[name='TempAgree']").val("N"); 834 } 835 836 val.submit(); 837} 838 839function JoinOkPopAllAgree() { 840 841 if ($("input[id='AllAgree']:checked").length > 0) { 842 $("#Agree").prop('checked', true); 843 $("#Agree2").prop('checked', true); 844 $("#Agree3").prop('checked', true); 845 $("#Agree4").prop('checked', true); 846 $("#event_agree").prop('checked', true); 847 } else { 848 $("#Agree").prop('checked', false); 849 $("#Agree2").prop('checked', false); 850 $("#Agree3").prop('checked', false); 851 $("#Agree4").prop('checked', false); 852 $("#event_agree").prop('checked', false); 853 } 854 855} 856 857 858function JoinMobile1Change() { 859 860 if ($("#Mobile_1 option:selected").val() == "000") { 861 $("#Mobile1Span").html('<input type="text" name="Mobile1" id="Mobile_1" style="width:61px;" maxlength="3" style="font-size:9pt">'); 862 $("#MobileChange").val("Y"); 863 } 864 865} 866 867function JoinMobileNewChange() { 868 869 if ($("#Mobile_1 option:selected").val() == "000") { 870 $("#Mobile1Span").html('<input type="text" name="Mobile1" id="Mobile_1" class="inputText" style="width:139px;" maxlength="3">'); 871 $("#MobileChange").val("Y"); 872 } 873 874} 875 876function FamilyJoinOk() { 877 878 val = document.JoinForm; 879 880 var m3_check = ""; 881 var m4_check = ""; 882 883 884 885 //ìë 1 ì²´í¬ 886 if (val.Name_m3.value != "" || val.ID_m3.value != "") { 887 888 if (val.Name_m3.value == "") { 889 popupOpen2('join_check', 'ìë 1ì ì´ë¦ì ì ë ¥íì¸ì.', 200);
890 return; 891 } 892 if (val.Birth_m3.value == "") { 893 popupOpen2('join_check', 'ìë 1ì ìë ìì¼ì ì ë ¥íì¸ì.', 200); 894 return; 895 } 896 if (val.ID_m3.value == "") { 897 popupOpen2('join_check', 'ìë 1ì ìì´ë를 ì ë ¥íì¸ì.', 200); 898 return; 899 } 900 MemberID = document.JoinForm.ID_m3; 901 902 if (hanCheck2(MemberID) == false) { 903 popupOpen2('join_check', 'ìì´ëë ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤.', 200); 904 return; 905 } 906 if ($("input[id='Gender1_m3']:checked").length == 0 && $("input[id='Gender2_m3']:checked").length == 0) { 907 popupOpen2('join_check', 'ìë 1ì ì±ë³ì ì ííì¸ì.', 200); 908 return; 909 } 910 if (val.Pass_m3.value == "") { 911 popupOpen2('join_check', 'ìë 1ì ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì.', 200); 912 return; 913 } 914 if (val.Pass_m3.value.length < 6 || val.Pass_m3.value.length > 20) { 915 popupOpen2('join_check', 'ìë 1ì ë¹ë°ë²í¸ë ì문ì문ì, ì«ìì¡°í©ì¼ë¡ 6~20ìë¡ ì ë ¥ íì¸ì.', 200); 916 return; 917 } 918 if (val.Pass2_m3.value == "") { 919 popupOpen2('join_check', 'ìë 1ì ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì.', 200); 920 return; 921 } 922 if (val.Pass_m3.value != val.Pass2_m3.value) { 923 popupOpen2('join_check', 'ìë 1ì ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤.', 200);
924 return; 925 } 926 if (val.Email1_m3.value == "") { 927 popupOpen2('join_check', 'ìë 1ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 300); 928 return; 929 } 930 if (val.Email2_m3.value == "") { 931 popupOpen2('join_check', 'ìë 1ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 300); 932 return; 933 } 934 var Emailstr = val.Email1_m3.value + "@" + val.Email2_m3.value; 935 936 if (chkEmail(Emailstr) == false) { 937 popupOpen2('join_check', 'ìë 1ì ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.', 300); 938 return; 939 } 940 941 if ($("#Mobile1_m3 option:selected").val() == "") { 942 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì ë ¥íì¸ì.', 300); 943 return; 944 } 945 if (val.Mobile2_m3.value == "") { 946 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì ë ¥íì¸ì.', 300); 947 return; 948 } 949 if (IsNumber(val.Mobile2_m3.value) == false) { 950 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 300); 951 return; 952 } 953 if (val.Mobile3_m3.value == "") { 954 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì ë ¥íì¸ì.', 300); 955 return; 956 } 957 if (IsNumber(val.Mobile3_m3.value) == false) { 958 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 300); 959 return; 960 } 961 962 m3_check = "Y"; 963 964 } 965 966 //ìë 2 ì²´í¬ 967 968 m4_check = "Y"; 969 970 971 if (m3_check == "Y" || m4_check == "Y") { 972 973 $("input[name='TempGender_m3']").val($("input[name='Gender_m3']:checked").val()); 974 $("input[name='TempMobile1_m3']").val($("#Mobile1_m3 option:selected").val()); 975 976 Yes = confirm("íì¬ ì ë ¥íì ì ë³´ë¡ ìë 를 íìê°ì íìê² ìµëê¹?"); 977 if (Yes == true) { 978 val.submit(); 979 } 980 } else { 981 alert("ìë íì ì 보를 ì ë ¥íì¸ì."); 982 return; 983 } 984 985} 986 987function MemberInfoOk() { 988 989 val = document.JoinForm; 990 991 var pwExp = /^(?=.*[a-zA-z])(?=.*[0-9])(?=.*[`~!@#$%^&*|\\\'\";:\/?^=^+_()<>]).{8,20}$/; // 8 ~ 20ì ì문, ì«ì, í¹ì문ì ì¡°í© 992 993 if (val.Birth.value == "") { 994 popupOpen2('join_check', 'ìë ìì¼ì ì ë ¥íì¸ì.', 130); 995 return; 996 } 997 998 if (val.Gender[0].checked == false && val.Gender[1].checked == false) { 999 popupOpen2('join_check', 'ì±ë³ì ì ííì¸ì.', 130); 1000 return 1001 } 1002 1003 if (val.Pass.value == "") { 1004 popupOpen2('join_check', 'ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì.', 130); 1005 return; 1006 } 1007 if (val.Pass.value.length < 8 || val.Pass.value.length > 20) { 1008 popupOpen2('join_check', 'ë¹ë°ë²í¸ë ì문, ì«ì, í¹ì문ì ì¡°í©ì¼ë¡<BR>8~20ìë¡ ì ë ¥ íì¸ì.', 130); 1009 return; 1010 } 1011 1012 if (pwExp.test(val.Pass.value) == false) { 1013 popupOpen2('join_check', 'ë¹ë°ë²í¸ë ì문, ì«ì, í¹ì문ì ì¡°í©ì¼ë¡ ì ë ¥íì¸ì.', 130); 1014 return; 1015 } 1016 1017 if (val.Pass2.value == "") { 1018 popupOpen2('join_check', 'ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì.', 130); 1019 return; 1020 } 1021 if (val.Pass.value != val.Pass2.value) { 1022 popupOpen2('join_check', 'ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤.', 130); 1023 return; 1024 } 1025 if (val.Email1.value == "") { 1026 popupOpen2('join_check', 'ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 130); 1027 return; 1028 } 1029 if (val.Email2.value == "") { 1030 popupOpen2('join_check', 'ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 130); 1031 return; 1032 } 1033 var Emailstr = val.Email1.value + "@" + val.Email2.value; 1034 1035 if (chkEmail(Emailstr) == false) { 1036 popupOpen2('join_check', 'ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.', 130); 1037 return; 1038 } 1039 1040 if ($("#Mobile1 option:selected").val() == "") { 1041 popupOpen2('join_check', 'í¸ëí°ì ì ë ¥íì¸ì.', 150); 1042 return; 1043 } 1044 if (val.Mobile2.value == "") { 1045 popupOpen2('join_check', 'í¸ëí°ì ì ë ¥íì¸ì.', 150); 1046 return; 1047 } 1048 if (IsNumber(val.Mobile2.value) == false) { 1049 popupOpen2('join_check', 'í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 150); 1050 return; 1051 } 1052 if (val.Mobile3.value == "") { 1053 popupOpen2('join_check', 'í¸ëí°ì ì ë ¥íì¸ì.', 150); 1054 return; 1055 } 1056 if (IsNumber(val.Mobile3.value) == false) { 1057 popupOpen2('join_check', 'í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 150); 1058 return; 1059 } 1060 /* 1061 if(val.Zip1.value=="") { 1062 popupOpen2('join_check','주ì를를 ì ë ¥íì¸ì.',150); 1063 return; 1064 } 1065 if(val.Zip2.value=="") { 1066 popupOpen2('join_check','주ì를를 ì ë ¥íì¸ì.',150); 1067 return; 1068 } 1069 if(val.Address.value=="") { 1070 popupOpen2('join_check','주ì를를 ì ë ¥íì¸ì.',150); 1071 return; 1072 } 1073 */ 1074 1075 $("input[name='TempGender']").val($("input[name='Gender']:checked").val()); 1076 $("input[name='TempMobile1']").val($("#Mobile1 option:selected").val()); 1077 $("input[name='TempPhone1']").val($("#Phone1 option:selected").val()); 1078 $("input[name='Tempjoin_type']").val($("#join_type option:selected").val()); 1079 $("input[name='TempJob']").val($("#Job option:selected").val()); 1080 1081 if ($("input[name='Email_Accept']:checked").val() == "Y") { 1082 $("input[name='TempEmail_Accept']").val("Y"); 1083 } else { 1084 $("input[name='TempEmail_Accept']").val("N"); 1085 } 1086 1087 if ($("input[name='SMS_Accept']:checked").val() == "Y") { 1088 $("input[name='TempSMS_Accept']").val("Y"); 1089 } else { 1090 $("input[name='TempSMS_Accept']").val("N"); 1091 } 1092 1093 1094 Yes = confirm("íì¬ ì ë ¥íì ì ë³´ë¡ íì ì 보를 ìì íìê² ìµëê¹?"); 1095 if (Yes == true) { 1096 val.submit(); 1097 } 1098 1099} 1100 1101 1102function FamilyEditOk() { 1103 1104 val = document.JoinForm; 1105 1106 //ìë 1 ì ë³´ìì 1107 if (val.Email1_m3.value == "") { 1108 popupOpen2('join_check', 'ìë 1ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 300); 1109 return; 1110 } 1111 if (val.Email2_m3.value == "") { 1112 popupOpen2('join_check', 'ìë 1ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 300); 1113 return; 1114 } 1115 var Emailstr = val.Email1_m3.value + "@" + val.Email2_m3.value; 1116 1117 if (chkEmail(Emailstr) == false) { 1118 popupOpen2('join_check', 'ìë 1ì ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.', 300); 1119 return; 1120 } 1121 1122 if ($("#Mobile1_m3 option:selected").val() == "") { 1123 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì ë ¥íì¸ì.', 300); 1124 return; 1125 } 1126 if (val.Mobile2_m3.value == "") { 1127 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì ë ¥íì¸ì.', 300); 1128 return; 1129 } 1130 if (IsNumber(val.Mobile2_m3.value) == false) { 1131 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 300); 1132 return; 1133 } 1134 if (val.Mobile3_m3.value == "") { 1135 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì ë ¥íì¸ì.', 300); 1136 return; 1137 } 1138 if (IsNumber(val.Mobile3_m3.value) == false) { 1139 popupOpen2('join_check', 'ìë 1ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 300); 1140 return; 1141 } 1142 1143 1144 //ìë 2 íì ì ê· ì¼ëë ì ê·ë¡ ì²ë¦¬ ìì ì¼ ê²½ì° ìì ì¼ë¡ ì²ë¦¬ 1145 if (val.mode_m4.value == "new") { //ì ê· ê°ì ì¼ ê²½ì° 1146 1147 //ìë 2 ì²´í¬ 1148 if (val.Name_m4.value != "" || val.ID_m4.value != "") { 1149 1150 if (val.Name_m4.value == "") { 1151 popupOpen2('join_check', 'ìë 2ì ì´ë¦ì ì ë ¥íì¸ì.', 500); 1152 return; 1153 } 1154 if (val.Birth_m4.value == "") { 1155 popupOpen2('join_check', 'ìë 2ì ìë ìì¼ì ì ë ¥íì¸ì.', 500); 1156 return; 1157 } 1158 if (val.ID_m4.value == "") { 1159 popupOpen2('join_check', 'ìë 2ì ìì´ë를 ì ë ¥íì¸ì.', 600); 1160 return; 1161 } 1162 MemberID = document.JoinForm.ID_m4; 1163 1164 if (hanCheck2(MemberID) == false) { 1165 popupOpen2('join_check', 'ìì´ëë ì문/ì«ìë§ ì¬ì©íì¤ì ììµëë¤.', 600); 1166 return; 1167 } 1168 if ($("input[id='Gender1_m4']:checked").length == 0 && $("input[id='Gender2_m4']:checked").length == 0) { 1169 popupOpen2('join_check', 'ìë 2ì ì±ë³ì ì ííì¸ì.', 600); 1170 return; 1171 } 1172 if (val.Pass_m4.value == "") { 1173 popupOpen2('join_check', 'ìë 2ì ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì.', 400); 1174 return; 1175 } 1176 if (val.Pass_m4.value.length < 6 || val.Pass_m4.value.length > 20) { 1177 popupOpen2('join_check', 'ìë 2ì ë¹ë°ë²í¸ë ì문ì문ì, ì«ìì¡°í©ì¼ë¡ 6~20ìë¡ ì ë ¥ íì¸ì.', 600); 1178 return; 1179 } 1180 if (val.Pass2_m4.value == "") { 1181 popupOpen2('join_check', 'ìë 2ì ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì.', 700); 1182 return; 1183 } 1184 if (val.Pass_m4.value != val.Pass2_m4.value) { 1185 popupOpen2('join_check', 'ìë 2ì ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤.', 700); 1186 return; 1187 } 1188 if (val.Email1_m4.value == "") { 1189 popupOpen2('join_check', 'ìë 2ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 800); 1190 return; 1191 } 1192 if (val.Email2_m4.value == "") { 1193 popupOpen2('join_check', 'ìë 2ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 800); 1194 return; 1195 } 1196 var Emailstr = val.Email1_m4.value + "@" + val.Email2_m4.value; 1197 1198 if (chkEmail(Emailstr) == false) { 1199 popupOpen2('join_check', 'ìë 2ì ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.', 800); 1200 return; 1201 } 1202 1203 if ($("#Mobile1_m4 option:selected").val() == "") { 1204 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì ë ¥íì¸ì.', 9
120400); 1205 return; 1206 } 1207 if (val.Mobile2_m4.value == "") { 1208 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì ë ¥íì¸ì.', 900); 1209 return; 1210 } 1211 if (IsNumber(val.Mobile2_m4.value) == false) { 1212 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 900); 1213 return; 1214 } 1215 if (val.Mobile3_m4.value == "") { 1216 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì ë ¥íì¸ì.', 900); 1217 return; 1218 } 1219 if (IsNumber(val.Mobile3_m4.value) == false) { 1220 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 900); 1221 return; 1222 } 1223 1224 m4_check = "Y"; 1225 1226 } 1227 1228 1229 1230 } else { //ìì ì¼ ê²½ì° 1231 1232 1233 //ìë 2 ì ë³´ìì 1234 if (val.Email1_m4.value == "") { 1235 popupOpen2('join_check', 'ìë 2ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 800); 1236 return; 1237 } 1238 if (val.Email2_m4.value == "") { 1239 popupOpen2('join_check', 'ìë 2ì ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì.', 800); 1240 return; 1241 } 1242 var Emailstr = val.Email1_m4.value + "@" + val.Email2_m4.value; 1243 1244 if (chkEmail(Emailstr) == false) { 1245 popupOpen2('join_check', 'ìë 2ì ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤.', 800); 1246 return; 1247 } 1248 1249 if ($("#Mobile1_m4 option:selected").val() == "") { 1250 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì ë ¥íì¸ì.', 900); 1251 return; 1252 } 1253 if (val.Mobile2_m4.value == "") { 1254 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì ë ¥íì¸ì.', 900); 1255 return; 1256 } 1257 if (IsNumber(val.Mobile2_m4.value) == false) { 1258 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 900); 1259 return; 1260 } 1261 if (val.Mobile3_m4.value == "") { 1262 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì ë ¥íì¸ì.', 900); 1263 return; 1264 } 1265 if (IsNumber(val.Mobile3_m4.value) == false) { 1266 popupOpen2('join_check', 'ìë 2ì í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì.', 900); 1267 return; 1268 } 1269 1270 1271 } 1272 1273 1274 $("input[name='TempGender_m3']").val($("input[name='Gender_m3']:checked").val()); 1275 $("input[name='TempMobile1_m3']").val($("#Mobile1_m3 option:selected").val()); 1276 $("input[name='TempGender_m4']").val($("input[name='Gender_m4']:checked").val()); 1277 $("input[name='TempMobile1_m4']").val($("#Mobile1_m4 option:selected").val()); 1278 1279 Yes = confirm("íì¬ ì ë ¥íì ì ë³´ë¡ ìë íìì íìì 보를 ìì íìê² ìµëê¹?"); 1280 if (Yes == true) { 1281 val.submit(); 1282 } 1283 1284 1285} 1286 1287function IDSearch_ajax() { 1288 1289 Name = document.IDSearchForm.Name.value; 1290 Email = document.IDSearchForm.Email.value; 1291 1292 try { 1293 xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); 1294 } 1295 catch (e) { 1296 try { 1297 xmlhttp = new XMLHttpRequest(); 1298 } 1299 catch (ee) { 1300 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 1301 } 1302 } 1303 1304 xmlhttp.onreadystatechange = IDSearch_ajax_Message; 1305 xmlhttp.open("GET", "/member/idpw_id.php?Name=" + encodeURI(Name) + "&Email=" + Email, false); 1306 xmlhttp.send(null); 1307} 1308 1309function IDSearch_ajax_Message() { 1310 if (xmlhttp.readyState == 4) { 1311 if (xmlhttp.status == 200) { 1312 //message.innerHTML = xmlhttp.responseText; 1313 popupOpen('idfind'); 1314 setTimeout(function () { 1315 message.innerHTML = xmlhttp.responseText; 1316 $(this).scrollTop(150); 1317 }, 150); 1318 } else { 1319 //alert(xmlhttp.status); 1320 } 1321 } 1322 1323} 1324 1325function IDSearch() { 1326 1327 val = document.IDSearchForm; 1328 1329 if (val.Name.value == "") { 1330 popupOpen2('join_check', 'ì±ëª ì ì ë ¥íì¸ì.', 150); 1331 return false; 1332 } 1333 1334 if (val.Email.value == "") { 1335 popupOpen2('join_check', 'ì´ë©ì¼ì ì ë ¥íì¸ì.', 150); 1336 return false; 1337 } 1338 1339 IDSearch_ajax(); 1340 return false; 1341 1342} 1343 1344function PWDSearch_ajax() { 1345 1346 ID = document.PWDSearchForm.ID.value; 1347 Name = document.PWDSearchForm.Name.value; 1348 Email = document.PWDSearchForm.Email.value; 1349 1350 1351 try { 1352 xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); 1353 } 1354 catch (e) { 1355 try { 1356 xmlhttp = new XMLHttpRequest(); 1357 } 1358 catch (ee) { 1359 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 1360 } 1361 } 1362 1363 xmlhttp.onreadystatechange = PWDSearch_ajax_Message; 1364 xmlhttp.open("GET", "/member/idpw_pw.php?ID=" + ID + "&Name=" + encodeURI(Name) + "&Email=" + Email, false); 1365 xmlhttp.send(null); 1366 1367} 1368 1369function PWDSearch_ajax_Message() { 1370 if (xmlhttp.readyState == 4) { 1371 if (xmlhttp.status == 200) { 1372 //message.innerHTML = xmlhttp.responseText; 1373 popupOpen('pwfind'); 1374 setTimeout(function () { 1375 message.innerHTML = xmlhttp.responseText; 1376 $(this).scrollTop(450); 1377 }, 150); 1378 } else { 1379 //alert(xmlhttp.status); 1380 } 1381 } 1382 1383} 1384 1385function PWDSearch() { 1386 val = document.PWDSearchForm; 1387 1388 if (val.ID.value == "") { 1389 popupOpen2('join_check', 'ìì´ë를 ì ë ¥íì¸ì.', 450); 1390 return false; 1391 } 1392 1393 if (val.Name.value == "") { 1394 popupOpen2('join_check', 'ì±ëª ì ì ë ¥íì¸ì.', 450); 1395 return false; 1396 } 1397 1398 if (val.Email.value == "") { 1399 popupOpen2('join_check', 'ì´ë©ì¼ì ì ë ¥íì¸ì.', 450); 1400 return false; 1401 } 1402 1403 PWDSearch_ajax(); 1404 return false; 1405} 1406 1407 1408function PWDSearch2_ajax() { 1409 1410 Name = document.PWDSearchForm2.Name.value; 1411 Email = document.PWDSearchForm2.Email.value; 1412 1413 1414 try { 1415 xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); 1416 } 1417 catch (e) { 1418 try { 1419 xmlhttp = new XMLHttpRequest(); 1420 } 1421 catch (ee) { 1422 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 1423 } 1424 } 1425 1426 xmlhttp.onreadystatechange = PWDSearch2_ajax_Message; 1427 xmlhttp.open("GET", "/member/idpw_pw2.php?Name=" + encodeURI(Name) + "&Email=" + Email, false); 1428 xmlhttp.send(null); 1429 1430} 1431 1432function PWDSearch2_ajax_Message() { 1433 if (xmlhttp.readyState == 4) { 1434 if (xmlhttp.status == 200) { 1435 //message.innerHTML = xmlhttp.responseText; 1436 popupOpen('pwfind'); 1437 setTimeout(function () { 1438 message.innerHTML = xmlhttp.responseText; 1439 $(this).scrollTop(750); 1440 }, 150); 1441 } else { 1442 //alert(xmlhttp.status); 1443 } 1444 } 1445 1446} 1447 1448 1449function PWDSearch2() { 1450 val = document.PWDSearchForm2; 1451 1452 1453 if (val.Name.value == "") { 1454 popupOpen2('join_check', 'ì±ëª ì ì ë ¥íì¸ì.', 750); 1455 return false; 1456 } 1457 1458 if (val.Email.value == "") { 1459 popupOpen2('join_check', 'ì´ë©ì¼ì ì ë ¥íì¸ì.', 750); 1460 return false; 1461 } 1462 1463 str = val.Email.value; 1464 var result = str.search("@"); 1465 1466 if (result < 1) { 1467 popupOpen2('join_check', 'ì´ë©ì¼ì ì ííê² ì ë ¥íì¸ì.', 750); 1468 return false; 1469 } 1470 1471 1472 PWDSearch2_ajax(); 1473 return false; 1474} 1475 1476function LoginSubmit() { 1477 val = document.LoginForm; 1478 1479 if (val.ID.value == "") { 1480 popupOpen2('join_check', 'ìì´ë를 ì ë ¥íì¸ì.', 100); 1481 return false; 1482 } 1483 if (val.Pass.value == "") { 1484 popupOpen2('join_check', 'ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì.', 100); 1485 return false; 1486 } 1487 1488 val.target = "ScriptFrame"; 1489 val.action = "../member/login_script.php"; 1490 //val.action = "https://www.hearsayenglish.com/member/login_script.php"; 1491} 1492 1493function LoginSubmitPop() { 1494 val = document.LoginFormPop; 1495 1496 if (val.ID.value == "") { 1497 alert("ìì´ë ëë ì´ë©ì¼ì ì ë ¥íì¸ì."); 1498 val.ID.focus(); 1499 return; 1500 } 1501 if (val.Pass.value == "") { 1502 alert("ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì."); 1503 val.Pass.focus(); 1504 return; 1505 } 1506 1507 val.submit(); 1508} 1509 1510function FocusMove() { 1511 document.LoginForm.Pass.focus(); 1512} 1513 1514function SearchForm() { 1515 if (Search.Sname.checked == false && Search.Ssubject.checked == false && Search.Scontents.checked == false) { 1516 popupOpen2('join_check', 'ê²ìë²ì를 ì§ì í´ì£¼ì¸ì.', 0); 1517 return false; 1518 } 1519 if (Search.search_str.value == "") { 1520 popupOpen2('join_check', 'ê²ìì´ë¥¼ ì ë ¥í´ì£¼ì¸ì.', 0); 1521 return false; 1522 } 1523 return; 1524} 1525 1526function SearchForm2() { 1527 if (Search.Ssubject.checked == false && Search.Scontents.checked == false) { 1528 popupOpen2('join_check', 'ê²ìë²ì를 ì§ì í´ì£¼ì¸ì.', 0); 1529 return false; 1530 } 1531 if (Search.search_str.value == "") { 1532 popupOpen2('join_check', 'ê²ìì´ë¥¼ ì ë ¥í´ì£¼ì¸ì.', 0); 1533 return false; 1534 } 1535 return; 1536} 1537 1538function ShowReceipt(tid) // ììì¦ ì¶ë ¥ 1539{ 1540 var receiptUrl = "https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid=" + tid + "&noMethod=1"; 1541 window.open(receiptUrl, "receipt", "width=430,height=700"); 1542} 1543 1544function show_receipt2(noTid, tStat) { // ê°ìê³ì¢ì ê¸ ììì¦ ì¶ë ¥ 1545 popupWin = window.open("https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid=" + noTid + "&noMethod=Whrudghk10&tranStat=" + tStat, "popWinName", "menubar=1,toolbar=0,width=450,height=667,resize=1,left
1545=252,top=116"); 1546} 1547 1548function ShowReceiptCash(CashTID) // íê¸ ììì¦ ì¶ë ¥ 1549{ 1550 var showreceiptUrl = "https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/Cash_mCmReceipt.jsp?noTid=" + CashTID + "&clpaymethod=22"; 1551 window.open(showreceiptUrl, "showreceipt", "width=380,height=540, scrollbars=no,resizable=no"); 1552} 1553 1554function CashReg(uid) { //íê¸ ììì¦ ì ì² 1555 window.open("/payment/pop_receipt01.php?uid=" + uid, "showreceipt", "width=600,height=650, scrollbars=yes,resizable=no"); 1556} 1557 1558function pop_docu01(uid) { 1559 window.open("/payment/pop_docu01.php?uid=" + uid, "docu", "width=800,height=800, scrollbars=yes,resizable=no"); 1560} 1561 1562function pop_docu02(uid) { 1563 window.open("/payment/pop_docu02.php?uid=" + uid, "docu", "width=800,height=800, scrollbars=yes,resizable=no"); 1564} 1565 1566function CaricaFoto(img) { 1567 foto1 = new Image(); 1568 foto1.src = (img); 1569 Controlla(img); 1570} 1571function Controlla(img) { 1572 if ((foto1.width != 0) && (foto1.height != 0)) { 1573 viewFoto(img); 1574 } 1575 else { 1576 funzione = "Controlla('" + img + "')"; 1577 intervallo = setTimeout(funzione, 20); 1578 } 1579} 1580function viewFoto(img) { 1581 largh = foto1.width + 30; 1582 altez = foto1.height + 20; 1583 1584 window_left = (screen.width - largh) / 2; 1585 window_top = (screen.height - altez) / 2; 1586 1587 stringa = "width=" + largh + ",height=" + altez + ",left=" + window_left + ",top=" + window_top + ",resizable=" + 1 + ",scrollbars=yes"; 1588 image_view = window.open(img, "", stringa); 1589 image_view.document.write("<html><head><meta HTTP-EQUIV='imagetoolbar' CONTENT='no'><title> </title></head><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0><img src=" + img + " onclick='self.close()' style=cursor:hand></body></html>"); 1590 image_view.document.close(); 1591} 1592 1593function DocumentDown(idx, attach) { 1594 var url = '../lecture_document.php?idx=' + idx + '&attach=' + attach; 1595 location.href = url; 1596} 1597 1598function DocumentDown2(attach) { 1599 var url = '../lecture_document2.php?attach=' + attach; 1600 location.href = url; 1601} 1602 1603function DocumentDownCha(idx, attach, Num) { 1604 var url = '../lecture_document_cha.php?idx=' + idx + '&attach=' + attach + '&Num=' + Num; 1605 location.href = url; 1606} 1607 1608function DocumentDownJpn(idx, attach, Num) { 1609 var url = '../lecture_document_jpn.php?idx=' + idx + '&attach=' + attach + '&Num=' + Num; 1610 location.href = url; 1611} 1612 1613function DocumentDownEng(idx, attach, Num) { 1614 var url = '../lecture_document_eng.php?idx=' + idx + '&attach=' + attach + '&Num=' + Num; 1615 location.href = url; 1616} 1617 1618function Mp3Down(idx, attach, LectureCode) { 1619 var url = '../mp3_document.php?idx=' + idx + '&attach=' + attach + "&LectureCode=" + LectureCode; 1620 location.href = url; 1621} 1622 1623function Mp3Down2(attach, LectureCode) { 1624 var url = '../mp3_document2.php?attach=' + attach + "&LectureCode=" + LectureCode; 1625 location.href = url; 1626} 1627 1628function Mp3Down3(idx, attach, LectureCode, LectureCode2) { 1629 var url = '../mp3_document3.php?idx=' + idx + '&attach=' + attach + "&LectureCode=" + LectureCode + "&LectureCode2=" + LectureCode2; 1630 location.href = url; 1631} 1632 1633function Mp3Down4(Num, attach, LectureCode) { 1634 var url = '../mp3_document4.php?Num=' + Num + '&attach=' + attach + "&LectureCode=" + LectureCode; 1635 location.href = url; 1636} 1637 1638function Mp3Down5(Num, idx, LectureCode) { 1639 var url = '../mp3_document5.php?Num=' + Num + '&idx=' + idx + "&LectureCode=" + LectureCode; 1640 location.href = url; 1641} 1642 1643function OrderCancel(Num) { 1644 Yes = confirm("주문ì ì·¨ì íìê² ìµëê¹?"); 1645 if (Yes == true) { 1646 document.OrderCancelForm.uid2.value = Num; 1647 document.OrderCancelForm.submit(); 1648 } 1649} 1650 1651function LoginNeed(ReturnPage) { 1652 1653 LoginConfirm = confirm("ë¡ê·¸ì¸ì´ íìí ìë¹ì¤ ì ëë¤.\n\në¡ê·¸ì¸ íìê² ìµëê¹?"); 1654 if (LoginConfirm == true) { 1655 location.href = "../member/login.php?ReturnPage=" + ReturnPage; 1656 } 1657} 1658 1659function Join1Ok() { 1660 1661 val = document.JoinForm1; 1662 1663 1664 if (val.Name.value == "") { 1665 alert("ì´ë¦ì ì ë ¥íì¸ì."); 1666 val.Name.focus(); 1667 return; 1668 } 1669 if (val.Birth.value == "") { 1670 alert("ìë ìì¼ì ì ë ¥íì¸ì."); 1671 return; 1672 } 1673 if (val.ID.value == "") { 1674 alert("ìì´ë를 ì ë ¥íì¸ì."); 1675 val.ID.focus(); 1676 return; 1677 } 1678 1679 MemberID = document.JoinForm1.ID;
1680 1681 if (hanCheck(MemberID) == false) { 1682 return; 1683 } 1684 1685 1686 if (val.Pass.value == "") { 1687 alert("ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì."); 1688 val.Pass.focus(); 1689 return; 1690 } 1691 1692 if (val.Pass.value.length < 6 || val.Pass.value.length > 20) { 1693 alert("ë¹ë°ë²í¸ë ì문ì문ì, ì«ìì¡°í©ì¼ë¡ 6~20ìë¡ ì ë ¥ íì¸ì."); 1694 val.Pass.focus(); 1695 return; 1696 } 1697 if (val.Pass2.value == "") { 1698 alert("ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì."); 1699 val.Pass2.focus(); 1700 return; 1701 } 1702 if (val.Pass.value != val.Pass2.value) { 1703 alert("ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤."); 1704 val.Pass.focus(); 1705 return; 1706 } 1707 if (val.Email1.value == "") { 1708 alert("ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì."); 1709 val.Email1.focus(); 1710 return; 1711 } 1712 1713 if (val.Email2.value == "") { 1714 alert("ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì."); 1715 val.Email2.focus(); 1716 return; 1717 } 1718 1719 var Emailstr = val.Email1.value + "@" + val.Email2.value; 1720 1721 if (chkEmail(Emailstr) == false) { 1722 alert("ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤") 1723 val.Email1.focus(); 1724 return; 1725 } 1726 1727 1728 if (val.Mobile1.value == "") { 1729 alert("í¸ëí°ì ì ë ¥íì¸ì."); 1730 val.Mobile1.focus(); 1731 return; 1732 } 1733 if (val.Mobile2.value == "") { 1734 alert("í¸ëí°ì ì ë ¥íì¸ì."); 1735 val.Mobile2.focus(); 1736 return; 1737 } 1738 if (IsNumber(val.Mobile2.value) == false) { 1739 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 1740 val.Mobile2.focus(); 1741 return; 1742 } 1743 if (val.Mobile3.value == "") { 1744 alert("í¸ëí°ì ì ë ¥íì¸ì."); 1745 val.Mobile3.focus(); 1746 return; 1747 } 1748 if (IsNumber(val.Mobile3.value) == false) { 1749 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 1750 val.Mobile3.focus(); 1751 return; 1752 } 1753 if (val.Agree.checked == false) { 1754 alert("ì½ê´ ë° ì ì± ì ëìíì ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 1755 val.Agree.focus(); 1756 return; 1757 } 1758 1759 val.submit(); 1760} 1761 1762function ID_Check_event1() { 1763 1764 MemberID = document.JoinForm1.ID; 1765 1766 if (MemberID.value == "") { 1767 alert("ìì´ë를 ì ë ¥íì¸ì."); 1768 MemberID.focus(); 1769 return; 1770 } 1771 1772 if (hanCheck(MemberID) == false) { 1773 return; 1774 } 1775 1776 if (MemberID.value.length < 6 || MemberID.value.length > 20) { 1777 alert("ìì´ëë 6ì ì´ì 20ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤."); 1778 } else { 1779 window.open('../member/idsearch.php?MemberID=' + MemberID.value, 'idcheck', 'status=yes,width=350,height=153'); 1780 } 1781} 1782 1783function Join2Ok() { 1784 1785 val = document.JoinForm1; 1786 1787 1788 if (val.Name.value == "") { 1789 alert("ì´ë¦ì ì ë ¥íì¸ì."); 1790 val.Name.focus(); 1791 return; 1792 } 1793 if (val.Birth.value == "") { 1794 alert("ìë ìì¼ì ì ë ¥íì¸ì."); 1795 return; 1796 } 1797 if (val.ID.value == "") { 1798 alert("ìì´ë를 ì ë ¥íì¸ì."); 1799 val.ID.focus(); 1800 return; 1801 } 1802 if (val.Pass.value == "") { 1803 alert("ë¹ë°ë²í¸ë¥¼ ì ë ¥íì¸ì."); 1804 val.Pass.focus(); 1805 return; 1806 } 1807 if (val.Pass.value.length < 6 || val.Pass.value.length > 20) { 1808 alert("ë¹ë°ë²í¸ë ì문ì문ì, ì«ìì¡°í©ì¼ë¡ 6~20ìë¡ ì ë ¥ íì¸ì."); 1809 val.Pass.focus(); 1810 return; 1811 } 1812 if (val.Pass2.value == "") { 1813 alert("ë¹ë°ë²í¸ íì¸ì ì ë ¥íì¸ì."); 1814 val.Pass2.focus(); 1815 return; 1816 } 1817 if (val.Pass.value != val.Pass2.value) { 1818 alert("ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤."); 1819 val.Pass.focus(); 1820 return; 1821 } 1822 if (val.Email1.value == "") { 1823 alert("ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì."); 1824 val.Email1.focus(); 1825 return; 1826 } 1827 1828 if (val.Email2.value == "") { 1829 alert("ì´ë©ì¼ì£¼ì를 ì ë ¥íì¸ì."); 1830 val.Email2.focus(); 1831 return; 1832 } 1833 1834 var Emailstr = val.Email1.value + "@" + val.Email2.value; 1835 1836 if (chkEmail(Emailstr) == false) { 1837 alert("ì´ë©ì¼ 주ìê° ì í¨íì§ ììµëë¤") 1838 val.Email1.focus(); 1839 return; 1840 } 1841 1842 1843 if (val.Mobile1.value == "") { 1844 alert("í¸ëí°ì ì ë ¥íì¸ì."); 1845 val.Mobile1.focus(); 1846 return; 1847 } 1848 if (val.Mobile2.value == "") { 1849 alert("í¸ëí°ì ì ë ¥íì¸ì."); 1850 val.Mobile2.focus(); 1851 return; 1852 } 1853 if (IsNumber(val.Mobile2.value) == false) { 1854 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 1855 val.Mobile2.focus(); 1856 return; 1857 } 1858 if (val.Mobile3.value == "") { 1859 alert("í¸ëí°ì ì ë ¥íì¸ì."); 1860 val.Mobile3.focus(); 1861 return; 1862 } 1863 if (IsNumber(val.Mobile3.value) == false) { 1864 alert("í¸ëí°ì ì«ìë§ ì ë ¥íì¸ì."); 1865 val.Mobile3.focus(); 1866 return; 1867 } 1868 if (val.Agree.checked == false) { 1869 alert("ì½ê´ ë° ì ì± ì ëìíì ì¼ íìê°ì ì´ ê°ë¥í©ëë¤."); 1870 val.Agree.focus(); 1871 return; 1872 } 1873 1874 val.submit(); 1875} 1876 1877function ID_Check_event2() { 1878 1879 MemberID = document.JoinForm2.ID; 1880 1881 if (MemberID.value == "") { 1882 alert("ìì´ë를 ì ë ¥íì¸ì."); 1883 MemberID.focus(); 1884 return; 1885 } 1886 1887 if (hanCheck(MemberID) == false) { 1888 return; 1889 } 1890 1891 if (MemberID.value.length < 6 || MemberID.value.length > 20) { 1892 alert("ìì´ëë 6ì ì´ì 20ì ì´ë´ë¡ ì ë ¥íì ì¼ í©ëë¤."); 1893 } else { 1894 window.open('../member/idsearch.php?MemberID=' + MemberID.value, 'idcheck', 'status=yes,width=350,height=153'); 1895 } 1896} 1897 1898 1899function CheckEmailDomain(obj) { 1900 1901 MailDomain = $("#" + obj + " option:selected").val(); 1902 1903 if (MailDomain == "") { 1904 $("input[id='Email2']").val(""); 1905 } else { 1906 $("input[id='Email2']").val(MailDomain); 1907 } 1908 1909} 1910 1911 1912function CheckEmailDomainPop(obj) { 1913 1914 MailDomain = $("#" + obj + " option:selected").val(); 1915 1916 if (MailDomain == "") { 1917 $("input[id='Email_2']").val(""); 1918 } else { 1919 $("input[id='Email_2']").val(MailDomain); 1920 } 1921 1922} 1923 1924function SamplePlayerWin2(idx) { 1925 var url = '../starplayer/sample_player2.php?idx=' + idx; 1926 window.open(url, 'SamplePlayerWin', 'scrollbars=no, resizable=no, width=750, height=610'); 1927} 1928 1929function ReviewSave(LectureCode) { 1930 1931 val = document.ReviewSaveForm; 1932 1933 if (val.ReviewCount.value > 1) { 1934 alert("ë³µìµê°ìë ìµë 2ê°ê¹ì§ ì ì¥ì´ ê°ë¥í©ëë¤."); 1935 return; 1936 } 1937 1938 val.LectureCode.value = LectureCode; 1939 val.mode.value = "new"; 1940 1941 SaveConfirm = confirm("íì¬ ë³µìµê°ì를 ì ì¥íìê² ìµëê¹?"); 1942 if (SaveConfirm == true) { 1943 val.submit(); 1944 } 1945} 1946 1947function ReviewDelete(idx) { 1948 1949 val = document.ReviewSaveForm; 1950 1951 val.idx.value = idx; 1952 val.mode.value = "del"; 1953 1954 SaveConfirm = confirm("ì ì¥ë ë³µìµê°ì를 ìì íìê² ìµëê¹?"); 1955 if (SaveConfirm == true) { 1956 val.submit(); 1957 } 1958} 1959 1960function ReviewPlay(idx) { 1961 1962 val = document.ReviewPlayForm; 1963 1964 val.idx.value = idx; 1965 1966 val.submit(); 1967 1968} 1969 1970function CouponRegi() { 1971 window.open("pop_coupon01.php", "coupon", "width=500,height=350, scrollbars=no,resizable=no"); 1972} 1973 1974function BookCouponRegi() { 1975 window.open("pop_bookcoupon01.php", "coupon", "width=500,height=350, scrollbars=no,resizable=no"); 1976} 1977 1978function BookCouponRegi_nomember() { 1979 window.open("../event/pop_nomember_bookcoupon01.php", "coupon", "width=500,height=350, scrollbars=no,resizable=no"); 1980} 1981 1982function BookCouponGet_nomember() { 1983 window.open("../event/pop_coupondown.php", "coupon", "width=500,height=350, scrollbars=no,resizable=no"); 1984} 1985 1986function EventCounselCheck() { 1987 1988 val = document.CounselForm1; 1989 1990 1991 if (val.Name.value == "") { 1992 alert("ì´ë¦ì ì ë ¥íì¸ì."); 1993 val.Name.focus(); 1994 return; 1995 } 1996 1997 if (val.Mobile1.value == "") { 1998 alert("ì°ë½ì²ë¥¼ ì ë ¥íì¸ì."); 1999 val.Mobile1.focus(); 2000 return; 2001 } 2002 if (IsNumber(val.Mobile1.value) == false) { 2003 alert("ì°ë½ì²ë ì«ìë§ ì ë ¥íì¸ì.");
2004 val.Mobile2.focus(); 2005 return; 2006 } 2007 if (val.Mobile2.value == "") { 2008 alert("ì°ë½ì²ë¥¼ ì ë ¥íì¸ì."); 2009 val.Mobile2.focus(); 2010 return; 2011 } 2012 if (IsNumber(val.Mobile2.value) == false) { 2013 alert("ì°ë½ì²ë ì«ìë§ ì ë ¥íì¸ì."); 2014 val.Mobile2.focus(); 2015 return; 2016 } 2017 if (val.Mobile3.value == "") { 2018 alert("ì°ë½ì²ë¥¼ ì ë ¥íì¸ì."); 2019 val.Mobile3.focus(); 2020 return; 2021 } 2022 if (IsNumber(val.Mobile3.value) == false) { 2023 alert("ì°ë½ì²ë ì«ìë§ ì ë ¥íì¸ì."); 2024 val.Mobile3.focus(); 2025 return; 2026 } 2027 if (val.Agree.checked == false) { 2028 alert("ê°ì¸ì ë³´ ìì§ ë° ì´ì©ì ëì íì ì¼ í©ëë¤."); 2029 val.Agree.focus(); 2030 return; 2031 } 2032 2033 Yes = confirm("íì¬ ì ë ¥íì ì ë³´ë¡ ì ì² íìê² ìµëê¹?"); 2034 if (Yes == true) { 2035 val.submit(); 2036 } 2037} 2038 2039 2040function OthersLogin() { 2041 alert("íì¬ë ID ëë ì´ë©ì¼ ë¡ê·¸ì¸ë§ ê°ë¥í©ëë¤."); 2042} 2043 2044 2045//íì´ì¤ë¶ ê´ë ¨ í¨ì ------------------------------------------------------------------------------------ 2046 2047(function (d, s, id) { 2048 var js, fjs = d.getElementsByTagName(s)[0]; 2049 if (d.getElementById(id)) return; 2050 js = d.createElement(s); js.id = id; 2051 js.src = "//connect.facebook.net/en_US/sdk.js"; 2052 fjs.parentNode.insertBefore(js, fjs); 2053}(document, 'script', 'facebook-jssdk')); 2054 2055 2056//ì´ê¸°íì ìí ì²´í¬ 2057function statusChangeCallback(response) { 2058 2059 if (response.status === 'connected') { 2060 // Logged into your app and Facebook. 2061 FB.logout(); 2062 /* 2063 $("#FacebookJoinBtn01").hide(); 2064 $("#FacebookJoinBtn02").show(); 2065 2066 $("#FacebookJoinBtn01").hide(); 2067 $("#FacebookJoinBtn02").show(); 2068 */ 2069 } else if (response.status === 'not_authorized') { 2070 // The person is logged into Facebook, but not your app. 2071 FB.logout(); 2072 /* 2073 $("#FacebookJoinBtn01").hide(); 2074 $("#FacebookJoinBtn02").show(); 2075 2076 $("#FacebookJoinBtn01").show(); 2077 $("#FacebookJoinBtn02").hide(); 2078 */ 2079 } else { 2080 // The person is not logged into Facebook, so we're not sure if 2081 // they are logged into this app or not. 2082 /* 2083 $("#FacebookJoinBtn01").show(); 2084 $("#FacebookJoinBtn02").hide(); 2085 2086 $("#FacebookJoinBtn01").show(); 2087 $("#FacebookJoinBtn02").hide(); 2088 */ 2089 } 2090} 2091 2092//íìê°ì ì ìí ì²´í¬ 2093function JoinstatusChangeCallback(response) { 2094 2095 if (response.status === 'connected') { 2096 // Logged into your app and Facebook. 2097 JoinApplyAPI(); 2098 } else if (response.status === 'not_authorized') { 2099 // The person is logged into Facebook, but not your app. 2100 Join_FacebookLoginOpen(); 2101 } else { 2102 // The person is not logged into Facebook, so we're not sure if 2103 // they are logged into this app or not. 2104 Join_FacebookLoginOpen(); 2105 } 2106} 2107 2108//íìê°ì ì ë¡ê·¸ì¸ ìí ì²´í¬ 2109function JoincheckLoginState() { 2110 FB.getLoginStatus(function (response) { 2111 JoinstatusChangeCallback(response); 2112 }); 2113} 2114 2115 2116//íìê°ì ì íì´ì¤ë¶ ë¡ê·¸ì¸ì°½ ì´ê¸° 2117function Join_FacebookLoginOpen() { 2118 2119 FB.login(function (response) { 2120 // handle the response 2121 JoinstatusChangeCallback(response); 2122 }, { scope: 'public_profile,email' }); 2123 2124} 2125 2126//íìê°ì ì íì´ì¤ë¶ìì ë°ì ì ë³´ ì²ë¦¬ 2127function JoinApplyAPI() { 2128 2129 FB.api('/me?fields=id,name,email', function (response) { 2130 $("#Name").val(response.name); 2131 if (response.email == undefined) { 2132 alert("íì´ì¤ë¶ ì´ë©ì¼ ì 보를 íì¸í ì ììµëë¤. [ë°ë¡ ê°ì í기]를 ì´ì©íì¸ì.\n\n(ì´ë©ì¼ 미ì¸ì¦, ì´ë©ì¼ 미ë±ë¡ ì ì¬ì )"); 2133 } else { 2134 if (response.email.indexOf("@") > 0 && response.email.length > 0) { 2135 var EmailArrary = response.email.split('@'); 2136 $("#Email1").val(EmailArrary[0]); 2137 $("#Email2").val(EmailArrary[1]); 2138 $("#FacebookID").val(response.id); 2139 $("#FacebookJoin").val('Y'); 2140 $("#PassTR").hide(); 2141 $("#PassTR2").hide(); 2142 2143 JoinOk(); 2144 } 2145 } 2146 2147 }); 2148} 2149 2150 2151 2152//ë¡ê·¸ì¸ì ë¡ê·¸ì¸ ìí ì²´í¬ 2153function Login_checkLoginState() { 2154 FB.getLoginStatus(function (response) { 2155 LogintatusChangeCallback(response); 2156 }); 2157} 2158 2159 2160//ë¡ê·¸ì¸ì íì´ì¤ë¶ ë¡ê·¸ì¸ì°½ ì´ê¸° 2161function Login_FacebookLoginOpen() { 2162 2163 FB.login(function (response) { 2164 // handle the response 2165 LogintatusChangeCallback(response); 2166 }, { scope: 'public_profile,email' }); 2167 2168} 2169 2170//ë¡ê·¸ì¸ì ìí ì²´í¬ 2171function LogintatusChangeCallback(response) { 2172 2173 if (response.status === 'connected') { 2174 // Logged into your app and Facebook. 2175 LoginApplyAPI(); 2176 } else if (response.status === 'not_authorized') { 2177 // The person is logged into Facebook, but not your app. 2178 Login_FacebookLoginOpen(); 2179 } else { 2180 // The person is not logged into Facebook, so we're not sure if 2181 // they are logged into this app or not. 2182 Login_FacebookLoginOpen(); 2183 } 2184} 2185 2186//ë¡ê·¸ì¸ì íì´ì¤ë¶ìì ë°ì ì ë³´ ì²ë¦¬ 2187function LoginApplyAPI() { 2188 2189 $("#FacebookLoginID").val(''); 2190 $("#FacebookLoginEmail").val(''); 2191 $("#FacebookLoginName").val(''); 2192 2193 2194 FB.api('/me?fields=id,name,email', function (response) { 2195 2196 if (response.email == undefined) { 2197 alert("íì´ì¤ë¶ ì´ë©ì¼ ì 보를 íì¸í ì ììµëë¤. [ì¼ë° ë¡ê·¸ì¸]ì ì´ì©íì¸ì.\n\n(ì´ë©ì¼ 미ì¸ì¦, ì´ë©ì¼ 미ë±ë¡ ì ì¬ì )"); 2198 } else { 2199 $("#FacebookLoginEmail").val(response.email); 2200 $("#FacebookLoginName").val(response.name); 2201 $("#FacebookLoginID").val(response.id); 2202 2203 FacebookLoginForm.submit(); 2204 2205 } 2206 2207 }); 2208} 2209 2210//íì´ì¤ë¶ ê´ë ¨ í¨ì ------------------------------------------------------------------------------------- 2211 2212//ì¬ì ìì ë³´íì¸ 2213function company_code() { 2214 var companycode = "1298655775"; 2215 popupWin = window.open("https://www.ftc.go.kr/bizCommPop.do?wrkr_no=" + companycode, "popWinName", "menubar=1,toolbar=0,width=900,height=640,resize=1,left
2215=600,top=100"); 2216}
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.