//definicion de los valores
/*monto	 = [500,1000,1500,2000,3000,4000,5000,6000,7000,8000,9000,10000,11000,12000];
cuotas = [[26,[15,90]],[53,31.90],[79,[47,75]],[105,[63,50]],[160,95],[209,127],[260,159],[315,191],[359,215],[410,240],[455,265],[495,285],[540,310],[579,330]];
meses	 = [[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48]];
tae		 = [[22.95,22.95],[22.95,22.95],[22.95,22.95],[22.95,22.95],[22.95,22.95],[22.95,22.95],[22.95,22.95],[22.95,22.95],[20.99,20.67],[19.82,19.53],[19.15,18.86],[17.13,17.15],[16.02,15.81],[15.04,15.00]];
tin		 = [[20.84,20.84],[20.84,20.84],[20.84,20.84],[20.84,20.84],[20.84,20.84],[20.84,20.84],[20.84,20.84],[20.84,20.84],[19.21,18.94],[18.22,17.98],[17.65,17.40],[15.92,15.94],[14.95,14.76],[14.09,14.06]];*/



monto	 = 	[500,									1000,							1500,								2000,								3000];
cuotas = 	[[[49],[26],[19,50],[15,90]],			[[99], [53],[39],[31,90]],		[[149], [79],[58],[47,75]],			[[189], [105],[78],[63,50]],		[[289],[160],[115],[95]]];
meses	 = 	[[12,24,36,48],							[12,24,36,48],					[12,24,36,48],						[12,24,36,48],						[12,24,36,48]];

tae		 = [[8.94,8.94,10.99,12.00,13.00],[8.94,8.94,10.99,12.00,13.00],[7.86,7.86,10.99,12.00,13.00],[7.86,7.86,10.99,12.00,13.00],[4.70,5.67,9.45,11.06,11.06],[4.70,5.67,9.45,11.06,11.06],[4.70,5.67,9.45,11.06,11.06],[4.70,5.67,9.45,11.06,11.06],[4.70,5.67,9.45,11.06,11.06],[4.70,5.67,9.45,11.06,11.06]];
tin		 = [[8.59,8.59,10.47,11.39,12.28],[8.59,8.59,10.47,11.39,12.28],[7.59,7.59,10.47,11.39,12.28],[7.59,7.59,10.47,11.39,12.28],[4.60,5.53,9.06 ,10.54,10.54],[4.60,5.53,9.06 ,10.54,10.54],[4.60,5.53,9.06 ,10.54,10.54],[4.60,5.53,9.06 ,10.54,10.54],[4.60,5.53,9.06 ,10.54,10.54],[4.60,5.53,9.06 ,10.54,10.54]];

contents=new Array();

var separator="<+>";

TCN_makeComboGroup('monto','cuota');
var vi = 0;
while( vi < monto.length ) {	
	var vj = 0;
	while( vj < cuotas[vi].length ) {	
		varvalue = monto[vi] + '#' + cuotas[vi][vj] + '#' + meses[vi][vj] + '#' + tae[vi][vj] + '#' + tin[vi][vj];
		cadenafinal = monto[vi] + ' €' + '<+>' + monto[vi] + '<+>' +  cuotas[vi][vj] + ' €' + '<+>' + varvalue;
		TCN_addContent(cadenafinal);		
		vj++;
	}
	vi++;
}
TCN_startCombo();

function PoneCartel(ol) 
{
	if(ol) {
		msg = '&nbsp;&nbsp;<BR>&nbsp;&nbsp;Debe seleccionar Importe y Cuota<BR><BR><BR><BR><BR>';		
	} else {		
		arr = document.getElementById("cuota").value.split('#');
		msg = '<BR>&nbsp;&nbsp;Usted ha seleccionado <b>'+ arr[0] +' &euro;</b><BR>&nbsp;&nbsp;Valor de la cuota <b>'+ arr[1] +' &euro;</b><BR>&nbsp;&nbsp;Tiempo <b>'+arr[2]+' meses</b><BR><BR><BR>'
	}	
	document.getElementById("msg_monto").innerHTML = msg;	
}
