if( undefined === document.SBS ) {
	SBS = {};
}
if( undefined === SBS.common) {
	SBS.common = {};
}

$( document).ready( function() {

/*	
	$('#messageDialog').dialog(
			{
				autoOpen:false,
				modal:true,
				resizable:false,
				draggable:false,
				position:'center',
				buttons: { "Ok": function() {
							$(this).dialog("close");
						}}
		});
	
	$('#yesNoConfirmDialog').dialog(
			{
				autoOpen:false,
				modal:true,
				resizable:false,
				draggable:false,
				title:"Confirmation",
				position:'center',
				buttons: { 
					"Yes": function() {
						$(this).dialog("close");
					},
					"No": function() {
						$(this).dialog("close");
					}					
				}
			});

	*/
});

//msgText is mandatory, but msgTitle is optional and defaults to 'Information')
SBS.common.msg = function( msgText, msgTitle) {
	alert( msgText);
	/*
	if( undefined == msgTitle) {
		msgTitle = "Information";
	}
	$('#messageDialog').dialog('option', 'title', msgTitle).html( msgText);
	$('#messageDialog').dialog('open');
	*/
};

//msgText is mandatory, but msgTitle is optional and defaults to 'Information')
SBS.common.yesNoConfirm = function( msgText, onConfirmCallback) {

	/*
	$('#yesNoConfirmDialog').html( msgText);
	$('#yesNoConfirmDialog').dialog('option', 'buttons', 
			{ 
				"Yes": function() {
					if( $.isFunction( onConfirmCallback) ) {
						onConfirmCallback();
					}
					$(this).dialog("close");
				},
				"No": function() {
					$(this).dialog("close");
				}					
			}	
	);
	$('#yesNoConfirmDialog').dialog('open');
	*/
};