1 2 3// íë©´ íë ì¶ì 4var zoomRate = 10; 5var curRate = 100; 6var minRate = 100; 7var maxRate = 200; 8 9function zoomInOut(value) { 10 if (((value == "plus")&&(curRate >= maxRate))||((value == "minus") && (curRate <= minRate))) { 11 return; 12 } 13 if (value == "plus") { 14 curRate = parseInt(curRate) + parseInt(zoomRate); 15 } else if (value == "minus") { 16 curRate = parseInt(curRate) - parseInt(zoomRate); 17 } else { 18 curRate = 100; 19 } 20 document.body.style.zoom = curRate + '%'; 21 try 22 { 23 var obj = document.getElementById('flash_visual').getElementsByTagName('object')[0]; 24 25 if (curRate==100) 26 { 27 obj.style.display = 'block'; 28 } 29 else 30 { 31 obj.style.display = 'none'; 32 } 33 } 34 catch (e) 35 { console.log(""); 36 } 37} 38 39// íë¦°í¸ 40function printAreaAction(){ 41 //window.onbeforeprint = beforePrint; 42 //window.onafterprint = afterPrint; 43 window.print(); 44} 45// í린í¸í ë´ì© 46var initBody; 47function beforePrint(){ 48// initBody = document.body.innerHTML; 49 document.body.innerHTML = contents.innerHTML; 50 51} 52function afterPrint(){ 53// document.body.innerHTML = initBody; 54 window.location.reload(); 55} 56 57 58// ì¦ê²¨ì°¾ê¸° 59function bookmarkSite(title, url){ 60 try{ 61 window.external.AddFavorite(url, title); 62 }catch (e) { 63 alert("Ctrl+D í¤ë¥¼ ëë¬ì ë¶ë§í¬ë¥¼ ì¶ê°í ì ììµëë¤."); 64 } 65} 66 67//ìë¸ë©ë´ 보기 68var sMenu_launch = ""; 69function detailSubMenu(name) 70{ 71 try{ 72 submenu = document.getElementById(name).style; 73 if(sMenu_launch != submenu) 74 { 75 if(sMenu_launch != "") 76 { 77 sMenu_launch.display = "none"; 78 } 79 submenu.display = "block"; 80 sMenu_launch = submenu; 81 $(".question > a").addClass('open'); 82 $(".question > a").removeClass('close'); 83 } 84 else 85 { 86 submenu.display = "none"; 87 $(".question > a").addClass('close'); 88 $(".question > a").removeClass('open'); 89 sMenu_launch = ""; 90 } 91 }catch (e) { console.log(""); } 92} 93 94// íì ì°½ openWin(íì¼ê²½ë¡, íê², ëì´, ëì´, ì¤í¬ë¡¤ë°ì¬ë¶, ); 95function openWin (url, target, width, height, scrollbars, pos, resize) 96{ 97 var uri = url.replace(/(&)/gi, "&"); 98 var xy_pos = ""; 99 100 if (pos) 101 { 102 xy_pos = ",left=" + (Math.round(screen.width/2) - Math.round(width/2)); 103 xy_pos += ",top=" + (Math.round(screen.height/3) - Math.round(height/3)); 104 } 105 106 var remote = window.open(uri, target, "width=" + width 107 + ",height=" + height 108 + ",scrollbars=" + scrollbars 109 + ",resizable=" + resize 110 + xy_pos 111 + ",toolbar=no,location=no" 112 + ",directories=no,menubar=no,status=yes"); 113 114 remote.focus(); 115 return remote; 116} 117 118 119/* Initialize Top Menu */ 120function initTopMenu(select1, select2) 121{ 122 var focus = false; 123 var root = document.getElementById('head_menu'); 124 var delay = 3000; 125 var menu = new Array(); 126 var item = new Array(); 127 128 var src2menu = new Array(); 129 var src2item = new Array(); 130 131 var getSrc = function (src) 132 { 133 var file = src.split('/'); 134 var name = file[(file.length-1)].split('.'); 135 name = src.replace(file[(file.length-1)], name[0] + '_on.' + name[1]); 136 137 return {on:name, off:src}; 138 }; 139 140 for (var i=0; i<root.childNodes.length; i++) 141 { 142 if (root.childNodes[i].nodeName!='LI') { continue; } 143 144 for (var j=0; j<root.childNodes[i].childNodes.length; j++) 145 { 146 if (root.childNodes[i].childNodes[j].nodeType!=1) { continue; } 147 if (root.childNodes[i].childNodes[j].nodeName=='A') 148 { 149 menu.push(root.childNodes[i].childNodes[j]); 150 src2menu.push(getSrc(root.childNodes[i].childNodes[j].getElementsByTagName('img')[0].src)); 151 152 var sub_menu = root.childNodes[i].getElementsByTagName('ul')[0]; 153 var src_item = new Array(); 154 155 if (sub_menu) 156 { 157 sub_menu.style.display = 'block'; 158 var offset = 0; 159 160 for (var k in sub_menu.childNodes) 161 { 162 if (sub_menu.childNodes[k].nodeName=='LI') 163 { 164 offset += parseInt(sub_menu.childNodes[k].offsetWidth, 10); 165 src_item.push(getSrc(sub_menu.childNodes[k].getElementsByTagName('img')[0].src)); 166 } 167 } 168 169 sub_menu.style.width = offset + "px"; 170 sub_menu.style.display = "none"; 171 172 for (var l in sub_menu.childNodes) 173 { 174 if (typeof(sub_menu.childNodes[l])=='object' && sub_menu.childNodes[l].nodeType==3 && sub_menu.childNodes[l].nodeName=='#text') 175 { 176 sub_menu.removeChild(sub_menu.childNodes[l]); 177 } 178 } 179 180 item.push(sub_menu); 181 } 182 else 183 { 184 item.push(''); 185 } 186 187 src2item.push(src_item); 188 } 189 } 190 } 191 192 var getIndex = function (obj, self) 193 { 194 for (var i in obj) { if (obj[i]==self) { return i; } } 195 } 196 197 for (var i in menu) 198 { 199 menu[i].onfocus = menu[i].onmouseover = function () 200 { 201 root.className = 'head-menu'; 202 focus = true; 203 204 var index = getIndex(menu, this); 205 this.getElementsByTagName('img')[0].setAttribute('src', src2menu[index].on);
206 this.className = 'on'; 207 208 for (var i in item) 209 { 210 if (item[i].nodeName!='UL') { continue; } 211 212 if (i==index) 213 { 214 root.className = 'head-menu-on'; 215 item[i].style.display = 'block'; 216 } 217 else 218 { 219 item[i].style.display = 'none'; 220 } 221 } 222 }; 223 } 224 225 for (var i in item) 226 { 227 if (item[i].nodeName!='UL') { continue; } 228 229 var item_a = item[i].getElementsByTagName('a'); 230 231 for (var j in item_a) 232 { 233 item_a[j].i = i; 234 235 item_a[j].onmouseover = item_a[j].onfocus = function () 236 { 237 root.className = 'head-menu-on'; 238 focus = true; 239 240 241 var j = this.i; 242 243 if (item[j].nodeName=='UL') 244 { 245 for (var k in item[j].childNodes) 246 { 247 if (!item[j].childNodes[k]) { continue; } 248 if (item[j].childNodes[k].nodeName!='LI') { continue; } 249 250 if (item[j].childNodes[k]==this.parentNode) 251 { 252 menu[j].getElementsByTagName('img')[0].setAttribute('src', src2menu[j].on); 253 menu[j].className = 'on'; 254 item[j].childNodes[k].getElementsByTagName('img')[0].setAttribute('src', src2item[j][k].on); 255 } 256 else 257 { 258 item[j].childNodes[k].getElementsByTagName('img')[0].setAttribute('src', src2item[j][k].off); 259 } 260 } 261 } 262 }; 263 } 264 } 265 266 267 // selected 268 var selected = function () 269 { 270 var s1 = parseInt((select1-1), 10); 271 var s2 = parseInt((select2-1), 10); 272 273 for (var i in menu) 274 { 275 if (i==s1) 276 { 277 root.className = 'head-menu-on'; 278 menu[i].getElementsByTagName('img')[0].setAttribute('src', src2menu[i].on); 279 menu[i].className = 'on'; 280 281 focus = true; 282 283 if (item[i]) 284 { 285 item[i].style.display = 'block'; 286 287 for (var j in item[i].childNodes) 288 { 289 if (!item[i].childNodes[j]) { continue; } 290 if (item[i].childNodes[j].nodeName!='LI') { continue; } 291 292 if (j==s2) 293 { 294 item[i].childNodes[j].getElementsByTagName('img')[0].setAttribute('src', src2item[i][j].on); 295 } 296 else 297 { 298 item[i].childNodes[j].getElementsByTagName('img')[0].setAttribute('src', src2item[i][j].off); 299 } 300 } 301 } 302 } 303 else 304 { 305 menu[i].getElementsByTagName('img')[0].setAttribute('src', src2menu[i].off); 306 menu[i].className = ''; 307 } 308 } 309 }; 310 311 selected(); 312 313 var a = root.getElementsByTagName("a"); 314 315 for (var i in a) 316 { 317 a[i].onmouseout = a[i].onblur = function () 318 { 319 for (var i in menu) 320 { 321 menu[i].getElementsByTagName('img')[0].setAttribute('src', src2menu[i].off); 322 menu[i].className = ''; 323 324 if (item[i]) 325 { 326 for (var j in item[i].childNodes) 327 { 328 if (!item[i].childNodes[j]) {continue;} 329 if (item[i].childNodes[j].nodeName=='LI') 330 { 331 item[i].childNodes[j].getElementsByTagName('img')[0].setAttribute('src', src2item[i][j].off); 332 } 333 } 334 } 335 336 } 337 338 focus = false; 339 340 setTimeout(function() 341 { 342 if (focus==false) 343 { 344 for (var i in item) 345 { 346 if (item[i].nodeName!='UL') { continue; } 347 item[i].style.display = 'none'; 348 } 349 350 root.className = 'head-menu'; 351 352 selected(); 353 } 354 } 355 , delay); 356 } 357 } 358} 359 360// 1ì°¨ë©ë´ íì±í 361function initNavigation(seq) { 362 var nav = document.getElementById("head_menu"); 363 var allB = nav.getElementsByTagName("a"); 364 for(var k = 0; k < allB.length; k++) { 365 var str = allB.item(k) + ""; 366 if(str.substr(str.length-10,2) == seq){ 367 allB.item(k).className = "active"; 368 return false; 369 } 370 } 371} 372 373// 1ì°¨ë©ë´ select íì±í 374function init1DepthComboMenu(seq) { 375 var nav = document.getElementById("head_menu_depth1"); 376 var allB = nav.getElementsByTagName("a"); 377 for(var k = 0; k < allB.length; k++) { 378 var str = allB.item(k) + ""; 379 if(str.substr(str.length-10,2) == seq){ 380 var id = '#'+allB.item(k).parentNode.id; 381 var obj = $(id).clone(); 382 $(id).after(obj); 383 allB.item(k).parentNode.className = "active"; 384 return false; 385 } 386 } 387} 388 389// 2ì°¨ë©ë´ select íì±í 390function init2DepthComboMenu(seq) { 391 var nav = document.getElementById("head_menu_depth2"); 392 var allB = nav.getElementsByTagName("a"); 393 for(var k = 0; k < allB.length; k++) { 394 var str = allB.item(k) + ""; 395 if(str.substr(str.length-10,4) == seq){ 396 var id = '#'+allB.item(k).parentNode.id; 397 var obj = $(id).clone(); 398 $(id).after(obj); 399 allB.item(k).parentNode.className = "active"; 400 return false; 401 } 402 } 403} 404 405// 3ì°¨ë©ë´ select íì±í 406function init3DepthComboMenu(seq) { 407 var nav = document.getElementById("head_menu_depth3"); 408 var allB = nav.getElementsByTagName("a"); 409 for(var k = 0; k < allB.length; k++) { 410 var str = allB.item(k) + ""; 411 if(str.substr(str.length-10,6) == seq){ 412 var id = '#'+allB.item(k).parentNode.id; 413 var obj = $(id).clone(); 414 $(id).after(obj); 415 allB.item(k).parentNode.className = "active"; 416 return false; 417 } 418 } 419} 420 421// 4ì°¨ë©ë´ select íì±í 422function init4DepthComboMenu(seq) { 423 var nav = document.getElementById("head_menu_depth4"); 424 var allB = nav.getElementsByTagName("a"); 425 for(var k = 0; k < allB.length; k++) { 426 var str = allB.item(k) + ""; 427 if(str.substr(str.length-10,8) == seq){ 428 var id = '#'+allB.item(k).parentNode.id; 429 var obj = $(id).clone(); 430 $(id).after(obj); 431 allB.item(k).parentNode.className = "active"; 432 return false; 433 } 434 } 435} 436 437// 5ì°¨ë©ë´ select íì±í 438function init5DepthComboMenu(seq) { 439 var nav = document.getElementById("head_menu_depth5"); 440 var allB = nav.getElementsByTagName("a"); 441 for(var k = 0; k < allB.length; k++) { 442 var str = allB.item(k) + ""; 443 if(str.substr(str.length-10,10) == seq){ 444 var id = '#'+allB.item(k).parentNode.id; 445 var obj = $(id).clone(); 446 $(id).after(obj); 447 allB.item(k).parentNode.className = "active"; 448 return false; 449 } 450 } 451} 452 453// 모ë°ì¼ 1ì°¨ë©ë´ íì±í 454function initNavigationMbl(seq) { 455 var nav = document.getElementById("head_menu_all"); 456 var allB = nav.getElementsByTagName("a"); 457 for(var k = 0; k < allB.length; k++) { 458 var str = allB.item(k) + ""; 459 if(str.substr(str.length-10,2) == seq){ 460 allB.item(k).className = "active"; 461 $("div.submenu"+seq).attr("style","display:block"); 462 return false; 463 } 464 } 465} 466 467// ë©ë´ ë¤ë¹ê²ì´ì 468function initNavigation2(seq, seq2) { 469 var nav = document.getElementById("head_menu");
470 nav.menu = new Array(); 471 nav.current = null; 472 nav.menuseq = 0; 473 var navLen = nav.childNodes.length; 474 var menuImg; 475 476 var allA = nav.getElementsByTagName("a"); 477 for(var k = 0; k < allA.length; k++) { 478 allA.item(k).onmouseover = allA.item(k).onfocus = function () { 479 nav.isOver = true; 480 } 481 allA.item(k).onmouseout = allA.item(k).onblur = function () { 482 nav.isOver = false; 483 setTimeout(function () { 484 if (nav.isOver == false) { 485 if (nav.menu[seq]) { 486 nav.menu[seq].onmouseover(); 487 } else if(nav.current) { 488 menuImg = nav.current.childNodes.item(0); 489 menuImg.src = menuImg.src.replace("_on.png", ".png"); 490 if (nav.current.submenu) { 491 nav.current.submenu.style.display = "none"; 492 } 493 nav.current = null; 494 } 495 } 496 }, 3000); 497 } 498 } 499 500 var allB = nav.getElementsByTagName("a"); 501 for(var k = 0; k < allB.length; k++) { 502 var str = allB.item(k) + ""; 503 if(str.substr(str.length-12,4) == seq2){ 504 allB.item(k).className = "active"; 505 } 506 } 507 508 for (var i = 0; i < navLen; i++) { 509 var navItem = nav.childNodes.item(i); 510 if (navItem.tagName != "LI") { 511 continue; 512 } 513 var navAnchor = navItem.getElementsByTagName("a").item(0); 514 navAnchor.submenu = navItem.getElementsByTagName("ul").item(0); 515 516 navAnchor.onmouseover = navAnchor.onfocus = function () { 517 if (nav.current) { 518 menuImg = nav.current.childNodes.item(0); 519 menuImg.src = menuImg.src.replace("_on.gif", ".gif"); 520 if (nav.current.submenu) { 521 nav.current.submenu.style.display = "none"; 522 } 523 nav.current = null; 524 } 525 if (nav.current != this) { 526 menuImg = this.childNodes.item(0); 527 menuImg.src = menuImg.src.replace(".gif", "_on.gif"); 528 if (this.submenu) { 529 this.submenu.style.display = "block"; 530 } 531 nav.current = this; 532 } 533 nav.isOver = true; 534 } 535 nav.menuseq++; 536 nav.menu[nav.menuseq] = navAnchor; 537 } 538 if (nav.menu[seq]) { 539 nav.menu[seq].onmouseover(); 540 } 541} 542 543//ëë©ë´ active 544function init1DepthComboMenu2(seq) { 545 var nav = document.getElementById("head_menu_all"); 546 var allB = nav.getElementsByTagName("a"); 547 for(var k = 0; k < allB.length; k++) { 548 var str = allB.item(k) + ""; 549 if(seq == '07'){ 550 allB.item(0).parentNode.className = allB.item(0).parentNode.className +" active"; 551 return false; 552 }else if(str.substr(str.length-10,2) == seq){ 553 allB.item(k).parentNode.className = allB.item(k).parentNode.className +" active"; 554 return false; 555 } 556 } 557} 558 559function init2DepthComboMenu2(seq) { 560 $('#gnb2 .submenu > ul > li > a').each(function(i){ 561 var str = this.href; 562 if(str.substr(str.length-10,4) == seq){ 563 this.parentNode.className = this.parentNode.className +" active "; 564 return false; 565 } 566 }); 567} 568 569function init3DepthComboMenu2(seq) { 570 $('#gnb2 .submenu > ul > li > div > ul > li > a').each(function(i){ 571 var str = this.href; 572 if(str.substr(str.length-10,6) == seq){ 573 this.parentNode.className = this.parentNode.className +" active"; 574 return false; 575 } 576 }); 577} 578 579 580/* Initialize Left Menu - li */ 581function initLeftMenuLI(select1, select2) 582{ 583 var nav = document.getElementById("left_menu_top"); 584 nav.menu = new Array(); 585 nav.current = null; 586 nav.menuseq = 0; 587 var navLen = nav.childNodes.length; 588 var menuImg; 589 590 var allB = nav.getElementsByTagName("li"); 591 for(var k = 0; k < allB.length; k++) { 592 var str = allB.item(k).id + ""; 593 if(str.substr(str.length-10,6) == select2){ 594 allB.item(k).className += " active"; 595 try{ allB.item(k).childNodes.item(0).childNodes.item(0).src = allB.item(k).childNodes.item(0).childNodes.item(0).src.replace(".gif", "_on.gif"); }catch (e) { console.log(""); } 596 } 597 } 598 599 var allAA = nav.getElementsByTagName("ul"); 600 for(var k = 0; k < allAA.length; k++) { 601 var str = allAA.item(k).className + ""; 602 if(str.substr(2,4) == select1){ 603 allAA.item(k).style.display = "block"; 604 } 605 } 606 607 var allA = nav.getElementsByTagName("li"); 608 for(var k = 0; k < allA.length; k++) { 609 var str = allA.item(k).id + ""; 610 if(str.substr(str.length-10,4) == select1){ 611 allA.item(k).className += " active"; 612 try{ allB.item(k).childNodes.item(0).childNodes.item(0).src = allB.item(k).childNodes.item(0).childNodes.item(0).src.replace(".gif", "_on.gif"); }catch (e) { console.log(""); } 613 return; 614 } 615 } 616} 617 618/* Initialize Left Menu - a */ 619function initLeftMenu(select1, select2) 620{ 621 var nav = document.getElementById("left_menu_top"); 622 nav.menu = new Array(); 623 nav.current = null; 624 nav.menuseq = 0; 625 var navLen = nav.childNodes.length; 626 var menuImg; 627 628 var allAA = nav.getElementsByTagName("ul"); 629 for(var k = 0; k < allAA.length; k++) { 630 var str = allAA.item(k).className + ""; 631 if(str.substr(0,4) == select1){ 632 allAA.item(k).style.display = "block"; 633 } 634 } 635 636 var allB = nav.getElementsByTagName("a"); 637 for(var k = 0; k < allB.length; k++) { 638 var str = allB.item(k) + ""; 639 if(str.substr(str.length-10,6) == select2){ 640 allB.item(k).className = "active"; 641 } 642 } 643 644 var allA = nav.getElementsByTagName("a"); 645 for(var k = 0; k < allA.length; k++) { 646 var str = allA.item(k) + ""; 647 if(str.substr(str.length-10,4) == select1){ 648 allA.item(k).className = "active"; 649 return; 650 } 651 } 652} 653 654/* 3Depth Left Menu */ 655function init3DepthMenu(select1) 656{ 657 var nav = document.getElementById("depth3_menu_div");
658 nav.menu = new Array(); 659 nav.current = null; 660 nav.menuseq = 0; 661 var navLen = nav.childNodes.length; 662 var menuImg; 663 664 var allA = nav.getElementsByTagName("li"); 665 for(var k = 0; k < allA.length; k++) { 666 var str = allA.item(k).id + ""; 667 if(str.substr(str.length-10,6) == select1){ 668 allA.item(k).className = "active"; 669 return; 670 } 671 } 672} 673 674/* 4Depth Left Menu 675function init4DepthMenu(select1) 676{ 677 var nav = document.getElementById("depth4_menu_div"); 678 nav.menu = new Array(); 679 nav.current = null; 680 nav.menuseq = 0; 681 var navLen = nav.childNodes.length; 682 var menuImg; 683 684 var allA = nav.getElementsByTagName("li"); 685 for(var k = 0; k < allA.length; k++) { 686 var str = allA.item(k).id + ""; 687 if(str.substr(str.length-10,8) == select1){ 688 allA.item(k).className = "active"; 689 allA.item(k).getElementsByTagName("a").item(0).setAttribute("title","ì íë¨"); 690 return; 691 } 692 } 693} 694*/ 695 696/* 4Depth Left Menu */ 697function init4DepthMenu(select1) 698{ 699 var nav = document.getElementById("depth4_menu_ul"); 700 nav.menu = new Array(); 701 nav.current = null; 702 nav.menuseq = 0; 703 var navLen = nav.childNodes.length; 704 var menuImg; 705 706 var allA = nav.getElementsByTagName("li"); 707 for(var k = 0; k < allA.length; k++) { 708 var str = allA.item(k).id + ""; 709 if(str.substr(str.length-10,8) == select1){ 710 var id = '#'+allA.item(k).id; 711 var obj = $(id).clone(); 712 $(id).after(obj); 713 allA.item(k).className = "active"; 714 return; 715 } 716 } 717 718} 719 720/* 5Depth Left Menu */ 721function init5DepthMenu(select1) 722{ 723 var nav = document.getElementById("depth5_menu_div"); 724 nav.menu = new Array(); 725 nav.current = null; 726 nav.menuseq = 0; 727 var navLen = nav.childNodes.length; 728 var menuImg; 729 730 var allA = nav.getElementsByTagName("li"); 731 for(var k = 0; k < allA.length; k++) { 732 var str = allA.item(k).id + ""; 733 if(str.substr(str.length-10,10) == select1){ 734 allA.item(k).className = "active"; 735 allA.item(k).getElementsByTagName("a").item(0).setAttribute("title","ì íë¨"); 736 return; 737 } 738 } 739} 740 741// ì´ë¯¸ì§ ì¤ë² 742function initImgOver(as_ID) { 743 var rollNav = document.getElementById(as_ID); 744 var rollLan = rollNav.childNodes.length; 745 var rollItem; 746 var rollAnchor; 747 var rollImg; 748 749 for (var i=0; i < rollLan; i++) { 750 rollItem = rollNav.childNodes.item(i); 751 if (rollItem.tagName != "LI") { 752 continue; 753 } 754 rollAnchor = rollItem.getElementsByTagName("a").item(0); 755 if (rollAnchor.className != "over") { 756 rollAnchor.onmouseover = rollAnchor.onfocus = function () { 757 if (rollNav.current) { 758 rollImg = rollNav.current.childNodes.item(0); 759 rollImg.src = rollImg.src.replace("_on.gif", ".gif"); 760 rollNav.current = null; 761 } 762 if ((rollNav.current == null) || (rollNav.current != this)) { 763 rollImg = this.childNodes.item(0); 764 rollImg.src = rollImg.src.replace(".gif", "_on.gif"); 765 rollNav.current = this; 766 } 767 rollNav.isOver = true; 768 } 769 rollAnchor.onmouseout = rollAnchor.onblur = function () { 770 if (rollNav.current) { 771 rollImg = rollNav.current.childNodes.item(0); 772 rollImg.src = rollImg.src.replace("_on.gif", ".gif"); 773 rollNav.current = null; 774 } 775 } 776 } 777 } 778} 779 780function getCookie(name) 781{ 782 var nameOfCookie = name + "="; 783 var x = 0; 784 while ( x <= document.cookie.length ) 785 { 786 var y = ( x + nameOfCookie.length ); 787 if ( document.cookie.substring(x,y) == nameOfCookie ) 788 { 789 if( (endOfCookie = document.cookie.indexOf(";", y)) == -1 ) 790 endOfCookie = document.cookie.length; 791 return unescape(document.cookie.substring(y, endOfCookie)); 792 } 793 x = document.cookie.indexOf( " ", x ) + 1; 794 if ( x == 0 ) 795 break; 796 } 797 return ""; 798} 799 800// ë ì´ì´ íì ì´ê¸° 801function openLayer(arg) 802{ 803 var pop = document.getElementById(arg); 804 pop.style.display = "block"; 805} 806 807// ë ì´ì´ íì ë«ê¸° 808function closeLayer(arg) 809{ 810 var pop = document.getElementById(arg); 811 pop.style.display = "none"; 812} 813 814// iframe ì¸ë¡í 815function frameResize(obj){ 816 var obj_document = obj.contentWindow.document; 817 if(obj_document.height){ 818 obj.style.height = obj_document.height+"px"; 819 }else{ 820 obj.style.height = obj_document.body.scrollHeight+"px"; 821 } 822} 823 824// ë©ì¸ ìµê·¼ê²ì물 í 825function initBoardArticle (container_id) 826{ 827 var container = document.getElementById(container_id); 828 var h3 = container.getElementsByTagName("h3"); 829 830 for (var i=0; i<h3.length; i++) 831 { 832 if (h3.item(i).id=="article_setting") 833 { 834 h3.item(i).id = "js_" + h3.item(i).id; 835 836 var set = h3.item(i).getElementsByTagName("a").item(0); 837 set.container = h3; 838 set.targetElement = document.getElementById(h3.item(i).getElementsByTagName("a").item(0).href.split("#")[1]); 839 set.targetElement.style.position = "absolute"; 840 set.targetElement.style.display = "none"; 841 set.targetElement.style.padding = "0"; 842 set.onclick = function () 843 { 844 this.targetElement.style.display = "block"; 845 return false; 846 } 847 848 continue; 849 } 850 851 h3.item(i).className = "js_" + h3.item(i).className; 852 h3.item(i).id = "js_" + h3.item(i).id; 853 854 var article = h3.item(i).getElementsByTagName("a").item(0); 855 article.container = h3; 856 article.targetElement = document.getElementById(h3.item(i).getElementsByTagName("a").item(0).href.split("#")[1]); 857 article.targetElement.style.display = "none"; 858 article.onclick = article.onfocus = function () 859 { 860 var current = this.container.current; 861 862 if (current!=this) 863 { 864 if (current) 865 { 866 current.targetElement.style.display = "none"; 867 current.className = ""; 868 } 869 870 this.targetElement.style.display = "block"; 871 this.className = "menu_on"; 872 this.container.current = this; 873 } 874 return false; 875 876 }; 877 878 article.className = ""; 879 880 if (!article.container.first) { article.container.first = article;} 881 } 882 883 h3.first.onclick(); 884} 885 886// ë©ì¸ ìµê·¼ê²ì물 í 887function initBoardArticle_onoff (container_id) 888{ 889 var container = document.getElementById(container_id); 890 var h3 = container.getElementsByTagName("h4"); 891 892 for (var i=0; i<h3.length; i++) 893 { 894 if (h3.item(i).id=="article_setting") 895 { 896 h3.item(i).id = "js_" + h3.item(i).id; 897 898 var set = h3.item(i).getElementsByTagName("a").item(0); 899 set.container = h3; 900 set.targetElement = document.getElementById(h3.item(i).getElementsByTagName("a").item(0).href.split("#")[1]); 901 set.targetElement.style.position = "absolute"; 902 set.targetElement.style.display = "none"; 903 set.targetElement.style.padding = "0"; 904 set.onclick = function () 905 { 906 this.targetElement.style.display = "block"; 907 return false; 908 } 909 910 continue; 911 } 912 913 h3.item(i).className = "js_" + h3.item(i).className; 914 h3.item(i).id = "js_" + h3.item(i).id; 915 916 var article = h3.item(i).getElementsByTagName("a").item(0); 917 article.container = h3; 918 article.targetElement = document.getElementById(h3.item(i).getElementsByTagName("a").item(0).href.split("#")[1]); 919 article.targetElement.style.display = "none"; 920 article.onclick = article.onfocus = function () 921 { 922 var current = this.container.current; 923 if (current!=this) 924 { 925 if (current) 926 { 927 current.targetElement.style.display = "none"; 928 current.className = ""; 929 //current.getElementsByTagName("img").item(0).src = (current.getElementsByTagName("img").item(0).src).replace("_on.gif", ".gif"); 930 } 931 932 this.targetElement.style.display = "block"; 933 this.className = "active"; 934 this.container.current = this; 935 //this.getElementsByTagName("img").item(0).src = (this.getElementsByTagName("img").item(0).src).replace(".gif", "_on.gif"); 936 } 937 return false; 938 939 }; 940 941 article.className = ""; 942 943 if (!article.container.first) { article.container.first = article;} 944 } 945 946 h3.first.onclick(); 947} 948 949// ë©ì¸ ìµê·¼ê²ì물 í 950function initBoardArticle_over (container_id) 951{ 952 var container = document.getElementById(container_id); 953 var h3 = container.getElementsByTagName("h3"); 954 955 for (var i=0; i<h3.length; i++) 956 { 957 if (h3.item(i).id=="article_setting") 958 { 959 h3.item(i).id = "js_" + h3.item(i).id; 960 961 var set = h3.item(i).getElementsByTagName("a").item(0); 962 set.container = h3; 963 set.targetElement = document.getElementById(h3.item(i).getElementsByTagName("a").item(0).href.split("#")[1]); 964 set.targetElement.style.position = "absolute"; 965 set.targetElement.style.display = "none"; 966 set.targetElement.style.padding = "0"; 967 set.onmouseover = function () 968 { 969 this.targetElement.style.display = "block"; 970 return false; 971 } 972 973 continue; 974 } 975 976 h3.item(i).className = "js_" + h3.item(i).className; 977 h3.item(i).id = "js_" + h3.item(i).id; 978 979 var article = h3.item(i).getElementsByTagName("a").item(0); 980 article.container = h3; 981 article.targetElement = document.getElementById(h3.item(i).getElementsByTagName("a").item(0).href.split("#")[1]); 982 article.targetElement.style.display = "none"; 983 article.onmouseover = article.onfocus = function () 984 { 985 var current = this.container.current; 986 987 if (current!=this) 988 { 989 if (current) 990 { 991 current.targetElement.style.display = "none"; 992 current.className = ""; 993 } 994 995 this.targetElement.style.display = "block"; 996 this.className = "menu_on"; 997 this.container.current = this; 998 } 999 return false; 1000 1001 }; 1002 1003 article.className = ""; 1004 1005 if (!article.container.first) { article.container.first = article;} 1006 } 1007 1008 h3.first.onmouseover(); 1009} 1010 1011// ì ë ¥ì°½ ê¸ìì í 1012function insertMax(arg, id, obj, spanID, val) { 1013 if(arg.value.length > obj){ 1014 document.getElementById(id).value = val.substr(0,obj); 1015 } 1016 document.getElementById(spanID).innerHTML = arg.value.length; 1017} 1018 1019function copyURI(arg) { 1020 if(arg == "") { 1021 alert("ë³µì¬ë URL 주ìê° ììµëë¤."); 1022 return; 1023 } 1024 var IE = (window.clipboardData) ? true : false; 1025 if(IE) { 1026 window.clipboardData.setData("Text", arg); 1027 alert("URL 주ìê° ë³µì¬ëììµëë¤."); 1028 } else { 1029 prompt("íì¬íì´ì§ì URL 주ìì ëë¤.\nCtrl+C를 ëë¬ í´ë¦½ë³´ëì ë³µì¬íì¸ì.", arg); 1030 } 1031} 1032 1033function fncScrap(arg, arg2){ 1034 var returnURL = ""; 1035 if(confirm("ë§ì´íì´ì§ > ëì ì¤í¬ë©ì ì ì¥ëììµëë¤.\nì§ê¸ íì¸íìê² ìµëê¹?")){ 1036 returnURL = encodeURIComponent("http://www.gwangju.go.kr/ease/menu.es?S=a1&M=120500000000"); 1037 } 1038 location.href = arg + encodeURIComponent(arg2) + "&returnURL=" + returnURL; 1039} 1040 1041function fncScrapDelete(arg){ 1042 if(confirm("ì¤í¬ë© 목ë¡ì ìì íìê² ìµëê¹?")){ 1043 location.href = arg; 1044 } 1045} 1046 1047function urlMove(arg){ 1048 var str = document.getElementById(arg).value; 1049 if(str == "" | str == "#"){ 1050 alert("ì íë íëª©ì´ ììµëë¤."); 1051 return false; 1052 }else{ 1053 return true; 1054 } 1055} 1056 1057/** 1058* ê²ìí SNS ê³µíµ íì 1059* @param site_nm : ì¬ì´í¸ëª 1060* @param title : ê¸ì 목 1061* @param url : ë§í¬ 1062* @return
1063*/ 1064function snsApi(sns) 1065{ 1066 var fm = document.snsForm; 1067 fm.url.value = document.location.href; 1068 fm.target = "_blank"; 1069 fm.action = "/api/sns.es?sns="+sns; 1070 fm.submit(); 1071} 1072function twitter(site_nm, title, url){ 1073 var str = site_nm + " | " + title + " " + url; 1074 var sitelink = "http://twitter.com/home?status=" + encodeURIComponent(str); 1075 window.open(sitelink); 1076} 1077function me2day(site_nm, title, url){ 1078 var str = site_nm + " | " + title + " " + url; 1079 var sitelink = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(str); 1080 window.open(sitelink); 1081} 1082function facebook(site_nm, title, url){ 1083 var str = site_nm + " | " + title; 1084 var sitelink = "http://facebook.com/sharer.php?u=" + encodeURIComponent(url) + "&t=" + encodeURIComponent(str); 1085 window.open(sitelink); 1086} 1087 1088 1089var xhr = null; 1090function getXMLHttpRequest() { 1091 if (window.ActiveXObject) { 1092 try { 1093 return new ActiveXObject("Msxml2.XMLHTTP");//IE ìì ë²ì ¼ 1094 } catch (e1) { 1095 try { 1096 return new ActiveXObject("Microsoft.XMLHTTP");//IE íì ë²ì ¼ 1097 } catch (e2) { 1098 return null; 1099 } 1100 } 1101 } else if (window.XMLHttpRequest) { 1102 return new XMLHttpRequest();//IE ì´ì¸ì ë¸ë¼ì°ì (FireFox ë±) 1103 } else { 1104 return null; 1105 } 1106}// XMLHttpRequest ê°ì²´ ì»ê¸° 1107 1108function requestHello(e,URL) { 1109 var ex_obj = document.getElementById("message"); 1110 if(!e) e = window.Event; 1111 //param = f.name.value; 1112 //URL = URL + "?name=" + encodeURIComponent(param);//íê¸ ì²ë¦¬ 1113 xhr = getXMLHttpRequest();//XMLHttpRequest ê°ì²´ ì»ê¸° 1114 xhr.onreadystatechange = responseHello;//ì½ë°± í¨ì ë±ë¡ 1115 xhr.open("GET", URL, true);//ì°ê²° 1116 xhr.send(null);//ì ì¡ 1117}// ìë²ì ìì² 1118 1119function responseHello() { 1120 if (xhr.readyState == 4) {//ìë£ 1121 if (xhr.status == 200) {//ì¤ë¥ìì´ OK 1122 var str = xhr.responseText;//ìë²ìì ë³´ë¸ ë´ì© ë°ê¸° 1123 document.getElementById("message").innerHTML = str;//ë³´ì¬ì£¼ê¸° 1124 } else { 1125 alert("Fail : " + xhr.status); 1126 } 1127 } 1128}// ìëµ 1129 1130function displayTab(coId,num,curr) { 1131 for(var i=0;i<=num;i++){ 1132 var obj = document.getElementById(coId+i); 1133 if(obj){ obj.style.display = "none"; } 1134 } 1135 var obj = document.getElementById(coId+curr); 1136 if(obj){ obj.style.display = "block"; } 1137} 1138 1139//IE ì¸ì§ë¥¼ ë°í(IE ë¼ë©´ true ìëë©´ false) 1140function is_IE() { 1141 if (navigator.appName.charAt(0) == "M") 1142 return true ; 1143 else
1144 return false ; 1145} 1146 1147 1148 1149var regExp = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i; 1150// íì¸ ë²í¼ ì íì ìì¸ëª©ë¡ ì¡°í 1151function emailSubmit(){ 1152 if(document.emailInsForm.email.value == ""){ 1153 alert("ì´ë©ì¼ 주ìê° ì ííì§ ììµëë¤."); 1154 document.emailInsForm.email.focus(); 1155 }else if( !regExp.test(document.emailInsForm.email.value) ){ 1156 alert("ì¬ë°ë¥¸ ì´ë©ì¼ íìì´ ìëëë¤."); 1157 document.emailInsForm.email.focus(); 1158 }else{ 1159 if(confirm("ë´ì¤ë í°ë¥¼ ì ì²íìê² ìµëê¹?")){ 1160 $.post("/mail.es", 1161 { 1162 act : "insMailer", 1163 email : document.emailInsForm.email.value 1164 }, 1165 function(data,status){ 1166 $("#emailMessage").html(data); 1167 }); 1168 } 1169 } 1170} 1171 1172//ì½ë©í¸ ê¸ìì ìµëì ì í 1173function insertContentsMax(spanID, max, formNm) { 1174 if(formNm.value.length > max){ 1175 alert("ì í ê¸ìì "+max+"ì를 ì´ê³¼íììµëë¤."); 1176 formNm.value = formNm.value.substr(0,max); 1177 } 1178 document.getElementById(spanID).innerHTML = formNm.value.length; 1179 /* 1180 var word = formNm.value.replace(/(^\s*)|(\s*$)/g,""); 1181 if(word.length > max){ 1182 formNm.value = formNm.value.substr(0,max); 1183 } 1184 document.getElementById(spanID).innerHTML = word.length; 1185 */ 1186} 1187 1188//ê¸ì í°í¸ ì¬ì´ì¦ë§ ì¡°ì íë í¨ì 1189defsize = 0.83; 1190var fSize=14; 1191//window.onload = onInit; 1192 1193function onInit(){ 1194 var font = getCookieValue("font"); 1195 var fontSize = getCookieValue("fontSize"); 1196 if(font != ""){ 1197 scaleFontType(font); 1198 } 1199 if(fontSize != ""){ 1200 fontSize = Number(fontSize) - fSize; 1201 scaleFont(fontSize); 1202 } 1203} 1204 1205/////////////////////////////////////////////////////////////////////// 1206function getCookieValue(cookieName){ 1207 var cookieValue = null; 1208 if(document.cookie.length > 0){ 1209 var offset = document.cookie.indexOf(cookieName +"="); 1210 if(offset != -1) { 1211 offset += cookieName.length; 1212 end = document.cookie.indexOf(";", offset); 1213 if (end == -1) end = document.cookie.length; 1214 cookieValue = unescape(document.cookie.substring(offset+1, end)); 1215 } 1216 } 1217 1218 if(cookieValue == null) 1219 return ""; 1220 1221 return cookieValue; 1222} 1223 1224var expireDate = new Date(); 1225function setCookieValue(cookieName,cookieValue){ 1226 expireDate.setMonth(expireDate.getMonth()+6); 1227 document.cookie = cookieName + "=" + escape(cookieValue) + "; expires=" + expireDate.toGMTString(); 1228} 1229 1230 1231function scaleFont(n){ 1232 fSize = fSize + n; 1233 if(fSize < 10)return; 1234 var valueCheck = document.getElementById("wrap"); 1235 if(valueCheck !=null){ 1236 var objTXT = document.getElementById("wrap") 1237 var objTd = document.getElementById("wrap").getElementsByTagName( "td" );// <td>, <TD>ì ë´ì©ì 모ë ì½ì´ì´ 1238 var objDiv = document.getElementById("wrap").getElementsByTagName( "div" ); 1239 var objSpan = document.getElementById("wrap").getElementsByTagName( "span" ); 1240 var objA = document.getElementById("wrap").getElementsByTagName( "a" ); 1241 var objs = document.getElementById("wrap").getElementsByTagName( "p" ); 1242 var objli = document.getElementById("wrap").getElementsByTagName( "li" ); 1243 objTXT.style.fontSize = fSize + "px"; 1244 for( i=0; i < objDiv.length; i++ ) objDiv[i].style.fontSize = fSize + "px"; 1245 for( i=0; i < objTd.length; i++ ) objTd[i].style.fontSize = fSize + "px"; 1246 for( i=0; i < objSpan.length; i++ ) objSpan[i].style.fontSize = fSize + "px"; 1247 for( i=0; i < objA.length; i++ ) objA[i].style.fontSize = fSize + "px"; 1248 for( i=0; i < objs.length; i++ ) objs[i].style.fontSize = fSize + "px"; 1249 for( i=0; i < objli.length; i++ ) objli[i].style.fontSize = fSize + "px"; 1250 setCookieValue("fontSize",fSize); 1251 } 1252} 1253 1254function scaleFontType(str){ 1255 var valueCheck = document.getElementById("wrap"); 1256 if(valueCheck !=null){ 1257 var objTd = document.getElementById("wrap").getElementsByTagName( "td" );// <td>, <TD>ì ë´ì©ì 모ë ì½ì´ì´ 1258 var objDiv = document.getElementById("wrap").getElementsByTagName( "div" ); 1259 var objSpan = document.getElementById("wrap").getElementsByTagName( "span" ); 1260 var objA = document.getElementById("wrap").getElementsByTagName( "a" ); 1261 var objs = document.getElementById("wrap").getElementsByTagName( "p" ); 1262 var objli = document.getElementById("wrap").getElementsByTagName( "li" );
1263 for( i=0; i < objDiv.length; i++ ) objDiv[i].style.fontFamily = str; 1264 for( i=0; i < objTd.length; i++ ) objTd[i].style.fontFamily = str; 1265 for( i=0; i < objSpan.length; i++ ) objSpan[i].style.fontFamily = str; 1266 for( i=0; i < objA.length; i++ ) objA[i].style.fontFamily = str; 1267 for( i=0; i < objs.length; i++ ) objs[i].style.fontFamily = str; 1268 for( i=0; i < objli.length; i++ ) objli[i].style.fontFamily = str; 1269 setCookieValue("font",str); 1270 } 1271} 1272 1273var nowZoom = 100; 1274function zoomIn() { 1275 try{ 1276 if(/Firefox/.test(navigator.userAgent)) { 1277 alert("ì´ ë¸ë¼ì°ì ììë 기ë¥ì ì§ìíì§ ììµëë¤. \nCtrlí¤ + ë§ì°ì¤ í ì ì´ì©íì¬ íë ì¶ìíì¤ì ììµëë¤."); 1278 } else { 1279 nowZoom = nowZoom - 10; 1280 if(nowZoom <= 70) nowZoom = 70; 1281 zooms(); 1282 } 1283 }catch (e) { 1284 alert("ì´ ë¸ë¼ì°ì ììë 기ë¥ì ì§ìíì§ ììµëë¤."); 1285 } 1286} 1287 1288function zoomOut() { 1289 try{ 1290 if(/Firefox/.test(navigator.userAgent)) { 1291 alert("ì´ ë¸ë¼ì°ì ììë 기ë¥ì ì§ìíì§ ììµëë¤. \nCtrlí¤ + ë§ì°ì¤ í ì ì´ì©íì¬ íë ì¶ìíì¤ì ììµëë¤."); 1292 } else { 1293 nowZoom = nowZoom + 20; 1294 if(nowZoom >= 500) nowZoom = 500; 1295 zooms(); 1296 } 1297 }catch (e) { 1298 alert("ì´ ë¸ë¼ì°ì ììë 기ë¥ì ì§ìíì§ ììµëë¤."); 1299 } 1300} 1301 1302function zoomReset(){ 1303 nowZoom = 100; 1304 zooms(); 1305} 1306 1307function zooms(){ 1308 try{ 1309 document.body.style.zoom = nowZoom + '%'; 1310 if(nowZoom==70){ 1311 alert ("30%ì¶ì ëììµëë¤. ë ì´ì ì¶ìí ì ììµëë¤."); 1312 } 1313 1314 if(nowZoom==500){ 1315 alert ("500%íë ëììµëë¤. ë ì´ì íëí ì ììµëë¤."); 1316 } 1317 }catch (e) { 1318 alert("ì´ ë¸ë¼ì°ì ììë 기ë¥ì ì§ìíì§ ììµëë¤."); 1319 } 1320 1321} 1322 1323// 1324var lastPoint = ""; 1325function goPoint02(point) { 1326 if(document.getElementById(point).style.display != "none"){ 1327 document.getElementById(point).style.display = "none"; 1328 } else { 1329 try { 1330 document.getElementById(lastPoint).style.display = "none"; 1331 } catch(e) { console.log(""); } 1332 document.getElementById(point).style.display = "block"; 1333 lastPoint = point; 1334 } 1335} 1336 1337// í´ë¦ì arg ì¬ë¼ì´ë© 1338function slideToggleView(arg){ 1339 $(arg).slideToggle("fast"); 1340} 1341 1342 1343 1344//Tab Content 1345function initTabMenu(tabContainerID) { 1346 var tabContainer = document.getElementById(tabContainerID); 1347 var tabAnchor = tabContainer.getElementsByTagName("a"); 1348 var i = 0; 1349 1350 for(i=0; i<tabAnchor.length; i++) { 1351 if (tabAnchor.item(i).className == "tab") 1352 thismenu = tabAnchor.item(i); 1353 else 1354 continue; 1355 1356 thismenu.container = tabContainer; 1357 thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]); 1358 thismenu.targetEl.style.display = "none"; 1359 thismenu.imgEl = thismenu.getElementsByTagName("img").item(0); 1360 if (thismenu.imgEl) { 1361 thismenu.onfocus = function () { 1362 //this.onfocus(); 1363 } 1364 } 1365 thismenu.onclick = tabMenuOver; 1366 1367 if (!thismenu.container.first) 1368 thismenu.container.first = thismenu; 1369 } 1370 tabContainer.first.onclick(); 1371} 1372function tabMenuOver() { 1373 currentmenu = this.container.current; 1374 if (currentmenu != this) { 1375 if (currentmenu) { 1376 currentmenu.targetEl.style.display = "none"; 1377 if (currentmenu.imgEl) { 1378 currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif"); 1379 currentmenu.className = currentmenu.className.replace(" selectd", ""); 1380 } else { 1381 currentmenu.className = currentmenu.className.replace(" selectd", ""); 1382 } 1383 } 1384 1385 this.targetEl.style.display = "block"; 1386 if (this.imgEl) {
1387 this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif"); 1388 this.className += " selectd"; 1389 } else { 1390 this.className += " selectd"; 1391 } 1392 this.container.current = this; 1393 } 1394 return false; 1395} 1396 1397 1398//BMI ì²´í¬ íë¡ê·¸ë¨ 1399function bmiCheck(){ 1400 document.getElementById("bmi01").innerHTML = "-"; 1401 document.getElementById("bmi02").innerHTML = "-"; 1402 1403 var result01 = ""; 1404 var result02 = ""; 1405 var ja = 2; 1406 result02 = document.getElementById("bmiWeight").value / (document.getElementById("bmiHeight").value/100 * document.getElementById("bmiHeight").value/100); 1407 result02 = result02.toFixed(1); 1408 if(result02 < 18.5){ result01 = "ì ì²´ì¤"; 1409 }else if(result02 >= 18.5 && result02 <= 22.9){ result01 = "ì ìì²´ì¤"; 1410 }else if(result02 >= 23 && result02 <= 24.9){ result01 = "과체ì¤"; 1411 }else if(result02 >= 25 && result02 <= 29.9){ result01 = "ë¹ë§ I"; 1412 }else if(result02 >= 30 && result02 <= 39.9){ result01 = "ë¹ë§ II"; 1413 }else if(result02 >= 40){ result01 = "ì¬ê°í ë¹ë§ III"; 1414 } 1415 1416 document.getElementById("bmi01").innerHTML = result01; 1417 document.getElementById("bmi02").innerHTML = result02; 1418 1419 //ê²ìí ë ì´ì´ì°½ 1420 function boardPopLayer(divId, url){ 1421 document.getElementById(divId).style.display = "block"; 1422 $.post(url, 1423 function(data,status){ 1424 $("#"+divId).html(data); 1425 }); 1426 } 1427} 1428 1429// ë©ì¼ì íì 1430function fnc_mailChange(arg, arg2){ 1431 var sel_f = document.getElementById(arg2); 1432 if(arg == ""){ 1433 sel_f.readOnly = false; 1434 sel_f.focus(); 1435 sel_f.display = "block"; 1436 }else{ 1437 sel_f.readOnly = true; 1438 sel_f.display = "none"; 1439 } 1440 sel_f.value = arg; 1441} 1442 1443function findeepSearch2(type){ 1444 if(type == "main"){ 1445 if($("#search").val().trim().length >= 2){ 1446 $("#searchForm").submit(); 1447 }else{ 1448 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥íì¸ì."); 1449 $("#search").val($("#search").val().trim()); 1450 event.preventDefault(); 1451 } 1452 }else if(type == "sub"){ 1453 if($("#searchSub").val().trim().length >= 2){ 1454 $("#searchSubForm").submit(); 1455 }else{ 1456 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥íì¸ì."); 1457 $("#searchSub").val($("#searchSub").val().trim()); 1458 event.preventDefault(); 1459 } 1460 }else if(type == "menu"){ 1461 if($("#search2").val().trim().length >= 2){ 1462 $("#searchForm2").submit(); 1463 }else{ 1464 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥íì¸ì."); 1465 $("#search2").val($("#search2").val().trim()); 1466 event.preventDefault(); 1467 } 1468 } 1469} 1470function findeepSearch3(type){ 1471 if(type == "main"){ 1472 if($("#search").val().trim().length >= 2){ 1473 $("#searchFormMain").submit(); 1474 }else{ 1475 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥íì¸ì."); 1476 $("#search").val($("#search").val().trim()); 1477 event.preventDefault(); 1478 } 1479 }else if(type == "sub"){ 1480 if($("#searchSub").val().trim().length >= 2){ 1481 $("#searchSubForm").submit(); 1482 }else{ 1483 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥íì¸ì."); 1484 $("#searchSub").val($("#searchSub").val().trim()); 1485 event.preventDefault(); 1486 } 1487 }else if(type == "menu"){ 1488 if($("#search2").val().trim().length >= 2){ 1489 $("#searchForm2").submit(); 1490 }else{ 1491 alert("ê²ìì´ë¥¼ 2ê¸ì ì´ì ì ë ¥íì¸ì."); 1492 $("#search2").val($("#search2").val().trim()); 1493 event.preventDefault(); 1494 } 1495 } 1496} 1497function XssCheck(str){ 1498 str = str.replace("\<", "<"); 1499 str = str.replace("\>", ">"); 1500 str = str.replace("\"", """); 1501 str = str.replace("\#", "#"); 1502 str = str.replace(/\\/gi,""); 1503 str = str.replace(/\./gi,""); 1504 str = str.replace(new RegExp("alert","gi"), ""); 1505 str = str.replace(new RegExp("prompt","gi"), ""); 1506 str = str.replace(new RegExp("onmouseover","gi"), ""); 1507 str = str.replace(new RegExp("onmouse","gi"), ""); 1508 str = str.replace(new RegExp("script","gi"), ""); 1509 str = str.replace(new RegExp("cookie","gi"), ""); 1510 str = str.replace(new RegExp("document","gi"), ""); 1511 str = str.replace(new RegExp("\[\\r\\n\]","gi"), ""); 1512 1513 return str; 1514} 1515 1516//title ë³ê²½ 1517function toggleTitle(id){ 1518 if($(id).hasClass("active") === true) { 1519 $(id).attr("title","ë«í"); 1520 }else{ 1521 $(id).attr("title","ì´ë¦¼"); 1522 } 1523} 1524 1525$(document).on("keydown", function(e) { 1526 if(e.keyCode == "9") { // tabí¤
1527 if(!e.shiftKey) { //+ shiftí¤ 1528 //í 1529 if($(".btn-sitemap a").is(":focus")) { 1530 $("#gnb1").removeClass("active"); 1531 $("#head_menu li").removeClass("active"); 1532 } 1533 } 1534 } 1535}); 1536
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.