PageSourceSearch

https://nenechicken.com/js/Form_Module.js?ver=2.4

js nenechicken.com collected 2026-10-02 15:35:23 UTC 42,048 bytes, 1,134 lines download raw bytes

1//############################## 메뉴리스트 ##########################################################
2function Menu_Load(SUBID,GUBUN,CUST_CODE){
3	
4	LOADINGON();
5
6	$.ajax({
7		type: "POST",
8		url: "/process/home_menu_list.fuse",
9		data:"SUBID=" + SUBID + "&GUBUN=" + GUBUN + "&CUST_CODE=" + CUST_CODE,
10		dataType: "HTML",
11		timeout: 10000,
12		success: function(msg){
13			$("#MENUVIEW").text("");
14			$("#MENUVIEW").append(msg);
15			LOADINGOFF();
16		} ,error: function(msg) {
17			alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
18			LOADINGOFF();
19		}
20	});
21}
22
23function Order_Menu_Load(SUBID,GUBUN,CUST_CODE){
24	LOADINGON();
25
26	if (SUBID == "4"){
27	//	location.href="/process/home_order_menu_list.fuse?SUBID=" + SUBID + "&GUBUN=" + GUBUN + "&CUST_CODE=" + CUST_CODE
28	//	return;
29	}
30
31	$.ajax({
32		type: "POST",
33		url: "/process/home_order_menu_list.fuse",
34		data:"SUBID=" + SUBID + "&GUBUN=" + GUBUN + "&CUST_CODE=" + CUST_CODE,
35		dataType: "HTML",
36		timeout: 10000,
37		success: function(msg){
38			$("#MENUVIEW").text("");
39			$("#MENUVIEW").append(msg);
40			LOADINGOFF();
41		} ,error: function(msg) {
42			alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
43			LOADINGOFF();
44		}
45	});
46}
47//############################## 메뉴리스트 ##########################################################
48
49//############################## 메뉴 상세페이지 #######################################################
50function Menu_Detail_View(STOCK_ID,SUBID,CUST_CODE){
51	//location.href="/process/proceduree.fuse?STOCK_ID="+STOCK_ID+"&SUBID="+SUBID+"&pro_type=Menu_Detail_View";
52	//return;
53
54	LOADINGON();
55
56	$.ajax({
57		type: "POST", 
58		url: "/process/proceduree.fuse", 
59		data: "STOCK_ID="+STOCK_ID+"&SUBID="+SUBID+"&CUST_CODE="+CUST_CODE+"&pro_type=Menu_Detail_View", 
60		dataType: "text", 
61		success: function(responseText){
62			//alert(responseText);
63			var ap1_temp = responseText.split("||", responseText.length);
64			for(var u=0; u<ap1_temp.length; u++) {
65				if(u==0){var HTML_TEXT = ap1_temp.slice(u, u+1);}//
66				if(u==1){var STOCK_TYPE = ap1_temp.slice(u, u+1);}//
67				if(u==2){var STOCK_ID = ap1_temp.slice(u, u+1);}//
68				if(u==3){var SEL_CNT = ap1_temp.slice(u, u+1);}//
69				if(u==4){var STOCK_NAME_M = ap1_temp.slice(u, u+1);}//
70				if(u==5){var STOCK_AMT_M_T = ap1_temp.slice(u, u+1);}//
71				
72			}
73
74			if(HTML_TEXT != ""){
75				$("#Menu_detail_view").text("");
76				$("#Menu_detail_view").append(HTML_TEXT);
77				document.getElementById("STOCK_TYPE").value = STOCK_TYPE;
78				document.getElementById("STOCK_ID").value = STOCK_ID;
79				document.getElementById("SEL_CNT").value = SEL_CNT;
80
81				$(".Menu_name").text(STOCK_NAME_M);
82				$(".Total_price_F").text(STOCK_AMT_M_T);
83			}else{
84				// 리턴 메세지 처리------------------------------
85				alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
86				location.href = "/";
87				// 리턴 메세지 처리------------------------------
88			}
89
90			LOADINGOFF();
91		},error: function(response){
92			// 리턴 메세지 처리------------------------------
93			alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
94			location.href = "/";
95			// 리턴 메세지 처리------------------------------
96			LOADINGOFF();
97		}
98	});
99}
100//############################## 메뉴 상세페이지 #######################################################
101
102//############################## 회원가입-인증번호발송      ###########################################################
103function SMSSEND(gubun){
104
105	var mobile = document.Frm.mobile1.value + document.Frm.mobile2.value + document.Frm.mobile3.value;
106	var msg = "";
107	var mobileOk = /^[0-9]*$/;
108
109	if ($("#smsmsgOk").val() == "1"){
110		msg = "이미 인증이 완료되었습니다."
111		alert(msg);
112		return false;
113	}
114
115	if(document.Frm.phone_ok.value==""){
116		if (mobile.length < 11 ){
117			msg = "휴대폰번호를 입력하세요."
118			alert(msg);
119			return false;
120		}else{
121			if (mobileOk.test(mobile) == false) {
122				msg = "휴대폰번호는 숫자로만 입력해 주시기 바랍니다."
123				alert(msg);
124				return false;
125			}
126/*
127			if(mobile.substr(0,3) != "010"){
128				msg = "휴대폰번호의 앞자리는 010 입니다."
129				alert(msg);
130				return false;
131			}
132*/			
133			if (mobile.length != 11) {
134				msg = "휴대폰번호는 11자리로 입력해 주시기 바랍니다."
135				alert(msg);
136				return false;
137			}else{
138
139				//location.href="/process/sms_Check.fuse?mobile_ck="+mobile+"&gubun="+gubun;
140				//return;
141
142				$.ajax({
143					type: "POST", 
144					url: "/process/sms_Check.fuse", 
145					data: "mobile_ck="+mobile+"&gubun="+gubun, 
146					dataType: "text", 
147					success: function(responseText){
148						if (responseText != ""){
149							var temp1 = responseText.split("||")
150
151							if (temp1[1] == "Y"){
152								document.Frm.phone_ok.value="Y";
153								document.Frm.smsmsg.value = temp1[0];
154								msg = "휴대폰으로 인증번호가 전송되었습니다!"
155
156								$("#sms_tr1").css('display', '');
157								$("#sms_tr2").css('display', '');
158
159								$("select[name=mobile1]").attr('onChange', 'this.selectedIndex = this.initialSelect;');
160								document.Frm.mobile2.readOnly = true;
161								document.Frm.mobile3.readOnly = true;
162
163								Time1();
164								alert(msg);
165								return false;
166							}else{
167								msg = temp1[0];
168								alert(msg);
169								return false;
170							}
171
172						}
173					},
174					error: function(response){
175						// 리턴 메세지 처리------------------------------
176						alert("통신에 실패하였습니다!");
177						//location.href = "/";
178						return;
179						// 리턴 메세지 처리------------------------------
180					}
181				});
182			}
183		}
184		return false;
185	}else{
186		alert("이미 인증번호가 전송되었습니다.");
187		return true;
188	}
189}
190
191//인증시간 계산을 위한 타이머
192function Time1(){ 
193	var mobile = document.Frm.mobile1.value + document.Frm.mobile2.value + document.Frm.mobile3.value;
194
195	if(mobile == ""){
196
197	}else{
198		var minn = 90
199
200		var time1= new Date(); 
201		hours1= time1.getHours(); 
202		mins1= time1.getMinutes(); 
203		secs1= time1.getSeconds(); 
204		closeTime1=hours1*3600+mins1*60+secs1; 
205		closeTime1+=1;  // This number is how long the window stays open 
206		Timer1();
207		Timer2(minn); 
208	}
209} 
210
211function Timer1(){ 
212	var time1= new Date(); 
213	hours1= time1.getHours(); 
214	mins1= time1.getMinutes(); 
215	secs1= time1.getSeconds(); 
216	curTime1=hours1*3600+mins1*60+secs1 
217
218	if (document.Frm.phone_ok.value == ""){
219		$("#timer_value").text("01:30");
220		return;
221	}
222
223	if (curTime1>=closeTime1 && $("#smsmsgOk").val() != 1){ 
224		document.Frm.smsmsg.value = "";
225		document.Frm.phone_ok.value="";
226		var msg = "입력시간이 지났습니다.\n인증버튼을 다시 클릭해 주세요!"
227		alert(msg);
228
229		$("#sms_tr1").css('display', 'none');
230		$("#sms_tr2").css('display', 'none');
231
232		$("select[name=mobile1]").attr('onChange', '');
233		document.Frm.mobile2.readOnly = false;
234		document.Frm.mobile3.readOnly = false;
235	}else{ 
236		//시간
237		window.setTimeout("Timer1();",90000)
238	} 
239}
240
241function Timer2(minn){ 
242	if ($("#smsmsgOk").val() == 1){
243		$("#timer_value").text(minnn + "(인증 완료)");
244		document.Frm.phone_areOK.readOnly = true;
245		return;
246	}
247
248	if (document.Frm.phone_ok.value == ""){
249		$("#timer_value").text("01:30");
250		return;
251	}
252
253	if(minn == 0){
254		$("#timer_value").text("01:30(인증시간 만료)");
255	}else {
256		//시간
257		minn = parseInt(minn) - 1
258		if(minn < 60 && minn > 9){ minnn = "00:"+parseInt(minn) }
259		if(minn < 10){ minnn = "00:0"+parseInt(minn) }
260		if(minn > 59 && minn < 70){minnn = "01:0"+(parseInt(minn)-60)}
261		if(minn > 69){minnn = "01:"+(parseInt(minn)-60)}
262		$("#timer_value").text(minnn);
263		window.setTimeout("Timer2('"+minn+"');",1000)
264	}
265}
266//############################## 회원가입-인증번호발송      ###########################################################
267
268//############################## 회원가입-인증번호확인      ###########################################################
269function SMSCHECK(){
270	if ($("#smsmsg").val() == "") {
271		var msg = "연락처 인증을 먼저 진행해 주시기 바랍니다.";
272		alert(msg);
273		return false;
274	}else if($("#phone_areOK").val()== ""){
275		var msg = "인증번호를 입력해 주시기 바랍니다.";
276		alert(msg);
277		return false;
278	}
279
280	var mobile = document.Frm.mobile1.value + document.Frm.mobile2.value + document.Frm.mobile3.value;
281	var imkey = document.Frm.smsmsg.value;
282	var smsmsg = document.Frm.phone_areOK.value;
283
284	$.ajax({
285		type: "POST", 
286		url: "/process/smsmsg_Check.fuse", 
287		data: "smsmsg="+smsmsg+"&mobile="+mobile+"&imkey="+imkey,
288		dataType: "text", 
289		success: function(responseText){
290			if (responseText== "Y"){
291				var msg = "연락처 인증이 정상적으로 완료되었습니다.";
292				alert(msg);
293				$("#phone_areOK").focus(); 
294				$("#smsmsgOk").val('1');
295
296				$("#smstitle").text("인증완료");
297				$("#sms_tr1").css('display', 'none');
298				$("#sms_tr2").css('display', 'none');
299
300				return true;
301			}else{
302				msg = "인증번호가 틀립니다 다시 입력바랍니다."
303				alert(msg);
304				return false;
305			}
306		},
307		error: function(response){
308			// 리턴 메세지 처리------------------------------
309			alert("통신에 실패하였습니다!");
310			//location.href = "/";
311			return;
312			// 리턴 메세지 처리------------------------------
313		}
314	});
315}
316//############################## 회원가입-인증번호확인      ###########################################################
317
318//############################## 회원가입-아이디체크      ###########################################################
319function IDCHECK(){
320	$.ajax({
321		type: "POST", 
322		url: "/process/join_IdCheck.fuse", 
323		data: "userID=" + $("#userID").val(), 
324		dataType: "text", 
325		success: function(responseText){
326			if($("#userID").val() == ""){
327				var msg = "아이디를 입력해 주시기 바랍니다."
328				$("#IdChk_msg").text(msg);
329				return false;
330			}else {
331				if ($("#userID").val().length < 6){
332				var msg = "아이디는 6자리 이상 입력해 주시기 바랍니다."
333				$("#IdChk_msg").text(msg);
334				return false;
335			}
336
337			var idReg = /^[a-z]+[a-z0-9]{4,15}/g;
338
339			if ( !idReg.test( $("input[name=userID]").val() ) ) {
340				var msg = "아이디는 영문자로 시작하는 5~15자 영문자 또는 숫자이어야 합니다."
341				$("#IdChk_msg").text(msg);
342				return false;
343			}
344
345			if (responseText == "NEW"){
346				var msg = "사용 가능한 아이디입니다."
347				$("#IdChk_msg").text(msg);
348				document.Frm.userId_ok.value="Y";
349				return false;
350			}else if (responseText == "USING"){
351				var msg = "사용 중인 아이디 입니다."
352				$("#IdChk_msg").text(msg);
353				return false;
354			}else{
355				var msg = "보안 상 사용할수 없는 문자가 포함되어 있습니다.";
356				$("#IdChk_msg").text(msg);
357				return false;
358			}
359		}
360		},error: function(response){
361			("#IdChk_msg").text('error\n\n' + response.responseText);
362			return false;
363		}
364	});
365}
366//############################## 회원가입-아이디체크      ###########################################################
367
368//############################## 회원가입-패스워드체크      ##########################################################
369function PWCHECK(){
370	let id = $("#userID").val();
371	let pw = $("#pass").val();
372	let number = pw.search(/[0-9]/g);
373	let english = pw.search(/[a-z]/ig);
374	let spece = pw.search(/[`~!@@#$%^&*|₩₩₩'₩";:₩/?]/gi);
375	let reg = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/;
376
377	if (pw.length < 8 || pw.length > 20) {
378		var msg = "8자리 ~ 20자리 이내로 입력해주세요.";
379		$("#PwChk_msg").text(msg);
380		return false;
381
382	} else if (pw.search(/\s/) != -1) {
383		var msg = "비밀번호는 공백 없이 입력해주세요.";
384		$("#PwChk_msg").text(msg);
385		return false;
386
387	} else if (number < 0 || english < 0 || spece < 0) {
388		var msg = "영문,숫자,특수문자를 혼합하여 입력해주세요.";
389		$("#PwChk_msg").text(msg);
390		return false;
391
392	} else if ((number < 0 && english < 0) || (english < 0 && spece < 0) || (spece < 0 && number < 0)) {
393		var msg = "영문,숫자, 특수문자 중 2가지 이상을 혼합하여 입력해주세요.";
394		$("#PwChk_msg").text(msg);
395		return false;
396
397	} else {
398		//var msg = "비밀번호가 정상적으로 입력되었습니다.";
399		$("#PwChk_msg").text("");
400		return true;
401	}
402}
403//############################## 회원가입-패스워드체크      ##########################################################
404
405//############################## 회원가입-패스워드재입력체크      ######################################################
406function REPWCHECK(){
407	if ($("#re_pass").val().replace(/\s/g, "").length == 0){
408		var msg = "비밀번호를 한번 더 입력해주세요.";
409		$("#RePwChk_msg").text(msg);
410		return false;
411	}else{
412		if ($("#re_pass").val().replace(/\s/g, "") != $("#pass").val().replace(/\s/g, "")) {
413			var msg = "비밀번호가 일치하지 않습니다."
414			$("#RePwChk_msg").text(msg);
415			return false;
416		}else{
417			$("#RePwChk_msg").text("");
418			return true;
419		}
420	}
421}
422//############################## 회원가입-패스워드재입력체크      ######################################################
423
424//############################## Cart - 모바일상품권 메뉴 변경 #######################################################
425function C_Menu_Load(SUBID,CUST_CODE){
426	LOADINGON();
427
428	$.ajax({
429		type: "POST",
430		url: "/process/cart_menu_list.fuse",
431		data:"SUBID=" + SUBID + "&CUST_CODE=" + CUST_CODE,
432		dataType: "HTML",
433		timeout: 10000,
434		success: function(msg){
435			$("#MENUVIEW").text("");
436			$("#MENUVIEW").append(msg);
437			LOADINGOFF();
438		} ,error: function(msg) {
439			alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
440			LOADINGOFF();
441		}
442	});
443}
444//############################## Cart - 모바일상품권 메뉴 변경 ########################################################
445
446//############################## Cart - 모바일상품권 메뉴 상세페이지 ####################################################
447function C_Menu_Detail_View(STOCK_ID,SUBID,CUST_CODE){
448	//location.href="/f_hidden/proceduree.fuse?STOCK_ID="+STOCK_ID+"&SUBID="+SUBID+"&pro_type=Menu_Detail_View";
449	//return;
450	LOADINGON();
451
452	$.ajax({
453		type: "POST", 
454		url: "/process/proceduree.fuse", 
455		data: "STOCK_ID="+STOCK_ID+"&SUBID="+SUBID+"&CUST_CODE="+CUST_CODE+"&pro_type=C_Menu_Detail_View", 
456		dataType: "text", 
457		success: function(responseText){
458			//alert(responseText);
459			var ap1_temp = responseText.split("||", responseText.length);
460			for(var u=0; u<ap1_temp.length; u++) {
461				if(u==0){var HTML_TEXT = ap1_temp.slice(u, u+1);}//
462				if(u==1){var STOCK_TYPE = ap1_temp.slice(u, u+1);}//
463				if(u==2){var STOCK_ID = ap1_temp.slice(u, u+1);}//
464				if(u==3){var SEL_CNT = ap1_temp.slice(u, u+1);}//
465				if(u==4){var STOCK_NAME_M = ap1_temp.slice(u, u+1);}//
466				if(u==5){var STOCK_AMT_M_T = ap1_temp.slice(u, u+1);}//
467
468			}
469
470			if(HTML_TEXT != ""){
471				$("#C_Menu_detail_view").text("");
472				$("#C_Menu_detail_view").append(HTML_TEXT);
473				document.getElementById("STOCK_TYPE").value = STOCK_TYPE;
474				document.getElementById("STOCK_ID").value = STOCK_ID;
475				document.getElementById("SEL_CNT").value = SEL_CNT;
476				
477				$(".Menu_name").text(STOCK_NAME_M);
478				$(".Total_price_F").text(STOCK_AMT_M_T);
479			}else{
480				// 리턴 메세지 처리------------------------------
481				alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
482				location.href = "/";
483				// 리턴 메세지 처리------------------------------
484			}
485
486			LOADINGOFF();
487		},error: function(response){
488			// 리턴 메세지 처리------------------------------
489			alert('인터넷 연결회선이 불안정합니다. 관리자에게 문의해 주세요.');
490			location.href = "/";
491			// 리턴 메세지 처리------------------------------
492
493			LOADINGOFF();
494		}
495	});
496}
497//############################## Cart - 모바일상품권 메뉴 상세페이지 ####################################################
498function pay_load_try(){
499	//pay_check();
500
501	var personUid = pay_policy.orderpay_setting.personUid;
502	var juid = pay_policy.orderpay_setting.JUID;
503	var userID = pay_policy.orderpay_setting.userID;
504	var PG_NM = document.Frm.PG_NM.value;
505	var mmid = document.Frm.mmid.value;
506	var paytype = document.Frm.paytype.value;
507
508	var CashRequest = document.Frm.CashRequest.checked;
509	var CASH_AUTH_TYPE = document.Frm.CASH_AUTH_TYPE.value;
510
511	var order_amount = pay_policy.orderpay_setting.order_amount;				//주문금액
512	var baedaltip = pay_policy.orderpay_setting.baedaltip;								//배달료
513	var discount_amount = pay_policy.orderpay_setting.discount_amount;		//할인금액
514	var point_amount = pay_policy.orderpay_setting.point_amount;					//사용포인트
515	var payment_amount = pay_policy.orderpay_setting.payment_amount;		//총결제금액
516	var minorder_amt = pay_policy.orderpay_setting.minorder_amt;				//최소주문금액
517	var exchange_useAmount = pay_policy.coupon.exchange.useAmount			//모바일교환권 사용금액
518	var amount_useAmount = pay_policy.coupon.amount.useAmount				//모바일금액권 사용금액
519	var paper_useAmount = pay_policy.coupon.paper.useAmount					//지류상품권 사용금액
520	var discount_useAmount = pay_policy.coupon.discount.useAmount				//할인쿠폰 사용금액
521
522	if(PG_NM == "KICC" && mmid == "" && (paytype == "card" || paytype == "hp" || paytype == "kakaopay" || paytype == "npay" || paytype == "samsung" || paytype == "payco")){
523		alert("해당 매장은 현재 전자지급결제대행(PG)사\n전환 작업중입니다. “현장결제”를 이용해주세요.");
524		$("#loadingBox").css('display','none');
525		$("body").removeClass('fixed');
526		$('#PayloadBtn').css('display', '');
527		return;
528	}
529
530	if(personUid == ""){
531		var msg = "정상적인 접근이 아닙니다!\n처음부터 다시 진행해주세요!"
532		alert(msg);
533		location.href = "/";
534		return;
535	}
536
537	if(order_amount == 0){
538		var msg = "선택하신 상품이 없습니다!\n처음부터 다시 진행해주세요!"
539		alert(msg);
540		location.href = "/";
541		return;
542	}
543
544	if(document.Frm.cart_id_sum.value == "" && document.Frm.cart_ea_sum.value == ""){
545		var msg = "장바구니에 담긴 상품이 없습니다!"
546		alert(msg);
547		$("#loadingBox").css('display','none');
548		$("body").removeClass('fixed');
549		$('#PayloadBtn').css('display', '');
550		return;
551	}
552
553	if(document.Frm.DISPLAYNONE.value == "Y"){
554		var msg = "장바구니에 품절상품이 있습니다!"
555		alert(msg);
556		$("#loadingBox").css('display','none');
557		$("body").removeClass('fixed');
558		$('#PayloadBtn').css('display', '');
559		return;
560	}
561	
562	if(parseInt(order_amount) < parseInt(minorder_amt)){
563		var msg = "결제 최소금액은 "+parseInt(minorder_amt).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")+"원입니다!\n메뉴를 추가로 선택하세요!"
564		alert(msg);
565		$("#loadingBox").css('display','none');
566		$("body").removeClass('fixed');
567		$('#PayloadBtn').css('display', '');
568		return;
569	}
570
571	if(parseInt(payment_amount) < 0 && pay_policy.coupon.exchange.usecnt != 0){
572		var msg = "E-쿠폰 금액보다 주문금액이 적습니다!\n메뉴를 추가로 선택하세요!"
573		alert(msg);
574		$("#loadingBox").css('display','none');
575		$("body").removeClass('fixed');
576		$('#PayloadBtn').css('display', '');
577		return;
578	}
579
580	if (document.Frm.reser_type.value == ""){
581		var msg = "주문타입을 선택하세요!"
582		alert(msg);
583		$("#loadingBox").css('display','none');
584		$("body").removeClass('fixed');
585		$('#PayloadBtn').css('display', '');
586		return;
587   }
588
589	if (document.Frm.reser_type.value == "2"){
590		if(document.Frm.rest1.value == "" || document.Frm.rest2.value == ""){
591			var msg = "예약시간을 선택하세요!"
592			alert(msg);
593			$("#loadingBox").css('display','none');
594			$("body").removeClass('fixed');
595			$('#PayloadBtn').css('display', '');
596			return;		
597		}
598	}
599
600	if (paytype == ""){
601		var msg = "결제수단을 선택하세요!"
602		alert(msg);
603		$("#loadingBox").css('display','none');
604		$("body").removeClass('fixed');
605		$('#PayloadBtn').css('display', '');
606		return;
607	}
608
609	if (CashRequest == true){
610		CashRequest = "Y"
611	}else{
612		CashRequest = "N"
613	}
614
615	//alert(CashRequest);
616	//return;
617	
618	if (CashRequest == "Y"){
619		if (CASH_AUTH_TYPE == ""){
620			alert("현금영수증 발급구분을 선택하세요");
621			$("#loadingBox").css('display','none');
622			$("body").removeClass('fixed');
623			$('#PayloadBtn').css('display', '');
624			return;
625		}
626
627		if (CASH_AUTH_TYPE == "1"){
628			if (document.Frm.Cash_mobile1.value.toString().length != 3){
629				alert("현금영수증 발급번호 앞자리 자릿수가 맞지 않습니다.");
630				$("#loadingBox").css('display','none');
631				$("body").removeClass('fixed');
632				$('#PayloadBtn').css('display', '');
633				return;
634			}
635
636			if (document.Frm.Cash_mobile2.value.toString().length != 4){
637				alert("현금영수증 발급번호 앞자리 자릿수가 맞지 않습니다.");
638				$("#loadingBox").css('display','none');
639				$("body").removeClass('fixed');	
640				$('#PayloadBtn').css('display', '');
641				return;
642			}
643
644			if (document.Frm.Cash_mobile3.value.toString().length != 4){
645				alert("현금영수증 발급번호 앞자리 자릿수가 맞지 않습니다.");
646				$("#loadingBox").css('display','none');
647				$("body").removeClass('fixed');
648				$('#PayloadBtn').css('display', '');
649				return;
650			}
651
652			if (document.Frm.Cash_mobile1.value == "" || document.Frm.Cash_mobile2.value == "" || document.Frm.Cash_mobile3.value == ""){
653				alert("현금영수증 발급번호를 입력하세요.");
654				$("#loadingBox").css('display','none');
655				$("body").removeClass('fixed');
656				$('#PayloadBtn').css('display', '');
657				return;
658			}
659
660		}else if (CASH_AUTH_TYPE == "2"){
661			if (document.Frm.Cash_TaxNo1.value.toString().length != 3){
662				alert("현금영수증 발급번호 앞자리 자릿수가 맞지 않습니다.");
663				$("#loadingBox").css('display','none');
664				$("body").removeClass('fixed');
665				$('#PayloadBtn').css('display', '');
666				return;
667			}
668
669			if (document.Frm.Cash_TaxNo2.value.toString().length != 2){
670				alert("현금영수증 발급번호 가운데 자릿수가 맞지 않습니다.");
671				$("#loadingBox").css('display','none');
672				$("body").removeClass('fixed');
673				$('#PayloadBtn').css('display', '');
674				return;
675			}
676
677			if (document.Frm.Cash_TaxNo3.value.toString().length != 5){
678				alert("현금영수증 발급번호 끝자리 자릿수가 맞지 않습니다.");
679				$("#loadingBox").css('display','none');
680				$("body").removeClass('fixed');
681				$('#PayloadBtn').css('display', '');
682				return;
683			}
684
685			if (document.Frm.Cash_TaxNo1.value == "" || document.Frm.Cash_TaxNo2.value == "" || document.Frm.Cash_TaxNo3.value == ""){
686				alert("현금영수증 발급번호를 입력하세요.");
687				$("#loadingBox").css('display','none');
688				$("body").removeClass('fixed');
689				$('#PayloadBtn').css('display', '');
690				return;
691			}
692		}
693	}
694
695	var Cash_mobile = ""
696	if (CASH_AUTH_TYPE == "1"){
697		var Cash_mobile1 = document.Frm.Cash_mobile1.value;
698		var Cash_mobile2 = document.Frm.Cash_mobile2.value;
699		var Cash_mobile3 = document.Frm.Cash_mobile3.value;
700		var Cash_mobile = Cash_mobile1 + "-" + Cash_mobile2 + "-" + Cash_mobile3
701	}else if (CASH_AUTH_TYPE == "2"){
702		var Cash_mobile1 = document.Frm.Cash_TaxNo1.value;
703		var Cash_mobile2 = document.Frm.Cash_TaxNo2.value;
704		var Cash_mobile3 = document.Frm.Cash_TaxNo3.value;
705		var Cash_mobile = Cash_mobile1 + "-" + Cash_mobile2 + "-" + Cash_mobile3
706	}
707
708	if (document.Frm.orderchks.value != "ok"){
709		document.Frm.orderchks.value = "ok"
710
711		var msg = "주문정보를 저장중입니다!"
712		//F_loadingbar(msg);
713
714		var cjone_yn = document.Frm.CJONE_YN.value;
715		var cjone_expectation_point = document.Frm.CJONE_EXPECTATION_POINT.value;
716		var CJONE_USEYN = document.Frm.CJONE_USEYN.value;
717		var CJONE_USEPOINT = point_amount;
718
719		var userCouponUnit = document.Frm.userCouponUnit.value;
720		var uid_sub = document.Frm_giftcard_search.uid_sub.value;
721
722		/*지류상품권*/
723		var userCouponJUnit = document.Frm.userCouponJUnit.value;
724		/*지류상품권*/
725
726		/*E쿠폰(금액권)*/
727		var userCouponEUnit = document.Frm.userCouponEUnit.value;
728		/*E쿠폰(금액권)*/
729
730		var request_etc = document.Frm.request_etc.value;
731		var self_request_etc = document.Frm.self_request_etc.value;
732		var disposable = document.Frm.disposable.checked;
733		if (disposable == true){
734			disposable = "N"
735		}else{
736			disposable = "Y"
737		}
738
739		var disposable2 = document.Frm.disposable2.checked;
740		if (disposable2 == true){
741			disposable2 = "N"
742		}else{
743			disposable2 = "Y"
744		}
745
746		var disposable3 = document.Frm.disposable3.checked;
747		if (disposable3 == true){
748			disposable3 = "N"
749		}else{
750			disposable3 = "Y"
751		}
752
753		var request_etc2 = document.Frm.request_etc2.value;
754		var OFF_TYPE = "";
755		var mobile = document.Frm.mobile.value;
756
757		if (document.Frm.paytype.value == "card" || document.Frm.paytype.value == "npay" || document.Frm.paytype.value == "kakaopay" || document.Frm.paytype.value == "samsung" ||document.Frm.paytype.value == "payco"){
758			var PayMethod = "신용카드";
759		}else if (document.Frm.paytype.value == "hp"){
760			var PayMethod = "휴대폰결제";
761		}else if (document.Frm.paytype.value == "konai"){
762			var PayMethod = "코나카드";
763		}else if (document.Frm.paytype.value == "card2"){
764			var PayMethod = "후불";
765			OFF_TYPE = "2"
766		}else if (document.Frm.paytype.value == "cash"){
767			var PayMethod = "후불";
768			OFF_TYPE = "1";
769		}else if (document.Frm.paytype.value == "ecoupon"){
770			var PayMethod = "E-쿠폰";
771		}else if (document.Frm.paytype.value == "ecoupon2"){
772			var PayMethod = "시식권";
773		}else if (document.Frm.paytype.value == "ecoupon3"){
774			var PayMethod = "E-쿠폰(금액권)";
775		}else if (document.Frm.paytype.value == "ecoupon4"){
776			var PayMethod = "내쿠폰(교환권)";
777		}
778
779		if(document.Frm.reser_type.value == "1"){
780			var reser_type = "1";
781			var rest1 = "";
782			var rest2 = "";
783		}else{
784			var reser_type = "2";
785			var rest1 = document.Frm.rest1.value;
786			var rest2 = document.Frm.rest2.value;
787		}
788
789		var cart_id_sum = document.Frm.cart_id_sum.value;
790		var cart_ea_sum = document.Frm.cart_ea_sum.value;
791		var cust_code = document.Frm.cust_code.value;
792
793		REQ = newXMLHttpRequest();//req 객체반환
794		var handlerFunction = processReqList12_try;
795		REQ.onreadystatechange = handlerFunction;
796
797		REQ.open("POST", "/process/proceduree.fuse", true);
798		REQ.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
799		//REQ.send("userID="+pay_policy.orderpay_setting.userID+"&pro_type=pay_load_try&personUid="+pay_policy.orderpay_setting.personUid+"&TotalOrderPrice="+TotalOrderPrice+"&totalOptionPrice="+totalOptionPrice+"&TotalDeliveryFee="+TotalDeliveryFee+"&totalUserDiscountPrice="+totalUserDiscountPrice+"&userDiscountUnit="+userDiscountUnit+"&uid_sub="+uid_sub+"&reser_type="+reser_type+"&rest1="+rest1+"&rest2="+rest2+"&request_etc="+request_etc+"&PayMethod="+PayMethod+"&OFF_TYPE="+OFF_TYPE+"&cart_id_sum="+cart_id_sum+"&cart_ea_sum="+cart_ea_sum+"&cust_code="+cust_code+"&e_cnt="+pay_policy.coupon.exchange.usecnt+"&self_request_etc="+self_request_etc+"&userCouponUnit="+userCouponUnit+"&totalOptionPrice2="+totalOptionPrice2+"&disposable="+disposable+"&userCouponJUnit="+userCouponJUnit+"&juid="+juid+"&userCouponEUnit="+userCouponEUnit+"&request_etc2="+request_etc2+"&CashRequest="+CashRequest+"&Cash_mobile="+Cash_mobile+"&CASH_AUTH_TYPE="+CASH_AUTH_TYPE+"&mmid="+mmid+"&disposable2="+disposable2+"&disposable3="+disposable3+"&cjone_yn="+cjone_yn+"&cjone_expectation_point="+cjone_expectation_point+"&CJONE_USEYN="+CJONE_USEYN+"&CJONE_USEPOINT="+CJONE_USEPOINT+"&CouponSerial_Amt="+CouponSerial_Amt);
800		REQ.send(
801		  "userID=" + userID +
802		  "&pro_type=pay_load_try" +
803		  "&personUid=" + personUid +
804		  "&juid=" + juid +
805		  "&order_amount=" + order_amount +
806		  "&baedaltip=" + baedaltip +
807		  "&discount_amount=" + discount_amount +
808		  "&point_amount=" + point_amount +
809		  "&payment_amount=" + payment_amount +
810		  "&exchange_useAmount=" + exchange_useAmount +
811		  "&amount_useAmount=" + amount_useAmount +
812		  "&paper_useAmount=" + paper_useAmount +
813		  "&discount_useAmount=" + discount_useAmount +
814		  "&uid_sub=" + uid_sub +
815		  "&reser_type=" + reser_type +
816		  "&rest1=" + rest1 +
817		  "&rest2=" + rest2 +
818		  "&request_etc=" + request_etc +
819		  "&PayMethod=" + PayMethod +
820		  "&OFF_TYPE=" + OFF_TYPE +
821		  "&cart_id_sum=" + cart_id_sum +
822		  "&cart_ea_sum=" + cart_ea_sum +
823		  "&cust_code=" + cust_code +
824		  "&e_cnt=" + pay_policy.coupon.exchange.usecnt +
825		  "&self_request_etc=" + self_request_etc +
826		  "&userCouponUnit=" + userCouponUnit +
827		  "&disposable=" + disposable +
828		  "&userCouponJUnit=" + userCouponJUnit +
829		  "&userCouponEUnit=" + userCouponEUnit +
830		  "&request_etc2=" + request_etc2 +
831		  "&CashRequest=" + CashRequest +
832		  "&Cash_mobile=" + Cash_mobile +
833		  "&CASH_AUTH_TYPE=" + CASH_AUTH_TYPE +
834		  "&mmid=" + mmid +
835		  "&disposable2=" + disposable2 +
836		  "&disposable3=" + disposable3 +
837		  "&cjone_yn=" + cjone_yn +
838		  "&cjone_expectation_point=" + cjone_expectation_point +
839		  "&CJONE_USEYN=" + CJONE_USEYN +
840		  "&CJONE_USEPOINT=" + CJONE_USEPOINT +
841		  "&mobile=" + mobile
842		);
843		//location.href="/process/proceduree.fuse?userID="+pay_policy.orderpay_setting.userID+"&pro_type=pay_load_try&personUid="+pay_policy.orderpay_setting.personUid+"&TotalOrderPrice="+TotalOrderPrice+"&totalOptionPrice="+totalOptionPrice+"&TotalDeliveryFee="+TotalDeliveryFee+"&totalUserDiscountPrice="+totalUserDiscountPrice+"&userDiscountUnit="+userDiscountUnit+"&uid_sub="+uid_sub+"&reser_type="+reser_type+"&rest1="+rest1+"&rest2="+rest2+"&request_etc="+request_etc+"&PayMethod="+PayMethod+"&OFF_TYPE="+OFF_TYPE+"&cart_id_sum="+cart_id_sum+"&cart_ea_sum="+cart_ea_sum+"&cust_code="+cust_code+"&e_cnt="+pay_policy.coupon.exchange.usecnt+"&self_request_etc="+self_request_etc+"&userCouponUnit="+userCouponUnit+"&totalOptionPrice2="+totalOptionPrice2+"&disposable="+disposable+"&userCouponJUnit="+userCouponJUnit+"&juid="+juid+"&userCouponEUnit="+userCouponEUnit+"&request_etc2="+request_etc2+"&CashRequest="+CashRequest+"&Cash_mobile="+Cash_mobile+"&CASH_AUTH_TYPE="+CASH_AUTH_TYPE+"&mmid="+mmid+"&disposable2="+disposable2+"&disposable3="+disposable3+"&cjone_yn="+cjone_yn+"&cjone_expectation_point="+cjone_expectation_point+"&CJONE_USEYN="+CJONE_USEYN+"&CJONE_USEPOINT="+CJONE_USEPOINT;
844		//return;
845	}else{				
846		var msg = "이미 요청하셨습니다.!"
847		alert(msg);
848		$("#loadingBox").css('display','none');
849		$("body").removeClass('fixed');
850		return;
851	}
852}
853
854function processReqList12_try() {
855	// only if req shows "loaded"
856	if (REQ.readyState == 4) {
857		// only if "OK"
858		if (REQ.status == 200) {
859			//F_loadingbar_stop();
860			printList12_try();
861		} else {
862			alert("정상적인 접근이 아닙니다!");
863			location.href = "/";
864			return;
865		}
866	}//if
867}
868
869function printList12_try() {
870	var lists = REQ.responseXML.getElementsByTagName("lists")[0]; //응답받은 XML에서 리스트내용을 전달
871	var f = document.Frm;
872	var items = lists.getElementsByTagName("item"); //XML에서 표시할 게시물을 배열로 받는다.
873
874	for(var i=0; i<items.length; i++){//게시물 건수만큼 루프
875		var item = items[i];
876		var seq        = item.getAttribute("seq");//오픈 응답
877		var orderTryUid      = item.getElementsByTagName("aname1")[0].firstChild.nodeValue;//UID
878		var order_error      = item.getElementsByTagName("aname2")[0].firstChild.nodeValue;//UID
879		var error_ck      = item.getElementsByTagName("aname3")[0].firstChild.nodeValue;//UID
880		var personUid      = item.getElementsByTagName("aname4")[0].firstChild.nodeValue;//UID
881		var cross_error      = item.getElementsByTagName("aname5")[0].firstChild.nodeValue;//UID
882		var addr_error      = item.getElementsByTagName("aname6")[0].firstChild.nodeValue;//UID
883		var BADALTIP_CK      = item.getElementsByTagName("aname7")[0].firstChild.nodeValue;//UID
884		var KONA_CK      = item.getElementsByTagName("aname8")[0].firstChild.nodeValue;//UID
885
886		if(cross_error == "true"){
887			alert("중복접속으로 상품갯수가 변경 되었습니다!\n다시 시도하세요!");
888			location.href = "/home_cart.asp";
889			return;
890		}
891
892		if(addr_error == "true"){
893			alert("중복접속으로 배송매장이 변경 되었습니다!\n다시 시도하세요!");
894			location.href = "/home_cart.asp";
895			return;
896		}
897
898		if(error_ck == "true"){
899			alert("배송지 및 장바구니 오류입니다!\n다시 시도하세요!");
900			location.href = "/";
901			return;
902		}
903
904		if(order_error == "check"){
905			alert("주문금액이 잘못 되었습니다. 처음부터 다시 진행해 주세요!");
906			//location.href = "/home_cart.asp";
907			return;
908		}
909
910		//if (BADALTIP_CK == "NO"){
911		//	alert("주문금액이 잘못 되었습니다. 처음부터 다시 진행해 주세요!");
912		//	location.href = "/home_cart.asp";
913		//	return;
914		//}
915
916		if (KONA_CK == "true"){
917			alert("코나카드결제 사용이 불가한 매장입니다!\n다시 시도하세요!");
918			location.href = "/home_cart.asp";
919			return;
920		}
921
922		if(orderTryUid == "none"){
923			alert("정상적인 접근이 아닙니다!");
924			location.href = "/";
925			return;
926		}
927
928		document.Frm.orderTry.value = orderTryUid;
929		document.Frm.p_uid.value = personUid;
930	}
931	orderChk();
932}
933
934// # 주문 : 시작 ######################################################################
935function orderChk() {
936	var f = document.Frm;
937	var payment_amount = pay_policy.orderpay_setting.payment_amount;
938
939	//주문정보 체크
940	if(document.Frm.orderTry.value == "" || document.Frm.p_uid.value == ""){
941		var msg = "주문정보가 누락 되었습니다!\n처음부터 다시 진행해주세요!"
942		alert(msg);
943		location.href = "/";
944		return;
945	}
946
947	if (f.Divice_type.value == 'pc'){
948//		if(document.Frm.paytype.value == "card"){
949//			if (document.Frm.PG_NM.value == "KICC"){
950//				//kicc
951//				f.action = "/easypay80_webpay/web/normal/order.asp";
952//				document.Frm.PAYTYPE_KICC.value = "11";
953//			}
954//		}else if(document.Frm.paytype.value == "hp"){
955//			if (document.Frm.PG_NM.value == "KICC"){
956//				//kicc
957//				f.action = "/easypay80_webpay/web/normal/order.asp";
958//				document.Frm.PAYTYPE_KICC.value = "31";
959//			}
960//		}else if(document.Frm.paytype.value == "card2" || document.Frm.paytype.value == "cash"){
961//			//alert("PC/후불");		
962//			f.action = "/process/off_order.fuse";
963//		}else if(document.Frm.paytype.value == "npay" || document.Frm.paytype.value == "kakaopay" || document.Frm.paytype.value == "samsung" || document.Frm.paytype.value == "payco"){
964//			f.action = "/easypay_api/easypay_webpay.fuse";
965//		}
966
967		if(document.Frm.paytype.value == "card2" || document.Frm.paytype.value == "cash"){
968			//alert("PC/후불");		
969			f.action = "/process/off_order.fuse";
970		}else if(document.Frm.paytype.value == "card" || document.Frm.paytype.value == "hp" || document.Frm.paytype.value == "npay" || document.Frm.paytype.value == "kakaopay" || document.Frm.paytype.value == "samsung" || document.Frm.paytype.value == "payco"){
971			f.action = "/easypay_api/easypay_webpay.fuse";
972		}
973
974		//포장 E-쿠폰
975		if (document.Frm.paytype.value == "ecoupon" && payment_amount == 0){
976			f.action = "/process/ecoupon_order.fuse";
977		}
978
979		if (document.Frm.paytype.value == "ecoupon2" && payment_amount == 0){
980			f.action = "/process/paper_coupon_order.fuse";
981		}
982
983		if (document.Frm.paytype.value == "ecoupon3" && payment_amount == 0){
984			f.action = "/process/ecouponAmt_order.fuse";
985		}
986
987		if (document.Frm.paytype.value == "ecoupon4" && payment_amount == 0){
988			f.action = "/process/mycoupon_order.fuse";
989		}
990
991		if (document.Frm.paytype.value == "cjonepoint" && payment_amount == 0){
992			f.action = "/process/cjone_point_order.fuse";
993		}
994	}else{
995//		if(document.Frm.paytype.value == "card"){			
996//			if (document.Frm.PG_NM.value == "KICC"){
997//				//kicc
998//				f.action = "/easypay80_webpay_mobile/mobile/mobile/order.asp";
999//				document.Frm.PAYTYPE_KICC.value = "11";
1000//			}
1001//		}else if(document.Frm.paytype.value == "hp"){	
1002//			if (document.Frm.PG_NM.value == "KICC"){
1003//				//kicc
1004//				f.action = "/easypay80_webpay_mobile/mobile/mobile/order.asp";
1005//				document.Frm.PAYTYPE_KICC.value = "31";
1006//			}
1007//		}else if(document.Frm.paytype.value == "card2" || document.Frm.paytype.value == "cash"){				
1008//			f.action = "/process/off_order.fuse";
1009//		}
1010
1011		if(document.Frm.paytype.value == "card2" || document.Frm.paytype.value == "cash"){
1012			//alert("PC/후불");		
1013			f.action = "/process/off_order.fuse";
1014		}else if(document.Frm.paytype.value == "card" || document.Frm.paytype.value == "hp" || document.Frm.paytype.value == "npay" || document.Frm.paytype.value == "kakaopay" || document.Frm.paytype.value == "samsung" || document.Frm.paytype.value == "payco"){
1015			f.action = "/easypay_api/easypay_webpay.fuse";
1016		}
1017
1018		//포장 E-쿠폰
1019		if (document.Frm.paytype.value == "ecoupon" && payment_amount == 0){
1020			f.action = "/process/ecoupon_order.fuse";
1021		}
1022
1023		if (document.Frm.paytype.value == "ecoupon2" && payment_amount == 0){
1024			f.action = "/process/paper_coupon_order.fuse";
1025		}
1026
1027		if (document.Frm.paytype.value == "ecoupon3" && payment_amount == 0){
1028			f.action = "/process/ecouponAmt_order.fuse";
1029		}
1030
1031		if (document.Frm.paytype.value == "ecoupon4" && payment_amount == 0){
1032			f.action = "/process/mycoupon_order.fuse";
1033		}
1034
1035		if (document.Frm.paytype.value == "cjonepoint" && payment_amount == 0){
1036			f.action = "/process/cjone_point_order.fuse";
1037		}
1038	}
1039
1040	f.target = "_self";
1041	f.submit(); 
1042	return;
1043}
1044// # 주문 : 시작 ######################################################################
1045
1046// # 장바구니 카운트 ######################################################################
1047function cart_cnt(personUid){
1048
1049	//location.href="/process/cart_cnt.fuse?personUid="+personUid;
1050	//return;
1051	var C_NOW_URL = window.location.pathname;	
1052
1053	$.ajax({
1054		type: "POST",
1055		url: "/process/cart_cnt.fuse?personUid="+personUid,
1056		dataType: "TEXT",
1057		contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
1058		error: function(){	
1059			//alert("인터넷 회선이 불안합니다. 다시 시도해 주세요.\n같은증상이 계속 반복될시 관리자에게 문의 바랍니다.");
1060		},
1061		success: function(data){
1062			if (data != "0"){
1063				$("#cart_count").css('display','');
1064				$("#cart_count").html(data);
1065				$("#mo_cart_count").css('display','');
1066				$("#mo_cart_count").html(data);
1067				$("#D_mo_cart_count").css('display','');
1068				$("#D_mo_cart_count").html(data);
1069
1070				//home_menu,home_order_menu 일때만 모바일 고정 메뉴 장바구니 개수
1071				if (C_NOW_URL =="/home_menu.asp" || C_NOW_URL =="/home_order_menu.asp" || C_NOW_URL =="/home_cart_menuChange.asp")
1072				{	
1073					$(".MenuFWrap").css('display','');
1074					$("#F_cartCount").css('display','');
1075					$("#F_cartCount").html(data);
1076					$(".FooterBox").css('padding-bottom','3rem');
1077				}else if (C_NOW_URL == "/home_cart.asp"){
1078					$(".FooterBox").css('padding-bottom','4rem');
1079				}
1080				
1081			}else if (data == "0"){
1082				$("#cart_count").css('display','none');
1083				$("#cart_count").html(data);
1084				$("#mo_cart_count").css('display','none');
1085				$("#mo_cart_count").html(data);
1086
1087				//home_menu,home_order_menu 일때만 모바일 고정 메뉴 장바구니 개수
1088				if (C_NOW_URL == "/home_menu.asp" || C_NOW_URL =="/home_order_menu.asp" || C_NOW_URL =="/home_cart_menuChange.asp")
1089				{
1090					$(".MenuFWrap").css('display','none');
1091					$("#F_cartCount").css('display','none');
1092					$("#F_cartCount").html(data);
1093					$(".FooterBox").css('padding-bottom','3rem');
1094					$("#CartF_Padding").css('padding-bottom','');
1095				}else if (C_NOW_URL == "/home_cart.asp"){
1096					$(".FooterBox").css('padding-bottom','4rem');
1097				}
1098			}
1099		}
1100	});
1101}
1102// # 장바구니 카운트 ######################################################################
1103
1104// # 상품권 장바구니 카운트 ##################################################################
1105function cpn_cart_cnt(personUid){
1106
1107	//location.href="/process/cart_cnt.fuse?personUid="+personUid;
1108	//return;
1109
1110	$.ajax({
1111		type: "POST",
1112		url: "/process/cpn_cart_cnt.fuse?personUid="+personUid,
1113		dataType: "TEXT",
1114		contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
1115		error: function(){	
1116			//alert("인터넷 회선이 불안합니다. 다시 시도해 주세요.\n같은증상이 계속 반복될시 관리자에게 문의 바랍니다.");
1117		},
1118		success: function(data){
1119			if (data != "0"){
1120				$("#cpn_cart_count").css('display','');
1121				$("#cpn_cart_count").html(data);
1122				$("#mo_cpn_cart_count").css('display','');
1123				$("#mo_cpn_cart_count").html(data);
1124			}else	if (data == "0"){
1125				$("#cpn_cart_count").css('display','none');
1126				$("#cpn_cart_count").html(data);
1127
1128				$("#mo_cpn_cart_count").css('display','none');
1129				$("#mo_cpn_cart_count").html(data);
1130			}
1131		}
1132	});
1133}
1134// # 상품권 장바구니 카운트 ##################################################################

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.