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