function alertM(msg,title){
	
	if(title == "" || title == undefined){title = "Alerta";}
	
	return $("<div></div>")
		.html("<p>"+msg+"</p>")
		.attr("title",title)
		.appendTo("body")
		.addClass("dialogAlert")
		.dialog({ width:450, buttons: { "Ok": function() { $(this).dialog("close"); } } });
	
}
