$(document).ready(
	function() {
		
	}
);

function getSpots(success){
	try{
		var valores ="'accion':'sel',";
		valores+="'id':'0'";		

		valores='_p='+encode(escape('{'+valores+'}'));
				
		url=path+'src/controller/spot.php';

		$.ajax({
		    url: url,
		    data: valores,
		    success: function(response){
				success(parsearJSON(decode(response)));
			}
		});
	}catch(err){
		errorMsg(err,arguments);
		return null;
	}
}
