//definicion de los valores
/*monto	 = [6000,7000,8000,9000,10000,11000,12000,13000,14000,15000];
cuotas = [[[526,35],[275,73],[197,77],[159,15],[137,38]],[[614,07], [321,69],[230,73],[185,68],[160,27]],[[698.09], [363,97],[263,69],[212,20],[183,17]],[[785,35], [409,47],[296,65],[238,73],[206.07]],[[859,88],[445,59],[322,95],[261.08],[220,12]],[[945,87], [490,15],[355,24],[287,19],[242,14]],[[1031,86],[534,71],[387,54],[313,30],[264,15]],[[1117,84],[579,27],[419,84],[339,41],[286,16]],[[1203,83],[623,83],[452,13],[365,52],[308,17]],[[1289,82],[668,39],[484,43],[391,62],[330,19]]];
meses	 = [[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60],[12,24,36,48,60]];
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]];*/


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;
	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;	
}