/*
Ajax
*/
//Atualização dos Campos via AJAX
function fnAjax(method_, id_, url_, pars_, after_, msg_) {
	var msg = (msg_ == "") ? "Carregando... Aguarde" : msg_;
	$(id_).update(msg);
	
	new Ajax.Request(url_, {
		method: method_,
		parameters: pars_,
		onSuccess: function(ajax_) {
			$(id_).update(ajax_.responseText);

			if (after_ != "")
				eval(after_);
		},
		onFailure: function(ajax_) {
			$(id_).update(ajax_.responseText);
		}
	});
}
