<!--
function Atualizar(){
	with(document.frm){
		var vObjetivo = strToNum(Valor.value);
		var vJuros = strToNum(Juros.value);
		var vImposto = strToNum(Imposto.value);
	}
	if (vObjetivo < 300000)
		alert("Não é permitido o campo \"Objetivo\" inferior à R$ 300.000,00")
	else if (vObjetivo > 1500000)
		alert("Não é permitido o campo \"Objetivo\" superior à R$ 1.500.000,00%")
	else if (vJuros < 0)
		alert("Não é permitido o campo \"Juros Mensais de Investimento\" inferior à 0.00%")
	else if (vJuros > 10)
		alert("Não é permitido o campo \"Juros Mensais de Investimento\" superior à 10,00%")
	else if (vImposto < 0)
		alert("Não é permitido o campo \"Imposto Sobre o Investimento\" inferior à 0.00%")
	else if (vImposto > 100)
		alert("Não é permitido o campo \"Imposto Sobre o Investimento\" superior à 100,00%")
	else {
		document.frm.target = '';
		document.frm.action = 'Objetivo.asp';
		document.frm.submit();
	}
}

function MudaFrame(frame){
  document.frm.target = '';
  document.frm.action = 'Objetivo.asp';
  document.frm.frame.value = frame;
  document.frm.submit();
}

function EnviaEmail(Objetivo, RetornoMensal, Imposto, Rendimento, Periodo, ValorPoupado, TotalDeposito, TotalJuros){ 
  var features = 'resizable=no,toolbar=no,location=no,status=no,menubar=no,directories=no,scrollbars=yes,width=600,height=230';
      window.open('','Email',features);
	  document.frm.action = 'http://www.infomoney.com.br/msn/fillform.asp?nome=objetivodata&objetivo='+ Objetivo +'&retorno_mensal='+ RetornoMensal +'&imposto_investimento='+ Imposto +'&rendimento_real='+ Rendimento +'&Periodo='+ Periodo +'&valor_poupado_mes='+ ValorPoupado +'&total_depositos='+ TotalDeposito +'&total_juros='+ TotalJuros
	  document.frm.target = 'Email';
	  document.frm.submit();
}
//-->