
// 2022.05.11 gcs ksm : #15583 첫 결제일 선택 팝업 (쇼핑몰의 희망배송일 사용) //common-function.js 에서 가져옴
// 희망 배송일 달력 팝업 :: 2016-07-22 lwh
function billing_calendar_pop(){
	var cal_lay	= $(".pop_gcsBillingCalendarLayer");
	var gcsBillingFirstPayDay = $("#pop_gcsBillingFirstPayDay").val();
	var goodsSeq = $("input[name='goodsSeq']").val();
	$.ajax({
		'url' : '/gcstossbilling/billing_calendar_pop',
		'data' : {'gcsBillingFirstPayDay':gcsBillingFirstPayDay, 'goods_seq':goodsSeq},
		'success' : function(html){
			if(html){
				cal_lay.html(html);
				cal_lay.show();
			}else{
				alert('달력생성에 실패하였습니다.');
			}
		}
	});
	$("#pop_gcsBillingCalendarDIV").show();
}

// 2022.06.08 gcs ksm : 정기배송에서 불필요하지만 달력의 기본함수라서없으면 오류남. (view.html 에는 기본함수로 있고, cart  때문에 이쪽에소스넣음)
function detail_contents_toggle(btn,contents){
	if($("#"+contents).is(":hidden")){
		$("#"+contents).show();
		if($(btn).is('.btn_open_small')) $(btn).addClass('btn_close_small');
	}else{
		$("#"+contents).hide();
		if($(btn).is('.btn_close_small')) $(btn).removeClass('btn_close_small');
	}
}