// user feedback
function showLoading(show,msg) {
	
	if (!msg) msg='Loading ...' 
	$('#loadingstatus').html(msg);
	$('#loadingstatus').aqFloater({attach:'n', duration: 10, opacity: .8});
	if (show==1) {
		$('#loadingstatus').show();
	} else {	
	  // change message and set fadeout
	  $('#loadingstatus').html(msg); 
	  $('#loadingstatus')
      .animate({opacity: 1.0}, 1000)
      .fadeOut('slow', function() { $(this).hide();});
   }
}
// display an error
function showError(errortext) {
  $("#dlgerrortext").html(errortext);
  $("#dlgerror").dialog("open");
  return false;
}
