var UICompUtil = {

	'func_show_loading_on_node':null,
	'func_hide_loading_on_node':null

};

UICompUtil.ShowLoadingOnNode = function(id)
{
	if(this.func_show_loading_on_node)
		func_show_loading_on_node(id);
	else
		this.DefaultShowLoadingOnNode(id);
}

UICompUtil.HideLoadingOnNode = function(id)
{
	if(this.func_hide_loading_on_node)
		func_hide_loading_on_node(id);
	else
		this.DefaultHideLoadingOnNode(id);
}


//********************************** default functions *****************************

UICompUtil.DefaultShowLoadingOnNode = function(id)
{
	JSFeature.WhiteOutNode(id);

	var tmp_div = document.createElement('div');
	tmp_div.id = id+'_center_message';
	tmp_div.innerHTML = 'Please wait...';
	tmp_div.style.backgroundColor = 'white';
	tmp_div.style.border = '5px solid black';
	tmp_div.style.fontWeight = 'bold';
	tmp_div.style.padding = '15px';
	JSFeature.CenterNodeOnNode(tmp_div, document.getElementById(id))
}

UICompUtil.HideLoadingOnNode = function(id)
{
	JSFeature.UnWhiteOutNode(id);
	JSFeature.RemoveCenterNodeOnNode(document.getElementById(id+'_center_message'))
}