/**
 * header.html의 포인전환
 * author Daniel
 */

function exchangePointFn(point){
	
	if (point == 0){
		alert('전환할 포인트가 없습니다.');
		return false;
	}
	if(!confirm(point+'포인트 전환 하시겠습니까?')){
		return false;
	}
	
	$("body").append("<form id='exchPointFrm' action='/money/exchangePoint/exchangePoint.php' method='post'></form>");	
	$("#exchPointFrm").append("<input type='hidden' name='point' value='"+point+"'>");			
	$("#exchPointFrm").submit();	

}

function fnBoardListMouseOff(e){
	$(e).removeClass();
	$(e).addClass("boardListMouseOff");
}


function gotoUrl(url){
	location.href=url;
}

function modalBoxOut(){
	
	$.unblockUI();
	$("#modalBox").remove();
}

function loadingBox(){
	$("body").append("<div id='modalBox' style='display:none'></div>");
	$.blockUI({ message: $('#modalBox').load("/common/loading.html"), css:{width:"160px"} }); 
}
