PageSourceSearch

https://gwangyang.go.kr/js/global.js

js gwangyang.go.kr collected 2026-10-02 07:32:12 UTC 42,843 bytes, 1,536 lines download raw bytes

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(/(&amp;)/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("\<", "&lt;");
1499	str = str.replace("\>", "&gt;");
1500	str = str.replace("\"", "&quot;");
1501	str = str.replace("\#", "&#35;");
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.