/*** call by user ***/
jf_Board.on_docExpire = function(document_id)
{
	if ( confirm("판매완료처리하시겠습니까?")==true )
	{
		this.proc_docExpire(document_id);
	}
};

/*** call by server ***/
jf_Board.afterdocExpire = function()
{
	alert("판매완료 처리되었습니다.");
};
jf_Board.on_cmtLimitCount = function(limit_count)
{
	alert("이미 상담요청하셨습니다.");
};



jf_Board._render_docViewAfter = function(base_obj)
{
	base_obj.find(".board_btn_counsel_special")
		.click(function(){
			if(confirm("구매 상담을 요청하시겠습니까?\n\n[구매 상담요청시 해당 카마스터에게 회원님의 성함과 연락처가 발송됩니다]"))
			{
				$("#cmtWrite form").submit();
			}
		});
		//팝업 넣을자리

	//팝업 넣을자리
};
jf_Board._render_docWriteAfter = function()
{
	$("#docWrite")
		/*** select brand ***/
			// listing brands
			.find("select[name='made_in']").change(function(){
				na_api.motor.listing_brands(this.form.extra_vars1, {made_in:this});
			}).end()
			// listing models
			.find("select[name='extra_vars1']").change(function(){
				na_api.motor.listing_models(this.form.extra_vars2, {brand:this});
			}).end()
			// listing detail models
			.find("select[name='extra_vars2']").change(function(){
				na_api.motor.listing_detail_models(this.form.extra_vars3, {model:this});
			}).end()
		.end()
		;


};
