	<!--


function bloquear(num)	{

	if(num==1){
			
		if(datos.tie[1].checked){

			datos.tintext.value="  -----";
			datos.tietext.value="";	
			datos.tintext.disabled=true;	
			datos.tietext.disabled=false;		
			datos.tietext.focus();			
			} else {
			datos.tintext.value="";
			datos.tietext.value="  -----";	
			datos.tintext.disabled=false;	
			datos.tietext.disabled=true;	
			datos.tintext.focus();			
		
			}
		}else{
			if(datos.tie[1].checked){

			datos.tintext.value="  -----";
			datos.tietext.value="";	
			datos.tintext.disabled=true;	
			datos.tietext.disabled=false;
			datos.tietext.focus();	
			} else {
			datos.tintext.value="";
			datos.tietext.value="  -----";	
			datos.tintext.disabled=false;	
			datos.tietext.disabled=true;				
			datos.tintext.focus();			
			}
		}

		
}

	function calcular(){
			var plazo=parseFloat(datos.frac.value);
			if(datos.tie[1].checked){
				if (datos.tietext.value=="" || !realpos(datos.tietext.value)){
					datos.tietext.select();
					datos.tietext.focus();
					alert("El TIE debe ser un número real positivo");

					return false;
					}
				var tipo = parseFloat(datos.tietext.value);
				

				var interes=(Math.pow(1+tipo/100,1/plazo)-1)*plazo*100;
				datos.tintext.value=Math.round(interes*100)/100;

				} else{
				if (datos.tintext.value==""|| !realpos(datos.tintext.value)){
					datos.tintext.select();
					datos.tintext.focus();

				alert("El TIN debe ser un número positivo");

					return false;
					}

				var tipo = parseFloat(datos.tintext.value);

				var interes= (Math.pow(1+tipo/(plazo*100),plazo)-1)*100;
				datos.tietext.value=Math.round(interes*100)/100;
			
			
			}
	}

	//-->

