
function chkEmpty(obj,alarm){
	if($.trim(obj.val()).length < 1){
		obj.focus();
		alert(alarm);
		return true;
	}

	return false;
}

function func_selectBos(){

	$(".selectbox").css('display','none');
	$(".pulldown_arrow").click(function(){
		if($(this).next('.selectbox').css('display') == 'block'){
			$(this).next('.selectbox').css('display','none');
		}else{
			$(this).next('.selectbox').css('display','block');
		}
	});
	
	$(".selectbox li").click(function(){	
		if($(this).parent().prev().prev('.ddopener').attr('addDiv') == 1){
			$(this).parent().prev().prev('.ddopener').html('<div>'+$(this).html()+'</div>');
		}else{
			$(this).parent().prev().prev('.ddopener').html($(this).html());
		}
		$(this).parent().css('display','none');
		$(this).parent().next('input').val($(this).html());
	});		
}