$(function() {
	$.oi={
		post : function (url,data)
		{
			$.ajax({
				type: "POST",
				url: url,
				dataType:"json",
				data:data,
				success:function(data,retStatus){
					eval('(' + data.func + ')(data)');
				},
				error:function (xhr, ajaxOptions, thrownError){
					alert('Ошибка отправки данных: status:'+xhr.status+' '+thrownError);
				}    
			});		
		}
	}
});
