PageSourceSearch

https://kdischool.ac.kr/js/global.js?v=20250825

js kdischool.ac.kr collected 2026-10-01 10:42:11 UTC 43,435 bytes, 1,548 lines download raw bytes

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

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.