//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,295,220],    [455,330,245],    	[495,359,245],		[540,385,264],	[579,420,282]];
meses	 = [[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],[24,48],                               [24,36,54],       [24,36,54],      	[24,36,60],			[24,36,60],		[24,36,60]];
*/
/*cuotas =   [[[15,90],26],[31.90,53],[[47,75],79],[[63,50],105],[95,160],[127,209],[159,260],[191,315],[215,359],   [220,295,410],    [245,330,455],    	[245,359,495],		[264,385,540],	[282,420,579]];
meses	 = [[48,24],[48,24],[48,24],[48,24],[48,24],[48,24],[48,24],[48,24],[48,24],                               [54,36,24],       [54,36,24],      	[60,36,24],			[60,36,24],		[60,36,24]];

tae		 = [[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[24.51,24.51,24.51,24.51,24.51],[20.99,20.97,20.94,20.91,20.67],[19.82,19.73,19.66,19.58,19.53],[19.15,19.21,19.01,19.04,18.86],[17.13,17.11,17.17,17.03,17.15],[16.02,16.02,16.00,16.02,15.81],[15.04,15.24,15.01,14.87,15.00]];
tin		 = [[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[22.12,22.12,22.12,22.12,22.12],[19.21,19.19,19.17,19.14,18.94],[18.22,18.15,18.08,18.02,17.98],[17.65,17.70,17.53,17.55,17.40],[15.92,15.90,15.95,15.83,15.94],[14.95,14.95,14.93,14.95,14.76],[14.09,14.27,14.06,13.94,14.06]];*/


monto	 = 	[500,									1000,							1500,								2000,								3000,							4000,							5000,								6000];
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]],		[[379], [209],[155],[127]],		[[469],[260],[195],[159]],			[[565],[315],[230],[191]]];
meses	 = 	[[12,24,36,48],							[12,24,36,48],					[12,24,36,48],						[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;
	//alert(cuotas.length);
	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 = '<IMG SRC="images/10x10.gif" WIDTH="10" HEIGHT="5" BORDER="0" ALT="Direct Cash"><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Debe seleccionar Importe y Cuota<BR><BR><BR><IMG SRC="images/10x10.gif" WIDTH="10" HEIGHT="20" BORDER="0" ALT="Direct Cash"><BR>';		
	} else {		
		arr = document.getElementById("cuota").value.split('#');
		msg = '<IMG SRC="images/10x10.gif" WIDTH="10" HEIGHT="5" BORDER="0" ALT="Direct Cash"><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Usted ha seleccionado <b>'+ arr[0] +' &euro;</b><BR>&nbsp;&nbsp;&nbsp;&nbsp;Valor de la cuota <b>'+ arr[1] +' &euro;</b><BR>&nbsp;&nbsp;&nbsp;&nbsp;Tiempo <b>'+ arr[2] +' meses</b><BR><IMG SRC="images/10x10.gif" WIDTH="10" HEIGHT="20" BORDER="0" ALT="Direct Cash"><BR>';				
	}	
	document.getElementById("msg_monto").innerHTML = msg;	
}