
/**
 * 
 * @param Komunikat
 * @returns {Boolean}
 */
function uiAlert(Komunikat)
{
	$('#js-error-message-komunikat').text(Komunikat);
	$("#js-error-message").dialog("open");
	return false;
}

/**
 * 
 * @param Message
 * @param func
 */
function XConfirm(Message, func)
{
	$('#tresc-dialog-confirm').text(Message);
	$( "#dialog-confirm" ).dialog({
		resizable: false,
		autoOpen: true,
		height:140,
		title: 'Pytanie',
		modal: true,
		buttons: {
			"Tak": function() {
				$( this ).dialog( "close" );
				func();
			},
			"Nie": function() {
				$( this ).dialog( "close" );
			}
		}
	});
}

/**
 * Wyswietlamy wiadomosc
 * @param Message
 */
function Information(Message)
{
	$('#dialog').text(Message);
	$( "#dialog" ).dialog({
		autoOpen: false,
		show: "blind",
		hide: "explode",
		close: function() {
			;
		}
	});
	$( "#dialog" ).dialog( "open" );
}

