PageSourceSearch

https://ucgclass.com/js/default.js?ver=20211125

js ucgclass.com collected 2026-09-24 14:19:39 UTC 60,186 bytes, 2,441 lines download raw bytes

1//새 윈도우창 띄우기
2function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){
3	toolbar_str = toolbar ? 'yes' : 'no';
4	menubar_str = menubar ? 'yes' : 'no';
5	statusbar_str = statusbar ? 'yes' : 'no';
6	scrollbar_str = scrollbar ? 'yes' : 'no';
7	resizable_str = resizable ? 'yes' : 'no';
8	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
9}
10
11
12
13
14//메인 rows 마우스오버 소스
15function view_layer( layer_id )
16{
17	Obj						= document.getElementById(layer_id);
18	Obj.style.display		= Obj.style.display == ''? 'none' : '';
19}
20
21// 카테고리별 탭메뉴 -- [ start ]
22	function showHideLayer(num)
23	{
24		tab_number = 4;
25
26		for ( i = 1; i <= tab_number; i++ )
27		{
28			document.getElementById("tabMenu" + i).className = "noSelectBox";
29			document.getElementById("sample" + i).style.display = "none";
30		}
31
32		document.getElementById("tabMenu" + num).className = "selectBox";
33		document.getElementById("sample" + num).style.display = "";
34
35		//탭메뉴 display:none 에 따른 대응코드
36		$(window).trigger('resize');
37	}
38// 카테고리별 탭메뉴 -- [ end ]
39
40
41//input onKeyup 소스 작동시 필요함
42function autotab(original,destination){
43	if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
44		destination.focus()
45}
46
47// 2011-05-27 HYO 스크립트 추가 start
48function ExecuteCommand( commandName, comment)
49{
50	// Get the editor instance that we want to interact with.
51	var oEditor = FCKeditorAPI.GetInstance( comment ) ;
52
53	// Execute the command.
54	oEditor.Commands.GetCommand( commandName ).Execute() ;
55}
56// 2011-05-27 HYO 스크립트 추가 end
57
58
59// 오늘 내가 본 업체정보 및 기타 관련 -- [ start ]
60var nowWidth	= "";
61var prevWidth	= "";
62var prevLeft	= "";
63var showDivName	= "showDiv_";
64var nowShowDiv	= "";
65
66
67//var subTract = 55;	//오늘 본 정보 출력레이어 세부위치 조절값 [ YOON : 2008-12-18 ]
68
69
70function happyShowLayer( numb, layerLeft )
71{
72	nowWidth	= document.body.scrollWidth / 2;
73	prevLeft	= layerLeft;
74
75	if ( nowShowDiv != "" )
76	{
77		document.all[showDivName + nowShowDiv].style.display = 'none';
78		document.all[showDivName + nowShowDiv].style.left = -1000;
79	}
80
81	nowShowDiv	= numb;
82
83
84	//document.all[showDivName + numb].style.left = eval( (nowWidth + layerLeft) - subTract ) + "px";	// [ YOON : 2008-12-18 ]
85	document.all[showDivName + numb].style.left = eval( nowWidth + layerLeft );
86	document.all[showDivName + numb].style.display = '';
87}
88
89
90function happyCloseLayer()
91{
92	if ( nowShowDiv != "" )
93	{
94		document.all[showDivName + nowShowDiv].style.display = 'none';
95		document.all[showDivName + nowShowDiv].style.left = -1000;
96	}
97	nowShowDiv	= "";
98	prevLeft	= '';
99}
100
101
102function happyNowWidth()
103{
104	prevWidth	= ( nowWidth != "" )?nowWidth:"";
105	nowWidth	= document.body.scrollWidth / 2;
106
107	if ( prevWidth != "" && nowShowDiv != "" )
108	{
109		prevLeft	= document.all[showDivName + nowShowDiv].style.left;
110		document.all[showDivName + nowShowDiv].style.left	= parseInt(prevLeft) + parseInt( nowWidth - prevWidth );
111	}
112}
113
114
115function happyNowWidthNew()
116{
117	prevWidth	= ( nowWidth != "" )?nowWidth:"";
118	nowWidth	= document.body.scrollWidth / 2;
119
120	if ( prevWidth != "" && nowShowDiv != "" )
121	{
122		document.all[showDivName + nowShowDiv].style.left	= eval( nowWidth + prevLeft );
123	}
124}
125
126
127
128function happyHideLayer()
129{
130	for (var i =1; i<7 ; i++ )
131	{
132		document.all['showDiv_' + i].style.display = 'none';
133
134	}
135}
136// 오늘 내가 본 업체정보 및 기타 관련 -- [ end ]
137
138
139//마이페이지 스크랩삭제 소스
140function bbsdel(strURL) {
141	var msg = "삭제하시겠습니까?";
142
143	if (confirm(msg)){
144		window.location.href= strURL;
145	}
146}
147
148
149//로그인박스 전용 텝메뉴
150var prevImg4  = new Array();
151prevImg4[0]  = "login_img_1";
152
153
154var prevLayer4 = new Array();
155prevLayer4[0] = "login_layer_1";
156
157
158function login_viewLayer(nowLayer4,no)
159{
160	document.getElementById(prevLayer4[no]).style.display = "none";
161	document.getElementById(nowLayer4).style.display = "";
162	prevLayer4[no] = nowLayer4;
163}
164
165function login_changeImg(nowImg4,no)
166{
167	if ( nowImg4 != prevImg4[no] )
168	{
169		prevImg4Src = document.getElementById(prevImg4[no]).src.replace("_on.gif",".gif");
170		nowImg4Src = document.getElementById(nowImg4).src.replace("_off.gif",".gif");
171		document.getElementById(prevImg4[no]).src = prevImg4Src.replace(".gif","_off.gif");
172		document.getElementById(nowImg4).src = nowImg4Src.replace(".gif","_on.gif");
173
174		prevImg4[no] = nowImg4;
175	}
176}
177
178
179 //메인메뉴,마이페이지에 관련된 텝메뉴
180 var prevLayer = new Array();
181 prevLayer[0] = "layer_1";
182 prevLayer[1] = "layer_8";
183
184 var prevImg  = new Array();
185 prevImg[0]  = "top_menu_img_1";
186 prevImg[1]  = "top_menu_img_8";
187
188
189 var HappySubMenuLeft			= new Array();
190 var HappySubMenuSum			= 0;
191 var HappySubMenuImageWidth		= new Array();
192
193
194function viewLayer(nowLayer,no)
195{
196	if ( document.getElementById(prevLayer[no]) != undefined )
197	{
198		document.getElementById(prevLayer[no]).style.display = "none";
199	}
200
201	now_no			= nowLayer.split("_");
202	now_no			= now_no[1];
203
204	try
205	{
206		if ( document.getElementById(nowLayer) != undefined )
207		{
208			document.getElementById(nowLayer).style.left		= HappySubMenuLeft[now_no] +'px';
209			document.getElementById(nowLayer).style.width		= HappySubMenuImageWidth[now_no] +'px';
210		}
211	}
212	catch (e)
213	{
214	}
215	
216	if ( document.getElementById(nowLayer) != undefined )
217	{
218		document.getElementById(nowLayer).style.display		= "";
219	}
220
221	prevLayer[no]	= nowLayer;
222}
223
224function changeImg2(nowImg,no)
225{
226	if ( nowImg != prevImg[no] )
227	{
228		if ( document.getElementById(prevImg[no]) != undefined )
229		{
230			prevImgSrc = document.getElementById(prevImg[no]).src.replace("_off.gif","_off.gif");
231			document.getElementById(prevImg[no]).src = prevImgSrc.replace("_off.gif","_off.gif");
232		}
233		
234		if ( document.getElementById(nowImg) != undefined )
235		{
236			nowImgSrc = document.getElementById(nowImg).src.replace("_off.gif","_off.gif");
237			document.getElementById(nowImg).src = nowImgSrc.replace("_off.gif","_off.gif");
238		}
239
240		prevImg[no] = nowImg;
241	}
242}
243
244function changeImg3(nowImg)
245{
246	if ( document.getElementById(nowImg) != undefined )
247	{
248		document.getElementById(nowImg).src = document.getElementById(nowImg).src.replace("_on.gif","_off.gif");
249	}
250}
251
252function closeLayer(nowLayer)
253{
254	if ( document.getElementById(nowLayer) )
255	{
256		document.getElementById(nowLayer).style.display = "none";
257	}
258}
259
260
261
262//메인 PNG전용 텝메뉴
263function tab_change(Img,ev)
264{
265	main_tabs = Array(
266						'menumain_Atab1',
267						'menumain_Atab2',
268						'menumain_Atab3',
269						'menumain_Atab4',
270						'menumain_Atab5',
271						'menumain_Atab6'
272						);
273	out_img = Array(
274					'img/btn_tab_categroy01_off.gif',
275					'img/btn_tab_categroy02_off.gif',
276					'img/btn_tab_categroy03_off.gif',
277					'img/btn_tab_categroy04_off.gif',
278					'img/btn_tab_categroy05_off.gif',
279					'img/btn_tab_categroy06_off.gif'
280					);
281	over_img = Array(
282					'img/btn_tab_categroy01_on.gif',
283					'img/btn_tab_categroy02_on.gif',
284					'img/btn_tab_categroy03_on.gif',
285					'img/btn_tab_categroy04_on.gif',
286					'img/btn_tab_categroy05_on.gif',
287					'img/btn_tab_categroy06_on.gif'
288
289					);
290	title_imgs = Array(
291						'main_Atab1',
292						'main_Atab2',
293						'main_Atab3',
294						'main_Atab4',
295						'main_Atab5',
296						'main_Atab6'
297					);
298
299
300	CurTab = 'menu'+Img.id;
301
302	if ( ev == 'over' )
303	{
304		for ( i = 0; i<main_tabs.length ;i++ )
305		{
306			main_tab = document.getElementById(main_tabs[i]);
307			TitleImgs = document.getElementById(title_imgs[i]);
308			TitleImgs.src = out_img[i];
309
310			if ( CurTab == main_tabs[i] )
311			{
312				main_tab.style.display = '';
313				Img.src = over_img[i];
314			}
315			else
316			{
317				main_tab.style.display = 'none';
318			}
319		}
320	}
321}
322
323
324function tab_change5(Img,ev)
325{
326	main_tabs = Array(
327						'menumain_Stab1',
328						'menumain_Stab2',
329						'menumain_Stab3',
330						'menumain_Stab4',
331						'menumain_Stab5'
332						);
333	out_img = Array(
334					'img/btn_tab01_sub_off.gif',
335					'img/btn_tab02_sub_off.gif',
336					'img/btn_tab03_sub_off.gif',
337					'img/btn_tab04_sub_off.gif',
338					'img/btn_tab05_sub_off.gif'
339					);
340	over_img = Array(
341					'img/btn_tab01_sub_on.gif',
342					'img/btn_tab02_sub_on.gif',
343					'img/btn_tab03_sub_on.gif',
344					'img/btn_tab04_sub_on.gif',
345					'img/btn_tab05_sub_on.gif'
346
347					);
348	title_imgs = Array(
349						'main_Stab1',
350						'main_Stab2',
351						'main_Stab3',
352						'main_Stab4',
353						'main_Stab5'
354					);
355
356
357	CurTab = 'menu'+Img.id;
358
359	if ( ev == 'over' )
360	{
361		for ( i = 0; i<main_tabs.length ;i++ )
362		{
363			main_tab = document.getElementById(main_tabs[i]);
364			TitleImgs = document.getElementById(title_imgs[i]);
365			TitleImgs.src = out_img[i];
366
367			if ( CurTab == main_tabs[i] )
368			{
369				main_tab.style.display = '';
370				Img.src = over_img[i];
371			}
372			else
373			{
374				main_tab.style.display = 'none';
375			}
376		}
377	}
378}
379
380
381function tab_change2(Img,ev)
382{
383	main_tabs = Array(
384						'menumain_Mtab3',
385						'menumain_Mtab4'
386						);
387	out_img = Array(
388					'img/tab_mypay03_off.gif',
389					'img/tab_mypay04_off.gif'
390					);
391	over_img = Array(
392					'img/tab_mypay03_on.gif',
393					'img/tab_mypay04_on.gif'
394
395					);
396	title_imgs = Array(
397						'main_Mtab3',
398						'main_Mtab4'
399					);
400
401
402	CurTab = 'menu'+Img.id;
403
404	if ( ev == 'over' )
405	{
406		for ( i = 0; i<main_tabs.length ;i++ )
407		{
408			main_tab = document.getElementById(main_tabs[i]);
409			TitleImgs = document.getElementById(title_imgs[i]);
410			TitleImgs.src = out_img[i];
411
412			if ( CurTab == main_tabs[i] )
413			{
414				main_tab.style.display = '';
415				Img.src = over_img[i];
416			}
417			else
418			{
419				main_tab.style.display = 'none';
420			}
421		}
422	}
423}
424
425function tab_change20(Img,ev)
426{
427	main_tabs = Array(
428						'menumain_Mtab1',
429						'menumain_Mtab2'
430						);
431	out_img = Array(
432					'img/tab_mypay01_off.gif',
433					'img/tab_mypay02_off.gif'
434					);
435	over_img = Array(
436					'img/tab_mypay01_on.gif',
437					'img/tab_mypay02_on.gif'
438
439					);
440	title_imgs = Array(
441						'main_Mtab1',
442						'main_Mtab2'
443					);
444
445
446	CurTab = 'menu'+Img.id;
447
448	if ( ev == 'over' )
449	{
450		for ( i = 0; i<main_tabs.length ;i++ )
451		{
452			main_tab = document.getElementById(main_tabs[i]);
453			TitleImgs = document.getElementById(title_imgs[i]);
454			TitleImgs.src = out_img[i];
455
456			if ( CurTab == main_tabs[i] )
457			{
458				main_tab.style.display = '';
459				Img.src = over_img[i];
460			}
461			else
462			{
463				main_tab.style.display = 'none';
464			}
465		}
466	}
467}
468
469
470
471
472//메인페이지 카테고리메뉴 보이기/안보이기  -- [ start ]
473function cateMenuView(flag)
474{
475
476	var cm_S = document.all["cateMainMenu_Simple"];
477	var cm_F = document.all["cateMainMenu_Full"];
478
479	if(flag == "cm_open")
480	{
481		cm_S.style.display = "none";
482		cm_F.style.display = "block";
483	}
484
485	if(flag == "cm_close")
486	{
487		cm_S.style.display = "block";
488		cm_F.style.display = "none";
489	}
490}
491//메인페이지 카테고리메뉴 보이기/안보이기  -- [ end ]
492
493
494
495
496
497// 추천키워드 메뉴 보이기/안보이기 -- [ start ]
498function keywordPopup(stat)
499{
500	//출력레이어ID
501	var keywordContent = document.all["pick_keyword"];
502
503	//버튼ID
504	var btnKeyword = document.all["btn_keyword"];
505
506	//버튼 이미지 교체
507	var nowImgSrc = btnKeyword.src.replace("img/btn_pop_keyword_03ani.gif","img/btn_pop_keyword_03ani.gif");
508
509	var reservSearchBar = document.getElementById("reservation_check");
510
511	if (stat == "on")
512	{
513		if (keywordContent.style.display == "none")
514		{
515			keywordContent.style.display = "block";
516			keywordContent.style.position = "absolute";
517			keywordContent.style.top = 163;
518			keywordContent.style.left = 70;
519			btnKeyword.src = nowImgSrc.replace("img/btn_pop_keyword_03ani.gif","img/btn_pop_keyword_03ov.gif");
520
521			reservSearchBar.style.display ="none";
522
523		}else{
524			keywordContent.style.display = "none";
525			btnKeyword.src = nowImgSrc.replace("img/btn_pop_keyword_03ov.gif","img/btn_pop_keyword_03ani.gif");
526
527			reservSearchBar.style.display ="block";
528		}
529	}
530}
531// 추천키워드 메뉴 보이기/안보이기 -- [ end ]
532
533
534
535
536
537// 전체 카테고리 메뉴 보이기/안보이기 -- [ start ]
538function categoryMenuAll(stat)
539{
540	//출력레이어ID
541	var keywordContent = document.all["category_menu_all"];
542
543	//버튼ID
544	var btnKeyword = document.all["btn_categoryMenu"];
545
546	//버튼 이미지 교체
547	var nowImgSrc = btnKeyword.src.replace("img/btn_pop_keyword_03ani.gif","img/btn_pop_keyword_03ani.gif");
548
549	if (stat == "on")
550	{
551		if (keywordContent.style.display == "none")
552		{
553			keywordContent.style.display = "block";
554			keywordContent.style.position = "absolute";
555			keywordContent.style.top = 163;
556			keywordContent.style.left = 70;
557			btnKeyword.src = nowImgSrc.replace("img/btn_pop_keyword_03ani.gif","img/btn_pop_keyword_03ov.gif");
558		}else{
559			keywordContent.style.display = "none";
560			btnKeyword.src = nowImgSrc.replace("img/btn_pop_keyword_03ov.gif","img/btn_pop_keyword_03ani.gif");
561		}
562	}
563}
564// 전체 카테고리 메뉴 보이기/안보이기 -- [ end ]
565
566
567
568
569
570// 전체 카테고리 메뉴 보이기/안보이기 2 -- [ start ]
571function categoryMenuAll2(stat)
572{
573	//출력레이어ID
574	var keywordContent = document.all["cateMainMenu_Full"];
575
576	//버튼ID
577	var btnKeyword = document.all["btn_categoryMenu"];
578
579	//버튼 이미지 교체
580	var nowImgSrc = btnKeyword.src.replace("img/btn_pop_keyword_03ani.gif","img/btn_pop_keyword_03ani.gif");
581
582	if (stat == "on")
583	{
584		if (keywordContent.style.display == "none")
585		{
586			keywordContent.style.display = "block";
587			keywordContent.style.position = "relative";
588			keywordContent.style.top = -122;
589			keywordContent.style.left = 0;
590			btnKeyword.src = nowImgSrc.replace("img/btn_pop_keyword_03ani.gif","img/btn_pop_keyword_03ov.gif");
591		}else{
592			keywordContent.style.display = "none";
593			btnKeyword.src = nowImgSrc.replace("img/btn_pop_keyword_03ov.gif","img/btn_pop_keyword_03ani.gif");
594		}
595	}
596}
597// 전체 카테고리 메뉴 보이기/안보이기 -- [ end ]
598
599
600
601
602
603
604
605// 상세검색관련 ( 지역선택에 해당 ) AJAX -- [ start ]
606var request;
607function createXMLHttpRequest()
608{
609	if (window.XMLHttpRequest) {
610	request = new XMLHttpRequest();
611	} else {
612	request = new ActiveXObject("Microsoft.XMLHTTP");
613	}
614}
615
616function startRequest(sel,target,target2,size,level,form_name)
617{
618	var trigger = sel.options[sel.selectedIndex].value;
619	var form = form_name;
620	createXMLHttpRequest();
621	request.open("GET", "sub_select.php?form=" + form + "&trigger=" + trigger + "&target=" + target + "&target2=" + target2 + "&level=" + level, true);
622	request.onreadystatechange = handleStateChange;
623	request.send(null);
624}
625function startRequest2(sel,target,target2,size,level,form_name)
626{
627	var trigger = sel.options[sel.selectedIndex].value;
628	var form = form_name;
629	createXMLHttpRequest();
630	request.open("GET", "sub_select_area.php?form=" + form + "&trigger=" + trigger + "&target=" + target + "&target2=" + target2 + "&level=" + level, true);
631	request.onreadystatechange = handleStateChange;
632	request.send(null);
633}
634
635function handleStateChange() {
636	if (request.readyState == 4) {
637		if (request.status == 200) {
638		var response = request.responseText.split("---cut---");
639		//alert(request.responseText);
640		eval(response[0]+ '.innerHTML=response[1]');
641		if (response[2])
642		{eval(response[2]+ '.innerHTML=response[3]');	}
643
644		window.status="전송완료"
645		}
646	}
647	if (request.readyState == 1)  {
648	window.status="로딩중"
649	}
650}
651// 상세검색관련 ( 지역선택에 해당 ) AJAX -- [ end ]
652
653
654
655//메인메뉴 전체보기 텝소스
656function change2_text(name1 , name2, name3, num, mode)
657{
658	//name1 = "room2_text_1"
659	//name2 = "category1_on"
660	//name3 = "category1_off"
661
662	document.getElementById(name1).style.display = "none";
663	document.getElementById(name1).style.display = "block";
664
665	if ( mode == "off" )
666	{
667		document.getElementById(name2).style.display	= "block";
668		document.getElementById(name3).style.display	= "none";
669	}
670	else
671	{
672		document.getElementById(name2).style.display	= "none";
673		document.getElementById(name3).style.display	= "block";
674
675		document.getElementById(name1).style.display = "none";
676	}
677}
678
679//컨텐츠파일 삭제 체크박스
680function contents_file_delete(obj,objname)
681{
682	//alert(obj.checked);
683	if ( eval('document.myform.'+objname) != undefined )
684	{
685		tmpform = eval('document.myform.'+objname);
686	}
687	else if ( eval('document.regiform.'+objname) != undefined )
688	{
689		tmpform = eval('document.regiform.'+objname);
690	}
691
692	if ( obj.checked == true )
693	{
694		//alert(eval('document.register.'+objname));
695		if ( tmpform != undefined )
696		{
697			tmpform.value = obj.value;
698		}
699	}
700	else
701	{
702		if ( tmpform != undefined )
703		{
704			tmpform.value = '';
705		}
706	}
707
708	alert(tmpform.value);
709
710}
711
712//상세페이지 첨부파일 클릭시
713function detail_file_link_click(msg,url)
714{
715	alert(msg);
716	location.href = url;
717}
718
719function contentsUseType(str)
720{
721	alert(str.value);
722}
723
724// edu_form.html / woo
725function on_streaming_tr(str)
726{
727	var tr_price_streaming	= document.getElementById('tr_price_streaming');
728
729	if(str.checked == true)
730	{
731		tr_price_streaming.style.display	= '';
732	}
733	else
734	{
735		tr_price_streaming.style.display	= 'none';
736	}
737}
738
739// edu_form.html / woo
740function on_download_tr(str)
741{
742	var tr_price_download	= document.getElementById('tr_price_download');
743
744	if(str.checked == true)
745	{
746		tr_price_download.style.display		= '';
747	}
748	else if( document.getElementById('buy_cfg_mov_all').checked == false )
749	{
750		tr_price_download.style.display		= 'none';
751	}
752}
753
754// edu_form.html / woo
755function on_limit_days(str)
756{
757	var tr_mov_limit_days	= document.getElementById('tr_mov_limit_days');
758
759	if(str.value == 'y')
760	{
761		tr_mov_limit_days.style.display	= '';
762	}
763	else
764	{
765		tr_mov_limit_days.style.display	= 'none';
766	}
767}
768
769// edu_form.html / woo
770function commify(n)
771{
772	var reg = /(^[+-]?\d+)(\d{3})/;	// 정규식
773	n += '';	// 숫자를 문자열로 변환
774	while (reg.test(n))
775		n = n.replace(reg, '$1' + ',' + '$2');
776	return n;
777}
778
779// 콤마 / woo
780function noCommify(num) {
781	return (num.replace(/\,/g,""));
782}
783
784// 콤마 / woo
785function setCommify(n)
786{
787	var x = commify(noCommify(n.value));
788	n.value = x;
789}
790
791// detail.php
792function go_buy_price(str,buy_type)
793{
794	var link			= '';
795
796	var buy_streaming	= document.getElementById('buy_streaming');
797	var buy_download	= document.getElementById('buy_download');
798
799	if(buy_streaming.checked == false && buy_download.checked == false)
800	{
801		alert('[스트리밍] 혹은 [다운로드] 를 선택해주십시오.');
802		return false;
803	}
804	else if(buy_streaming.checked == true && buy_download.checked == true)
805	{
806		//location.href	= str.href + '&price_type=streaming,download&buy_type=' + buy_type;
807		if( document.regiform == undefined )				//쇼핑몰 없는버젼
808		{
809			location.href	= str.href + '&price_type=streaming,download&buy_type=' + buy_type;
810		}
811		else												//쇼핑몰 있는 버젼
812		{
813			document.regiform.action = str.href + '&price_type=streaming,download&buy_type=' + buy_type;
814			document.regiform.submit();
815		}
816	}
817	else
818	{
819		if(buy_streaming.checked == true)
820		{
821			link	= 'streaming';
822		}
823		else if(buy_download.checked == true)
824		{
825			link	= 'download';
826		}
827		else
828		{
829			alert('선택해주십시오.');
830			return false;
831		}
832
833		if(link != '')
834		{
835			//location.href	= str.href + '&price_type=' + link + '&buy_type=' + buy_type;
836			if( document.regiform == undefined )			//쇼핑몰 없는버젼
837			{
838				location.href	= str.href + '&price_type=' + link + '&buy_type=' + buy_type;
839			}
840			else											//쇼핑몰 있는 버젼
841			{
842				document.regiform.action = str.href + '&price_type=' + link + '&buy_type=' + buy_type;
843				document.regiform.submit();
844			}
845		}
846	}
847}
848
849// detail.php
850function go_buy_price2(str,buy_type)
851{
852	var link			= '';
853
854	var buy_streaming	= document.getElementById('buy_streaming');
855	var buy_download	= document.getElementById('buy_download');
856
857	if( (buy_streaming != undefined && buy_streaming.checked == false && buy_streaming.disabled == false))
858	{
859		alert('[스트리밍] 을 선택해주십시오.');
860		return false;
861	}
862	else if( (buy_download != undefined && buy_download.checked == false && buy_download.disabled == false))
863	{
864		alert('[다운로드] 을 선택해주십시오.');
865		return false;
866	}
867	else if( (buy_streaming != undefined && buy_streaming.checked == false) && (buy_download != undefined && buy_download.checked == false) )
868	{
869		alert('[스트리밍] 혹은 [다운로드] 를 선택해주십시오.');
870		return false;
871	}
872	else if( (buy_streaming != undefined && buy_streaming.checked == true) && (buy_download != undefined && buy_download.checked == true) )
873	{
874		//location.href	= str.href + '&price_type=streaming,download&buy_type=' + buy_type;
875		document.regiform.action = str.href + '&price_type=streaming,download&buy_type=' + buy_type;
876		document.regiform.submit();
877	}
878	else
879	{
880		if(buy_streaming.checked == true)
881		{
882			link	= 'streaming';
883		}
884		else if(buy_download.checked == true)
885		{
886			link	= 'download';
887		}
888		else
889		{
890			alert('선택해주십시오.');
891			return false;
892		}
893
894		if(link != '')
895		{
896			//location.href	= str.href + '&price_type=' + link + '&buy_type=' + buy_type;
897			document.regiform.action = str.href + '&price_type=' + link + '&buy_type=' + buy_type;
898			document.regiform.submit();
899		}
900
901	}
902}
903
904// 선택
905function checkedArticle(name,url)
906{
907     if(name == '' || name == null || name == 'undefined')     alert('Error : No Element Name');
908     if(url == '' || url == null || url == 'undefined')     alert('Error : No Url');
909
910     var obj          = document.getElementsByName(name);
911     var tmp          = new Array();
912     var k          = 0;
913
914     for( var i = 0; i < obj.length; i++)
915     {
916          if(obj[i].checked == true)
917          {
918               tmp[k] = obj[i].value;
919               k++;
920          }
921     }
922     tmp.join(",");
923     //alert(tmp);
924
925     if(tmp != '')
926     {
927          location.href = url + tmp;
928     }
929}
930
931// 전체 선택
932function checkedArticleAll(chk,name)
933{
934	//if(chk == '' || chk == null || chk == 'undefined')          alert('Error : No Checked');
935	if(name == '' || name == null || name == 'undefined')     alert('Error : No Element Name');
936
937	if( typeof tab_number != 'undefined' )
938	{
939		switch( tab_number )
940		{
941			case '1' : name = name+'_movie';break;
942			case '2' : name = name+'_file';break;
943			case '3' : name = name+'_mp3';break;
944			default : name = name+'_movie';break;
945		}
946	}
947
948	var lng          = document.getElementsByName(name).length;
949
950	for( var i = 0; i < lng; i++)
951	{
952	  document.getElementsByName(name)[i].checked = chk;
953	}
954}
955
956function go_buy(this2,no,type)
957{
958	if(no != '')
959	{
960		tmpLink		= this2.href + '&sub_number=' + no + '&ajax=on';
961	}
962	if(tmpLink != '')
963	{
964		$.ajax({
965				type	: "GET",
966				url		: tmpLink,
967				success	: function(response) {
968					//alert(response);
969					if(response != 'error')
970					{
971						if(confirm('[확인] 클릭시 장바구니로 이동합니다.'))
972							location.href	= "./happy_cart.php";
973						else
974							return false;
975					}
976					else
977					{
978						alert('자신이 판매하는 상품을 구매하실수는 없습니다.');
979						return false;
980					}
981				}
982		});
983	}
984	return false;
985}
986
987function go_check_buy(no,type)
988{
989	//var	name	= 'no';
990	var name		= new Array('no_movie','no_file','no_mp3');
991	var tmp			= new Array();
992
993	var k		= 0;
994	for( z = 0 ; z < 3 ; z++)
995	{
996		var obj		= document.getElementsByName(name[z]);
997		for( var i = 0; i < obj.length; i++)
998		{
999			if(obj[i].checked == true)
1000			{
1001				tmp[k]	= obj[i].value;
1002				k++;
1003			}
1004		}
1005	}
1006
1007	tmp.join(",");
1008
1009	if(tmp != '')
1010	{
1011		//alert(this2.href + '&sub_number=' + tmp);
1012		if( type == 'streaming' )
1013		{
1014			if(confirm('[확인]시 선택하신 강좌를 담습니다. \n\n파일 종류는 스트리밍이 불가능하므로 장바구니에 담기지 않습니다.'))
1015				tmpLink	= 'happy_cart_reg.php?links_number=' + no + '&buy_type=one&price_type=' + type + '&sub_number=' + tmp;
1016			else
1017				return false;
1018		}
1019		else
1020		{
1021			if(confirm('[확인]시 선택하신 강좌를 담습니다.'))
1022				tmpLink	= 'happy_cart_reg.php?links_number=' + no + '&buy_type=one&price_type=' + type + '&sub_number=' + tmp;
1023			else
1024				return false;
1025		}
1026
1027	}
1028	else
1029	{
1030		alert("선택하신 것이 없습니다.\n구매하실 영상을 선택해주세요.");
1031		return false;
1032	}
1033
1034	if(tmpLink != '')
1035	{
1036		location.href	= tmpLink;
1037/*
1038		$.ajax({
1039				type	: "GET",
1040				url		: tmpLink,
1041				success	: function(response) {
1042					//alert(response);
1043					//if(confirm('[확인] 클릭시 장바구니로 이동합니다.'))
1044					location.href	= "./happy_cart.php";
1045					//else
1046					//return false;
1047				}
1048		});
1049*/
1050	}
1051	return false;
1052}
1053
1054function buy_all_price_display(str)
1055{
1056	var tr_price_streaming	= document.getElementById('tr_price_streaming');
1057	var tr_price_download	= document.getElementById('tr_price_download');
1058
1059	var streaming			= document.getElementById('streaming');
1060	var download			= document.getElementById('download');
1061
1062	if(str.checked == true)
1063	{
1064		if(streaming.checked == true)
1065			tr_price_streaming.style.display	= '';
1066
1067		tr_price_download.style.display		= '';
1068	}
1069	else
1070	{
1071		tr_price_streaming.style.display	= 'none';
1072		tr_price_download.style.display		= 'none';
1073	}
1074}
1075
1076// detail.html 에서 사용
1077function go_orderby(str,url)
1078{
1079	var order_str	= str.options[str.selectedIndex].value;
1080
1081	location.replace(url + '&order=' + order_str);
1082	//alert(order_str + ' / ' + url);
1083}
1084
1085// member_mov_list 에서 사용
1086function go_select_del(num)
1087{
1088	var name	= 'no';
1089	var obj		= document.getElementsByName(name);
1090	var tmp		= new Array();
1091	var k		= 0;
1092
1093	var tmpLink	= '';
1094
1095	for( var i = 0; i < obj.length; i++)
1096	{
1097		if(obj[i].checked == true)
1098		{
1099			tmp[k]	= obj[i].value;
1100			k++;
1101		}
1102	}
1103
1104	tmp.join(",");
1105	alert(tmp);
1106
1107	if(tmp != '')
1108	{
1109		if(confirm('정말 삭제하시겠습니까?\n동영상 파일ì
1109„ 포함한 모든 정보가 삭제됩니다.\n복구가 불가능합니다..'))
1110			location.href	= './member_mov_del.php?number=' + num + '&sub_number=' + tmp;
1111		else
1112			return false;
1113	}
1114}
1115
1116function goMovType(no)
1117{
1118	switch(no)
1119	{
1120		case 'swf_upload' :
1121			document.getElementById('swfUploadTr').style.display = '';
1122			document.getElementById('dirUploadTr').style.display = 'none';
1123			document.getElementById('urlUploadTr').style.display = 'none';
1124			document.getElementById('urlConnectTr').style.display = 'none';
1125		break;
1126		case 'dir_upload' :
1127			document.getElementById('swfUploadTr').style.display = 'none';
1128			document.getElementById('dirUploadTr').style.display = '';
1129			document.getElementById('urlUploadTr').style.display = 'none';
1130			document.getElementById('urlConnectTr').style.display = 'none';
1131		break;
1132		case 'url_upload' :
1133			document.getElementById('swfUploadTr').style.display = 'none';
1134			document.getElementById('dirUploadTr').style.display = 'none';
1135			document.getElementById('urlUploadTr').style.display = '';
1136			document.getElementById('urlConnectTr').style.display = 'none';
1137		break;
1138		case 'url_connect' :
1139			document.getElementById('swfUploadTr').style.display = 'none';
1140			document.getElementById('dirUploadTr').style.display = 'none';
1141			document.getElementById('urlUploadTr').style.display = 'none';
1142			document.getElementById('urlConnectTr').style.display = '';
1143		break;
1144	}
1145}
1146
1147function goMovType_low(no)
1148{
1149	switch(no)
1150	{
1151		case 'swf_upload' :
1152			document.getElementById('swfUploadTr_low').style.display = '';
1153			document.getElementById('dirUploadTr_low').style.display = 'none';
1154			document.getElementById('urlUploadTr_low').style.display = 'none';
1155			document.getElementById('urlConnectTr_low').style.display = 'none';
1156		break;
1157		case 'dir_upload' :
1158			document.getElementById('swfUploadTr_low').style.display = 'none';
1159			document.getElementById('dirUploadTr_low').style.display = '';
1160			document.getElementById('urlUploadTr_low').style.display = 'none';
1161			document.getElementById('urlConnectTr_low').style.display = 'none';
1162		break;
1163		case 'url_upload' :
1164			document.getElementById('swfUploadTr_low').style.display = 'none';
1165			document.getElementById('dirUploadTr_low').style.display = 'none';
1166			document.getElementById('urlUploadTr_low').style.display = '';
1167			document.getElementById('urlConnectTr_low').style.display = 'none';
1168		break;
1169		case 'url_connect' :
1170			document.getElementById('swfUploadTr_low').style.display = 'none';
1171			document.getElementById('dirUploadTr_low').style.display = 'none';
1172			document.getElementById('urlUploadTr_low').style.display = 'none';
1173			document.getElementById('urlConnectTr_low').style.display = '';
1174		break;
1175	}
1176}
1177
1178function is_file(type)
1179{
1180	var dir_upload_file = document.getElementById('dir_upload_file');
1181
1182	if(type == undefined)
1183	{
1184		type = 'movie';
1185	}
1186
1187	if(dir_upload_file.value != '')
1188	{
1189		ajax.callPage
1190		(
1191			"ajax_is_file.php?file="+encodeURI(dir_upload_file.value)+"&type="+type,
1192			function (response)
1193			{
1194				if(response == 'yes')
1195				{
1196					alert('파일 존재 여부를 확인 하였습니다.');
1197					document.getElementById('dir_upload_file_ok').value = response;
1198				}
1199				else if(response == 'no_yozii')
1200				{
1201					alert('요술지팡이를 이용하시는 경우 movie_file 폴더에 업로드 하셔야 합니다.');
1202					return false;
1203				}
1204				else if(response == 'ext')
1205				{
1206					alert('지원되지 않는 확장자 입니다.');
1207					return false;
1208				}
1209				else
1210				{
1211					alert('파일이 존재 하지 않습니다.');
1212					return false;
1213				}
1214			}
1215		);
1216	}
1217	else
1218	{
1219		alert('경로를 입력해 주세요.');
1220		return false;
1221	}
1222}
1223
1224function is_file_low(type)
1225{
1226	var dir_upload_file = document.getElementById('dir_upload_file_low');
1227
1228	if(type == undefined)
1229	{
1230		type = 'movie';
1231	}
1232
1233	if(dir_upload_file.value != '')
1234	{
1235		ajax.callPage
1236		(
1237			"ajax_is_file.php?file="+encodeURI(dir_upload_file.value)+"&type="+type,
1238			function (response)
1239			{
1240				if(response == 'yes')
1241				{
1242					alert('파일 존재 여부를 확인 하였습니다.');
1243					document.getElementById('dir_upload_file_low_ok').value = response;
1244				}
1245				else if(response == 'ext')
1246				{
1247					alert('지원되지 않는 확장자 입니다.');
1248					return false;
1249				}
1250				else
1251				{
1252					alert('파일이 존재 하지 않습니다.');
1253					return false;
1254				}
1255			}
1256		);
1257	}
1258	else
1259	{
1260		alert('경로를 입력해 주세요.');
1261		return false;
1262	}
1263}
1264
1265function is_url(type)
1266{
1267	var url_upload_file			= document.getElementById('url_upload_file');
1268	var url_upload_file_loading	= document.getElementById('url_upload_file_loading');
1269
1270	url_upload_file_loading.innerHTML	= '<div style="margin: 10px;">전송중 <img src="./img/gif-load.gif" style="vertical-align:middle;" /></div>';
1271
1272	if(type == undefined)
1273	{
1274		type = 'movie';
1275	}
1276
1277	if(url_upload_file.value != '')
1278	{
1279		document.url_upload_go.url.value	= url_upload_file.value;
1280		document.url_upload_go.type.value	= type;
1281		//document.url_upload_go.low.value	= '';
1282		document.url_upload_go.submit();
1283	}
1284	else
1285	{
1286		url_upload_file_loading.innerHTML	= '';
1287		alert('URL 을 입력해 주세요.');
1288		return false;
1289	}
1290}
1291
1292function is_url_low(type)
1293{
1294
1295	var url_upload_file			= document.getElementById('url_upload_file_low');
1296	var url_upload_file_loading	= document.getElementById('url_upload_file_loading_low');
1297
1298	url_upload_file_loading.innerHTML	= '<div style="margin: 10px;">전송중 <img src="./img/gif-load.gif" style="vertical-align:middle;" /></div>';
1299
1300	if(type == undefined)
1301	{
1302
1303		type = 'movie';
1304	}
1305
1306	if(url_upload_file.value != '')
1307	{
1308		document.url_upload_go.url.value	= url_upload_file.value;
1309		document.url_upload_go.type.value	= type;
1310		document.url_upload_go.low.value	= 'low';
1311		document.url_upload_go.submit();
1312	}
1313	else
1314	{
1315		url_upload_file_loading.innerHTML	= '';
1316		alert('URL 을 입력해 주세요.');
1317		return false;
1318	}
1319}
1320
1321
1322//상세페이지 탭
1323
1324function showHideLayer_bbs(num){
1325  var tabMenuSrc   = new Array("tabMenu1","tabMenu2","tabMenu3","tabMenu4");
1326  var tabMenuContSrc  = new Array("sample_1","sample_2","sample_3","sample_4");
1327
1328  var tabMenuButton  = new Array ();
1329  var tabMenuContLayer = new Array ();
1330
1331  for (var z=0; z < tabMenuSrc.length; z++ )
1332  {
1333   tabMenuButton.push (document.getElementById(tabMenuSrc[z]));
1334   tabMenuContLayer.push (document.getElementById(tabMenuContSrc[z]));
1335  }
1336
1337  for (var i=0; i<tabMenuButton.length ; i++ )
1338  {
1339   if ( i != num)
1340   {
1341    tabMenuButton[i].className = "noSelectBox";
1342    tabMenuContLayer[i].style.display = "none";
1343   }
1344   else
1345   {
1346    tabMenuButton[num].className = "selectBox"
1347    tabMenuContLayer[i].style.display = "";
1348   }
1349  }
1350 }
1351
1352
1353function detail_resizeFrame_bbs(iframe)
1354{
1355	var Frame_Body  = document.getElementById(iframe).contentDocument.body;
1356	var Frame_name  = document.all(iframe);
1357
1358	tmp_tag			= "#"+iframe;
1359	//Frame_name.style.width		= document.getElementById(iframe).style.width;
1360
1361	//Frame_name.style.width		= Frame_Body.scrollWidth + (Frame_Body.offsetWidth-Frame_Body.clientWidth) + "px";
1362	Frame_name.style.height		= Frame_Body.scrollHeight + (Frame_Body.offsetHeight-Frame_Body.clientHeight) + "px";
1363
1364	if ( Frame_name.style.width == "0px")
1365	{
1366		Frame_name.style.width = "1400px";       //기본 iframe 너비
1367	}
1368
1369	if ( Frame_name.style.height == "0px" )
1370	{
1371		Frame_name.style.height = "200px";      //기본 iframe 높이
1372	}
1373
1374//	console.log(Frame_name.style.height);
1375
1376	$('#'+iframe).autoHeight();
1377
1378}
1379
1380
1381// 퀵메뉴고정
1382if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
1383	cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
1384}
1385else{
1386	cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
1387}
1388var menu_bodyCSS='* html {background:#ffffff;}';
1389var menu_fixedCSS='#menu_fixed{position:fixed;';
1390var menu_fixedCSS=menu_fixedCSS+'_position:relative;';
1391var menu_fixedCSS=menu_fixedCSS+'z-index:999;';
1392var menu_fixedCSS=menu_fixedCSS+'width:100%;';
1393var menu_fixedCSS=menu_fixedCSS+'top:140px;';
1394var menu_fixedCSS=menu_fixedCSS+'left:50%;';
1395var menu_fixedCSS=menu_fixedCSS+'clip:rect(0 100% 100% 0);';
1396var menu_fixedCSS=menu_fixedCSS+cot_t1_DOCtp;
1397document.write('<style type="text/css">'+menu_bodyCSS+menu_fixedCSS+'</style>');
1398// 퀵메뉴고정
1399
1400function add_bookmark_click()
1401{
1402	try
1403	{
1404		window.external.AddFavorite(parent.location.href, document.title);
1405	}
1406	catch (e)
1407	{
1408		alert("Ctrl+D 키를 누르면 즐겨찾기에 추가하실수 있습니다.");
1409	}
1410}
1411
1412
1413
1414
1415
1416//checkbox 전체체크
1417function checkedAll(checked_bool,e_name)
1418{
1419	if(checked_bool)
1420	{
1421		$('input[name='+e_name+']:checkbox').each(function(){
1422			$(this).prop('checked',true);
1423		});
1424	}
1425	else
1426	{
1427		$('input[name='+e_name+']:checkbox').each(function(){
1428			$(this).prop('checked',false);
1429		});
1430	}
1431}
1432
1433
1434function search_change_text(num)
1435{
1436	for ( i=1 ; i<3 ; i++ )
1437	{
1438		disp = i == num ? '' : 'none';
1439		document.getElementById('search_text_'+i).style.display = disp;
1440	}
1441}
1442
1443
1444// 탭메뉴 자바스크립트
1445happy_tab_menu_now  = new Array();
1446function happy_tab_menu(layer, nowNumber)
1447{
1448	if ( happy_tab_menu_now[layer] == undefined )
1449	{
1450		happy_tab_menu_now[layer]	= 1;
1451	}
1452
1453	if ( happy_tab_menu_now[layer] == nowNumber )
1454	{
1455		return false;
1456	}
1457
1458	var obj						= document.getElementById(layer+'_'+ nowNumber);
1459	var obj_layer				= document.getElementById(layer+'_layer_'+ nowNumber);
1460	var obj_old					= document.getElementById(layer+'_'+ happy_tab_menu_now[layer]);
1461	var obj_old_layer			= document.getElementById(layer+'_layer_'+ happy_tab_menu_now[layer]);
1462
1463	if ( obj.getAttribute("oversrc") != undefined && obj.getAttribute("outsrc") != undefined && obj.src != undefined && obj_old.src != undefined )
1464	{
1465		obj.src						= obj.getAttribute("oversrc");
1466		obj_old.src					= obj_old.getAttribute("outsrc");
1467	}
1468	else if ( obj.getAttribute("overClass") != undefined && obj.getAttribute("outClass") != undefined && obj.className != undefined && obj_old.className != undefined )
1469	{
1470		obj.className				= obj.getAttribute("overClass");
1471		obj_old.className			= obj_old.getAttribute("outClass");
1472	}
1473	else
1474	{
1475		obj_layer.innerHTML			= obj_layer.innerHTML + '<br><font color=red>happy_tab_menu() 함수 구동 오류</font>';
1476	}
1477
1478
1479	obj_layer.style.display		= '';
1480	obj_old_layer.style.display	= 'none';
1481
1482	happy_tab_menu_now[layer]	= nowNumber;
1483
1484	//탭메뉴 display:none 에 따른 대응코드
1485	$(window).trigger('resize');
1486}
1487// 탭메뉴 자바스크립트
1488
1489
1490//스크랩
1491function zzim_update_ajax(action,no, zzim_btn)
1492{
1493	/*
1494	if (zzim_btn.getAttribute('class') == 'common_rows_btn_scrap on')
1495	{
1496		action = 'del';
1497	}
1498	if (zzim_btn.getAttribute('class') == 'common_rows_btn_scrap off')
1499	{
1500		action = 'add';
1501	}
1502	*/
1503
1504	$.ajax({
1505		type: "GET",
1506		url: "./my_zzim.php",
1507		data: {
1508			action		: action,
1509			number		: no,
1510			chk			: "ajax"
1511		},
1512		success:function( respons ) {
1513			var responses	= respons.split("___cut___");
1514
1515			if ( responses[0] == "ok" )
1516			{
1517				if (action == 'add')
1518				{
1519					$(zzim_btn).addClass('scrap_on');
1520					
1521					$(zzim_btn).attr('onclick','').unbind('click');
1522
1523					$(zzim_btn).on('click',function(){ 
1524						zzim_update_ajax('del', no, zzim_btn); 
1525					});
1526				}
1527				else
1528				{
1529					$(zzim_btn).removeClass('scrap_on');
1530
1531					$(zzim_btn).attr('onclick','').unbind('click');
1532
1533					$(zzim_btn).on('click',function(){ 
1534						zzim_update_ajax('add', no, zzim_btn); 
1535					});
1536				}
1537			}
1538			else
1539			{
1540			}
1541		}
1542	});
1543}
1544
1545//detail 스크랩
1546function zzim_update_detail_ajax(action,no, zzim_btn)
1547{
1548	/*
1549	if (zzim_btn.getAttribute('class') == 'detail_btn_scrap on')
1550	{
1551		action = 'del';
1552	}
1553	if (zzim_btn.getAttribute('class') == 'detail_btn_scrap')
1554	{
1555		action = 'add';
1556	}
1557	*/
1558
1559	$.ajax({
1560		type: "GET",
1561		url: "./my_zzim.php",
1562		data: {
1563			action		: action,
1564			number		: no,
1565			chk			: "ajax"
1566		},
1567		success:function( respons ) {
1568			var responses	= respons.split("___cut___");
1569
1570			if ( responses[0] == "ok" )
1571			{
1572				if (action == 'add')
1573				{
1574					zzim_btn.setAttribute('class', 'detail_btn_scrap on');
1575				}
1576				else
1577				{
1578					zzim_btn.setAttribute('class', 'detail_btn_scrap');
1579				}
1580			}
1581			else
1582			{
1583			}
1584		}
1585	});
1586}
1587
1588
1589//회차보기 레이어 함수
1590var last_video_layer_id		= '';
1591
1592function view_video_layer( layer_id )
1593{
1594	var Obj					= document.getElementById(layer_id);
1595	var Obj2				= document.getElementById(layer_id+'_arrow');
1596	
1597	if ( Obj )
1598	{
1599		Obj.style.display		= Obj.style.display == ''? 'none' : '';
1600	}
1601
1602	if ( Obj2 )
1603	{
1604		Obj2.style.display		= Obj.style.display;
1605	}
1606
1607	if ( Obj.style.display == '' && last_video_layer_id != '' && last_video_layer_id != layer_id )
1608	{
1609		var lastObj				= document.getElementById(last_video_layer_id);
1610		var lastObj2			= document.getElementById(last_video_layer_id+'_arrow');
1611
1612		if ( lastObj )
1613		{
1614			lastObj.style.display	= 'none';
1615		}
1616
1617		if ( lastObj2 )
1618		{
1619			lastObj2.style.display	= lastObj.style.display;
1620		}
1621	}
1622
1623	last_video_layer_id		= layer_id;
1624}
1625
1626
1627
1628//배경 클릭시 슬라이드 닫기
1629document.addEventListener("DOMContentLoaded", function(){ // jQuery 로딩 오류가 나서 javascript로 대체함
1630
1631	$(document).on("click",function(e){
1632
1633		if ( last_video_layer_id != "" )
1634		{
1635			//지정된 구역 빼고 클릭시 레이어 닫기
1636			if ( 
1637				$('#'+last_video_layer_id).has(e.target).length == 0				//슬라이드 레이어
1638				&& $('#'+last_video_layer_id+'_arrow').has(e.target).length == 0	//슬라이드 레이어 상단 화살표
1639				&& $(e.target).hasClass('movie_pack_icon') == false					//슬라이드 레이어 열기 버튼
1640				&& $('#happy_plyr_container').has(e.target).length == 0				//플레이어 레이어
1641				&& $(e.target).hasClass('close_icon') == false						//플레이어 레이어 닫기 버튼
1642			)
1643			{
1644				/*
1645				console.log(" 슬라이드 레이어 :: " + $('#'+last_video_layer_id).has(e.target).length);
1646				console.log(" 슬라이드 레이어 상단 화살표 :: " + $('#'+last_video_layer_id+'_arrow').has(e.target).length);
1647				console.log(" 회차보기 버튼 :: " + $(e.target).hasClass('movie_pack_icon'));
1648				console.log(" 플레이어 레이어 :: " + $('#happy_plyr_container').has(e.target).length);
1649				console.log(" 플레이어 닫기 버튼 :: " + $(e.target).hasClass('close_icon'));
1650				
1651				console.log(':: hide ::');
1652				*/
1653				
1654				$('#'+last_video_layer_id).hide();
1655				$('#'+last_video_layer_id+'_arrow').hide();
1656
1657				last_video_layer_id		= '';
1658			}
1659			
1660		}
1661		
1662	});
1663
1664});
1665
1666
1667
1668var last_slider_obj		= '';
1669var last_slider_load	= false;
1670
1671function view_video_slider(layer_id,file_type)
1672{
1673	if ( last_slider_load == true )
1674	{
1675		return;
1676	}
1677
1678	var file_type_arr	= Array('movie','file','mp3');
1679
1680	for ( var i = 0 ; i < file_type_arr.length ; i++ )
1681	{
1682		if ( file_type_arr[i] == file_type )
1683		{
1684			$("#"+layer_id+"_"+file_type_arr[i]).addClass("on");
1685		}
1686		else
1687		{
1688			$("#"+layer_id+"_"+file_type_arr[i]).removeClass("on");
1689		}
1690	}
1691}
1692
1693
1694function is_msie()
1695{
1696	var ua = window.navigator.userAgent;
1697	var msie = ua.indexOf("MSIE ");
1698
1699	if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))  // If Internet Explorer, return version number
1700	{
1701		//alert('ie');
1702		return true;
1703	}
1704	else  // If another browser, return 0
1705	{
1706		//alert('other');
1707		return false;
1708	}
1709}
1710
1711
1712function fireRefreshEventOnWindow()
1713{
1714	var evt = document.createEvent("HTMLEvents");
1715	evt.initEvent('resize', true, false);
1716	window.dispatchEvent(evt);
1717}
1718
1719
1720function ajax_upso_list_main_sub_slide(links_number,layer_id,file_type,func_arg_value)
1721{
1722	if ( last_slider_load == false )
1723	{
1724		last_slider_load	= true;
1725	}
1726	else
1727	{
1728		alert(" 회차 정보를 읽어오는 중 입니다. \n 잠시 후 다시 시도해주세요. ");
1729		return;
1730	}
1731
1732	if ( last_slider_obj )
1733	{
1734		last_slider_obj.destroySlider();
1735	}
1736	
1737	$("#"+layer_id+"_button").hide();
1738	$("#"+layer_id+"_slider").hide();
1739	$("#"+layer_id+"_no").hide();
1740
1741	$("#"+layer_id+"_load").show();
1742
1743	$.ajax({
1744		type	: "GET",
1745		url		: "ajax_sub_list_slide.php",
1746		data	: {
1747			links_number	: links_number,
1748			layer_id		: layer_id,
1749			func_arg_value	: func_arg_value
1750		},
1751		success:function( respons ) {
1752
1753			var responses		= respons.split("___cut___");
1754
1755			if ( responses[0] == "ok" )
1756			{
1757				//console.log(responses[2]);
1758
1759				if ( parseInt(responses[2]) > 0 )
1760				{
1761					//console.log(responses[1]);
1762					$("#"+layer_id+"_slider").html(responses[1]);
1763
1764					$("#"+layer_id+"_slider").show();
1765
1766					var slider_width	= $("#"+layer_id+"_slider").width();
1767
1768					if ( slider_width == "" )
1769					{
1770						slider_width		= 1400;
1771					}
1772					
1773					// bxSlider 옵션 참고
1774					// https://bxslider.com/options/
1775					last_slider_obj = $("#"+layer_id+"_slider").bxSlider({
1776						mode			: 'horizontal',						//기본 : horizontal , 위 아래로 : vertical , 흐림효과 : fade
1777						speed			: 500,								//슬라이드 속도
1778						slideWidth		: slider_width,						//슬라이드 div 가로크기
1779						prevSelector	: '#'+layer_id+'_prev',	//이전 슬라이드 무빙기능에 사용될 DIV ID
1780						nextSelector	: '#'+layer_id+'_next',	//다음 슬라이드 무빙기능에 사용될 DIV ID
1781						prevText		: '<img src="img/btn_slider_left.png" alt="이전" title="이전">
1781',	//이전 슬라이드 버튼
1782						nextText		: '<img src="img/btn_slider_right.png" alt="다음" title="다음">',	//다음 슬라이드 버튼
1783						pager			: false,							//하단 li 형식의 무빙기능 true/false
1784						pause			: 5000,								//슬라이드 속도 integer 타입으로 입력 1000 = 1초
1785						touchEnabled	: false,
1786						infiniteLoop	: ( is_msie() ) ? false : true,
1787						onSliderLoad	: function(){
1788
1789							$("#"+layer_id+"_slider").css(
1790								"-webkit-transform", 
1791								"translate3d(-" + slider_width + "px, 0, 0)" 
1792							); 
1793
1794							if ( parseInt(responses[2]) > 1 )
1795							{
1796								$("#"+layer_id+"_button").show();
1797							}
1798
1799							$("#"+layer_id+"_slider").show();
1800
1801							last_slider_load	= false;
1802						 }
1803					});
1804				}
1805				else
1806				{
1807					$("#"+layer_id+"_slider").html("no");
1808
1809					var no_type_text	= '';
1810
1811					switch ( file_type )
1812					{
1813						case 'movie'	: no_type_text		= "동영상이";	break;
1814						case 'file'		: no_type_text		= "파일이";		break;
1815						case 'mp3'		: no_type_text		= "MP3가";		break;
1816					}
1817
1818					$("#"+layer_id+"_no_type").html(no_type_text);
1819
1820					$("#"+layer_id+"_no").show();
1821
1822					last_slider_load	= false;
1823				}
1824
1825				$("#"+layer_id+"_load").hide();
1826			}
1827			else
1828			{
1829				console.log(respons);
1830				//alert("오류가 발생했습니다. 관리자에게 문의하세요.\n\n"+respons);
1831			}
1832
1833			return;
1834		}
1835	});
1836}
1837
1838
1839function attent_view_calendar_move(links_number,s_year,s_month,tpl_d,tpl_r,tpl_a,bg_exist,bg_exist_not,is_admin)
1840{
1841	$.ajax({
1842		url		: 'attend_view_ajax.php',
1843		type	: 'GET',
1844		data	: {
1845			links_number	: links_number,
1846			s_year			: s_year,
1847			s_month			: s_month,
1848			template_d		: tpl_d,
1849			template_r		: tpl_r,
1850			template_a		: tpl_a,
1851			bg_exist		: bg_exist,
1852			bg_exist_not	: bg_exist_not,
1853			is_admin		: is_admin
1854		},
1855		success	: function(respon){
1856
1857			var responses	= respon.split("___cut___");
1858
1859			if ( responses[0] == "ok" )
1860			{
1861				$("#attend_view_calendar_layer_"+links_number).html(responses[1]);
1862			}
1863		}
1864	});
1865}
1866
1867//화살표 회전 소스
1868function view_layer_rotate( layer_id , rotate_obj )
1869{
1870	Obj						= document.getElementById(layer_id);
1871
1872	if ( Obj.style.display == '' )
1873	{
1874		Obj.style.display		= 'none';
1875
1876		if ( rotate_obj )
1877		{
1878			$(rotate_obj).removeClass('uk-open');
1879		}
1880	}
1881	else
1882	{
1883		Obj.style.display		= '';
1884
1885		if ( rotate_obj )
1886		{
1887			$(rotate_obj).addClass('uk-open');
1888		}
1889	}
1890}
1891
1892var lastone_view_layer_id		= "";
1893var lastone_view_rotate_obj		= "";
1894
1895function view_layer_rotate_lastone( layer_id , rotate_obj )
1896{
1897	if ( lastone_view_layer_id != "" && lastone_view_layer_id != layer_id )
1898	{
1899		document.getElementById(lastone_view_layer_id).style.display = 'none';
1900
1901		if ( lastone_view_rotate_obj != "" && lastone_view_rotate_obj != rotate_obj )
1902		{
1903			$(lastone_view_rotate_obj).removeClass('uk-open');
1904		}
1905	}
1906
1907	Obj						= document.getElementById(layer_id);
1908
1909	if ( Obj.style.display == '' )
1910	{
1911		Obj.style.display		= 'none';
1912
1913		if ( rotate_obj )
1914		{
1915			$(rotate_obj).removeClass('uk-open');
1916		}
1917	}
1918	else
1919	{
1920		Obj.style.display		= '';
1921
1922		if ( rotate_obj )
1923		{
1924			$(rotate_obj).addClass('uk-open');
1925		}
1926	}
1927
1928	lastone_view_layer_id		= layer_id;
1929	lastone_view_rotate_obj		= rotate_obj;
1930}
1931
1932function tabMenu() {
1933	var tabs = document.getElementById('tabmenu');
1934	var tab = tabs.getElementsByTagName('a'); // 탭 요소
1935	var contents = document.getElementById('tabcontents');
1936	var content = getElementsByClassName('tabcontent',contents); // 컨텐츠 요소 class
1937	var chk = 'selected'; // 선택된 탭의 class
1938	var over = 'over'; // 롤오버된 탭의 class
1939	var type = true; // 롤오버의 true / false
1940
1941	for (var i=0; i<tab.length; i++) {
1942		tabDisplay(tab,content,0,chk,over,true);
1943		tabAct(tab,content,i,chk,over,type);
1944	}
1945}
1946//카테고별 메뉴 자바스트립트
1947function category_change(name1 , name2, name3, num, mode)
1948{
1949	//name1 = "room2_text_1"
1950	//name2 = "category1_on"
1951	//name3 = "category1_off"
1952
1953	document.getElementById(name1).style.display = "none";
1954	document.getElementById(name1).style.display = "";
1955
1956	if ( mode == "off" )
1957	{
1958		document.getElementById(name2).style.display	= "";
1959		document.getElementById(name3).style.display	= "none";
1960	}
1961	else
1962	{
1963		document.getElementById(name2).style.display	= "none";
1964		document.getElementById(name3).style.display	= "";
1965
1966		document.getElementById(name1).style.display = "none";
1967	}
1968}
1969//카테고별 메뉴 자바스트립트
1970
1971function detail_overflow_ch(overflow_btn)
1972{
1973	document.getElementById('detail_overflow').style.overflow=false; 
1974	document.getElementById('detail_overflow').style.height=''; 
1975	
1976	$("#detail_overflow").css('max-height','');
1977	overflow_btn.style.display='none';
1978}
1979
1980
1981function detail_overflow_default(ch_height)
1982{
1983	var realheight	= $("#detail_overflow").height();
1984	if (realheight < ch_height)
1985	{
1986		$("#overflow_btn").css('display','none');
1987	}
1988}
1989
1990
1991
1992function my_view_del(number)
1993{
1994	if ( confirm("내역을 삭제하시겠습니까?") )
1995	{
1996		window.location.href = "happy_member.php?mode=my_view_del&number="+number+"&returnUrl="+encodeURIComponent(window.location.href);
1997	}
1998}
1999
2000
2001
2002function confirm_download(url)
2003{
2004	msg = "동영상 파일을 다운로드 하실 경우 \n다운로드가능 회수가 1회 차감됩니다";
2005	msg+= "\n\n다운로드 가능회수가 무제한인 상품은 변동이 없습니다.";
2006	msg+= "\n\n다운로드시 구매완료로 주문건의 상태가 변경되게 됩니다.";
2007	msg+= "\n구매완료된 주문건은 구매취소가 안되게 됩니다.";
2008
2009	if ( confirm(msg) )
2010	{
2011		document.location.href = url;
2012	}
2013}
2014
2015function confirm_cancel(url)
2016{
2017	msg = "구매신청내역의 환불처리를 원하시나요? \n입금 후 상태이므로 관리자 확인후 환불이 됩니다.    \n\n구매를 취소하시려면 아래 [확인버]튼을 클릭하세요.";
2018
2019	if ( confirm(msg) )
2020	{
2021		document.location.href = url;
2022	}
2023}
2024
2025
2026function leadingZeros(n, digits) {
2027	var zero = '';
2028	n = n.toString();
2029
2030	if (n.length < digits) {
2031		for (i = 0; i < digits - n.length; i++)
2032			zero += '0';
2033	}
2034	return zero + n;
2035}
2036
2037
2038function change_search_date(startDate)
2039{
2040	var toDay		= new Date();
2041	var endDate		= leadingZeros(toDay.getFullYear(), 4) + '-';
2042	endDate			+= leadingZeros(toDay.getMonth() + 1, 2) + '-';
2043	endDate			+= leadingZeros(toDay.getDate(), 2);
2044
2045	document.getElementById('start_date').value		= startDate;
2046	document.getElementById('end_date').value		= endDate;
2047}
2048
2049
2050
2051function upso_list_main_sub_ajax(links_sub_layer_id,file_type,ajaxNum,layerName,query_string,vals,select_info_number)
2052{
2053//	console.log($("#"+links_sub_layer_id + "_" + file_type).html());
2054	if ( $("#"+links_sub_layer_id + "_" + file_type).html() == "" )
2055	{
2056		$("#"+links_sub_layer_id + "_load").show();
2057
2058		$.ajax({
2059			url		: 'ajax_sub_list.php',
2060			type	: 'GET',
2061			data	: {
2062				ajaxNum				: ajaxNum,
2063				layerName			: layerName,
2064				query_string		: query_string,
2065				vals				: vals,
2066				select_info_number	: select_info_number,
2067				ajaxSort			: $("#upso_list_sort").val()
2068			},
2069			success	: function(response){
2070
2071				var responses = response.split('___count___');
2072				
2073				$("#"+links_sub_layer_id + "_load").hide();
2074				$("#"+links_sub_layer_id + "_" + file_type).html(responses[0]);
2075			}
2076		});
2077	}
2078}
2079
2080
2081function onlyNumber(event){
2082	event = event || window.event;
2083	var keyID = (event.which) ? event.which : event.keyCode;
2084	if ( (keyID >= 48 && keyID <= 57) || (keyID >= 96 && keyID <= 105) || keyID == 8 || keyID == 46 || keyID == 37 || keyID == 39 ) 
2085		return;
2086	else
2087		return false;
2088}
2089function removeChar(event) {
2090	event = event || window.event;
2091	var target = event.target || event.srcElement; //event.target 이 안먹어서 추가 hong
2092	var keyID = (event.which) ? event.which : event.keyCode;
2093	if ( keyID == 8 || keyID == 46 || keyID == 37 || keyID == 39 ) 
2094		return;
2095	else
2096		target.value = target.value.replace(/[^0-9]/g, "");
2097}
2098
2099
2100
2101
2102function youngsu_type_check()
2103{
2104	var myform = document.basket;
2105
2106	input_check_tax = '';
2107	input_check_cash = '';
2108	var youngsutype		= document.getElementsByName('youngsu_type[]');
2109	for(var i=0; i<youngsutype.length; i++)
2110	{
2111		if( youngsutype[i].checked == true )
2112		{
2113			if ( youngsutype[i].value == "tax" )
2114			{
2115				input_check_tax = 'tax';
2116			}
2117
2118			if ( youngsutype[i].value == "cash" )
2119			{
2120				input_check_cash = 'cash';
2121			}
2122		}
2123	}
2124	//alert(input_check_tax);
2125	//alert(input_check_cash);
2126
2127	if( input_check_tax == 'tax' )
2128	{
2129		if( myform.buyer_biz_number1.value == '' )
2130		{
2131			alert('사업자 번호를 입력하세요');
2132			myform.buyer_biz_number1.focus();
2133			return false;
2134		}
2135		if( myform.buyer_biz_number2.value == '' )
2136		{
2137			alert('사업자 번호를 입력하세요');
2138			myform.buyer_biz_number2.focus();
2139			return false;
2140		}
2141		if( myform.buyer_biz_number3.value == '' )
2142		{
2143			alert('사업자 번호를 입력하세요');
2144			myform.buyer_biz_number3.focus();
2145			return false;
2146		}
2147		if( myform.buyer_biz_name.value == '' )
2148		{
2149			alert('상호명을 입력하세요');
2150			myform.buyer_biz_name.focus();
2151			return false;
2152		}
2153		if( myform.buyer_biz_ceo.value == '' )
2154		{
2155			alert('대표자명을 입력하세요');
2156			myform.buyer_biz_ceo.focus();
2157			return false;
2158		}
2159		if( myform.buyer_biz_addr.value == '' )
2160		{
2161			alert('사업장주소 입력하세요');
2162			myform.buyer_biz_addr.focus();
2163			return false;
2164		}
2165		if( myform.buyer_biz_uptae.value == '' )
2166		{
2167			alert('업태 입력하세요');
2168			myform.buyer_biz_uptae.focus();
2169			return false;
2170		}
2171		if( myform.buyer_biz_jongmok.value == '' )
2172		{
2173			alert('종목 입력하세요');
2174			myform.buyer_biz_jongmok.focus();
2175			return false;
2176		}
2177		if( myform.buyer_biz_email.value == '' )
2178		{
2179			alert('이메일을 입력하세요');
2180			myform.buyer_biz_email.focus();
2181			return false;
2182		}
2183	}
2184	
2185	
2186	if( input_check_cash == 'cash' )
2187	{
2188		var cashreason		= document.getElementsByName('cash_reason');
2189		for(var i=0; i<cashreason.length; i++)
2190		{
2191			if( cashreason[i].checked == true )
2192			{
2193				cash_reason_val	= cashreason[i].value;
2194				break;
2195			}
2196		}
2197
2198		if( cash_reason_val == 'per' )
2199		{
2200			var cash_type_var = document.getElementById('cash_type').value;
2201			if( cash_type_var == 'jumin' )
2202			{
2203				if( myform.cash_jumin1.value == '' )
2204				{
2205					alert('주민번호를 입력하세요');
2206					myform.cash_jumin1.focus();
2207					return false;
2208				}
2209				if( myform.cash_jumin2.value == '' )
2210				{
2211					alert('주민번호를 입력하세요');
2212					myform.cash_jumin2.focus();
2213					return false;
2214				}
2215			}
2216			else if( cash_type_var == 'phone' )
2217			{
2218				if( myform.cash_phone1.value == '' )
2219				{
2220					alert('휴대폰번호를 입력하세요');
2221					myform.cash_phone1.focus();
2222					return false;
2223				}
2224				if( myform.cash_phone2.value == '' )
2225				{
2226					alert('휴대폰번호를 입력하세요');
2227					myform.cash_phone2.focus();
2228					return false;
2229				}
2230				if( myform.cash_phone3.value == '' )
2231				{
2232					alert('휴대폰번호를 입력하세요');
2233					myform.cash_phone3.focus();
2234					return false;
2235				}
2236			}
2237			else if( cash_type_var == 'card' )
2238			{
2239				if( myform.cash_card1.value == '' )
2240				{
2241					alert('카드번호를 입력하세요');
2242					myform.cash_card1.focus();
2243					return false;
2244				}
2245				if( myform.cash_card2.value == '' )
2246				{
2247					alert('카드번호를 입력하세요');
2248					myform.cash_card2.focus();
2249					return false;
2250				}
2251				if( myform.cash_card3.value == '' )
2252				{
2253					alert('카드번호를 입력하세요');
2254					myform.cash_card3.focus();
2255					return false;
2256				}
2257				if( myform.cash_card4.value == '' )
2258				{
2259					alert('카드번호를 입력하세요');
2260					myform.cash_card4.focus();
2261					return false;
2262				}
2263			}
2264		}
2265		else if( cash_reason_val == 'com' )
2266		{
2267			if( myform.cash_text1.value == '' )
2268			{
2269				alert('사업자번호를 입력하세요');
2270				myform.cash_text1.focus();
2271				return false;
2272			}
2273			if( myform.cash_text2.value == '' )
2274			{
2275				alert('사업자번호를 입력하세요');
2276				myform.cash_text2.focus();
2277				return false;
2278			}
2279			if( myform.cash_text3.value == '' )
2280			{
2281				alert('사업자번호를 입력하세요');
2282				myform.cash_text3.focus();
2283				return false;
2284			}
2285		}
2286	}
2287
2288	return true;
2289}
2290
2291// 영수증 발행요청
2292function youngsu_type_onclick(_this)
2293{
2294	try
2295	{
2296		window.dispatchEvent(new Event('resize'));
2297	}
2298	catch (e)
2299	{
2300		var fireRefreshEventOnWindow = function () {
2301			var evt = document.createEvent("HTMLEvents");
2302			evt.initEvent('resize', true, false);
2303			window.dispatchEvent(evt);
2304			//alert('aaa');
2305		};
2306
2307		fireRefreshEventOnWindow();
2308	}
2309
2310	switch( _this.value )
2311	{
2312		case "no" :
2313			$(".tr_tax").each(function(){
2314				$(this).hide();
2315			});
2316			$(".tr_cash").each(function(){
2317				$(this).hide();
2318			});
2319		break;
2320
2321		case "tax" :
2322			if ( _this.checked == true )
2323			{
2324				$(".tr_tax").each(function(){
2325					$(this).show();
2326				});
2327			}
2328			else
2329			{
2330				$(".tr_tax").each(function(){
2331					$(this).hide();
2332				});
2333				
2334				$('input:checkbox[name="tax_req[]"]').each(function() { this.checked = false; });
2335			}
2336		break;
2337
2338		case "cash" :
2339			if ( _this.checked == true )
2340			{
2341				$(".tr_cash").each(function(){
2342					$(this).show();
2343				});
2344
2345				if ( $("#cash_reason1").is(":checked") )
2346				{
2347					$("#cash_reason_per").show();
2348					$("#cash_reason_com").hide();
2349				}
2350				else
2351				{
2352					$("#cash_reason_per").hide();
2353					$("#cash_reason_com").show();
2354				}
2355			}
2356			else
2357			{
2358				$(".tr_cash").each(function(){
2359					$(this).hide();
2360				});
2361				$("#cash_reason_per").hide();
2362				$("#cash_reason_com").hide();
2363
2364				$('input:checkbox[name="cash_req[]"]').each(function() { this.checked = false; });
2365			}
2366		break;
2367	}
2368
2369	try
2370	{
2371		window.dispatchEvent(new Event('resize'));
2372	}
2373	catch (e)
2374	{
2375		var fireRefreshEventOnWindow = function () {
2376			var evt = document.createEvent("HTMLEvents");
2377			evt.initEvent('resize', true, false);
2378			window.dispatchEvent(evt);
2379		};
2380
2381		fireRefreshEventOnWindow();
2382	}
2383}
2384
2385
2386function youngsu_req_no(req_type)
2387{
2388	if ( req_type == 'tax' )
2389	{
2390		alert('세금계산서를 신청하실수 없는 상품입니다');
2391	}
2392	else if ( req_type == 'cash' )
2393	{
2394		alert('현금영수증을 신청하실수 없는 상품입니다');
2395	}
2396}
2397
2398function youngsu_req_checked(req_type,checkbox)
2399{
2400	//alert(req_type+"::"+checkbox.value);
2401	if ( req_type == 'tax' )
2402	{
2403		checked_name = 'cash_req[]';
2404		msg = "현금영수증을 신청하셨습니다.";
2405	}
2406	else if ( req_type == 'cash' )
2407	{
2408		checked_name = 'tax_req[]';
2409		msg= "세금계산서를 신청하셨습니다.";
2410	}
2411	//alert(checked_name);
2412
2413	$('input:checkbox[name="'+checked_name+'"]').each(function() {
2414		if ( $(this).val() == checkbox.value )
2415		{
2416			//alert($(this).is(":checked"));
2417			if ( $(this).is(":checked") == true )
2418			{
2419				checkbox.checked = false;
2420				alert(msg);
2421				this.focus();
2422			}
2423		}
2424	});
2425}
2426//현금영수증발행요청추가
2427
2428
2429
2430
2431function number_format(numstr) {
2432  var numstr = String(numstr);
2433  var re0 = /(\d+)(\d{3})($|\..*)/;
2434  if (re0.test(numstr))
2435	return numstr.replace(
2436	  re0,
2437	  function(str,p1,p2,p3) { return number_format(p1) + "," + p2 + p3; }
2438	);
2439  else
2440	return numstr;
2441}

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.