
$(function()
{

	// show feedback in a dialog
	if ($('#Feedback').length && $('#Feedback').val() != '')
	{
		$('#Feedback').after('<div id="DialogFeedback" title="Notification"><br /><p style="text-align:center">' + $('#Feedback').val() + '</p></div>');

		$('#DialogFeedback').dialog({
			bgiframe: true,
			autoOpen: true,
			modal: true,
			width: 400,
			resizable: false,
			buttons: {
				'close': function() {
					$(this).dialog('close');
				}
			}
		});
	}

});
