// JavaScript Document
	function MostraIndicadores(tipo,nome) {
		SendAjax('app/ajax/indicadores.php?tipo=' + tipo + '&nome=' + nome, UpdateIndicadores);
	}
	function MostraDolar(tipo,nome) {
		SendAjax('app/ajax/indicadores.php?tipo=' + tipo + '&nome=' + nome, UpdateDolar);
	}

	function UpdateIndicadores(state, results) {
		var PollDiv = document.getElementById('ativos');
		if(state == 4){
			PollDiv.innerHTML = results;
		}else if(state == 1){
			PollDiv.innerHTML = '<em>Carregando ativos...</em>';
		}

	}
	function UpdateDolar(state, results) {
		var PollDiv = document.getElementById('dolar');
		if(state == 4){
			PollDiv.innerHTML = results;
		}else if(state == 1){
			PollDiv.innerHTML = '<em>Carregando dólar...</em>';
		}

	}
