var stock = function() {
	$.ajax({
		type: "GET",
		url: "stock/stock.php",
		timeout: 5000,
		success: function(data) {
			$('#bolsa').html(data);
			setTimeout('stock()', 600000);
		},
		error: function() {
			setTimeout('stock()', 300000);
		}
	});
}

$('document').ready(function () {
    $.ajax({
        type: 'GET',
        url: 'stock/update.php',
        async: true,
        cache: false
    });
    stock();
});
