var Dialog = {
	Confirm: function(Title, Val){
		$.prompt(Title,{
			buttons: { 'Evet': true, 'Hayır': false },prefix: 'Dialog_Confirm_',
			top: '30%',
			submit:function(v,m,f){
					if(v){
						if(typeof Val == 'function'){
							return Val(v,m,f);
						}else if(typeof Val == 'string'){
							window.location  = Val;
						}
					}
				}
		});
	},
	Error: function(Title, Message){
		$.prompt('<h3 style="color: red">'+Title+'</h3>'+'<hr>'+Message,{
			buttons: { 'Tamam': true},prefix: 'Dialog_Error_',
			top: '30%'
		});
	},
	Popup: function(Title, Message, onClose){
		$.prompt('<h3>'+Title+'</h3>'+'<hr>'+Message,{
			buttons: { 'Tamam': true},prefix: 'Dialog_Popup_',
			top: '30%',
			callback:function(v){
				if(typeof onClose == 'function'){
					onClose();
				}else if(typeof onClose == 'string'){
					window.location  = onClose;
				}
			} 
		});
	}
}