<!--
todois = '<form name="formu" method="post" action="iframe_general.asp" target="resultados">';
todois = todois + '<table width="100%"  border="0" cellspacing="0" cellpadding="0"  background="img_simulador/ce_top.gif">';
todois = todois + '<tr valign="middle"><td width="12" height="42"><img src="img_simulador/transpa.gif" width="12" height="42"></td>';
todois = todois + '<td width="344"><span class="texto12_bold">Resultados vistos por&nbsp;&nbsp;</span>';
todois = todois + '<input type="hidden" name="pdfs" value=""><img src="img_simulador/transpa.gif" name="vistas" width="187" height="10" border="0"></td>';
todois = todois + '<td width="204" align="center"><select name="tipo_muestra" style="font-family:Arial, Helvetica, sans-serif; font-size:10px;" onChange="MM_jumpMenuCoto(\'resultados\',this,0);">';
todois = todois + '<option value="pol_inver">Pol&iacute;tica de inversi&oacute;n</option>';
todois = todois + '<option value="carac_comer">Caracter&iacute;sticas Comerciales</option>';
todois = todois + '<option value="rentabilidad">Rentabilidad</option>';
todois = todois + '</select></td></tr></table><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
todois = todois + '<tr>';
todois = todois + '<td width="560"><iframe src="iframe_general.asp" name="resultados" width="560" height="190" frameborder="0" marginwidth="0" marginheight="0" >Actualiza tu browser.</iframe>';
todois = todois + '</td></tr></table></form>';

nadais = '<a href="javascript:enviaPropuesta()"><img src="imagenes/qftd_boton_ver_fdo.gif" width="81" height="34" border="0"></a>';
nadais = nadais + '<br><img src="imagenes/transpa.gif" width="200" height="2">';

function desabilitar(layeris, amostrar, amostrarnt){
	if(document.all){
		eval('document.all.'+layeris+'.innerHTML='+amostrar); 
	}
	else if(document.layers){
		document.layers[layeris].document.open();
		document.layers[layeris].document.write(amostrar);
		document.layers[layeris].document.close();
	}
	else if(document.getElementById && !document.all){
	//alert(document.getElementById('viewresult').innerHTML+ " - "+ nadais)
		document.getElementById('viewresult').innerHTML=amostrarnt; 
	}
}

var pdfs, pdfs_all, tipos, numtipos, valido=false;
pdfs = new Array("dereserva", "incremento", "moneymarket", "overnight", "moneymarketdolar", "activo", "supercuenta", "superinteres", "rentabilidad", "acumulacion", "hiperdeposito", "intermediacion",  "bonosyletras", "bonosdolar", "superplandolar", "euro", "acciones", "acciones2", "accionesch", "norteamericano", "europeo", "asiatico", "latinoamericano", "mne", "tecnologico", "globaldesarrollado","retailconsumo","gestionactiva","gestiondinamica","gestionprotegida","gestionactivaapv","gestiondinamicaapv","gestionprotegidaapv","asiaticoapv","latinoamericanoapv","tecnologicoapv","europa");
//pdfs_all = pdfs.join(",");
pdfs_all="";
for (i=0;i<pdfs.length;i++){
	pdfs_all=pdfs_all +","+pdfs[i];
}
tipos = new Array("nombre","horizonte","monto","fondo","mercado","fondosapv","")
numtipos = tipos.length-1

function asignPDF(){
//numasig = asignPDF.arguments.length;
//alert(numasig)
document.formCoto.TEMPpdfs.value = "";
	if (asignPDF.arguments[0] == "todos"){
		document.formCoto.TEMPpdfs.value = pdfs_all;
	}
	else{
		arreglo = asignPDF.arguments[0].split(",")
		numarreglo = arreglo.length;
		//alert(numarreglo)
		for (i = 0; i < numarreglo; i++) {
			document.formCoto.TEMPpdfs.value = document.formCoto.TEMPpdfs.value + "," + pdfs[arreglo[i]];
		}
	}
//alert(document.formu.pdfs.value.charAt(0));
}

function FalseCoto(mostrar, radioC){
desabilitar('viewresult', 'nadais', nadais)
//document.formu.tipo_muestra.selectedIndex = 0;
//document.formu.tipo_muestra.disabled = true;
	for (i = 0; i < numtipos; i++) {
		if (i != mostrar ){
			eval('document.formCoto.'+tipos[i]+'.disabled = true');
		}
	eval('document.formCoto.'+tipos[i]+'.selectedIndex = 0');
	}
	eval('document.formCoto.'+tipos[mostrar]+'.disabled = false');
	if (radioC == "yes")
	document.formCoto.radioCoto[mostrar].checked = true
}

function marca(op){
	for (i = 0; i < numtipos; i++) {
		eval('document.formCoto.'+tipos[i]+'.disabled = true');
	}
	document.formCoto.radioCoto[op].checked = true
}
function enviaPropuesta(){
	for (i = 0; i < numtipos; i++) {
		if (eval('document.formCoto.'+tipos[i]+'.selectedIndex') != 0){
			valido = true;
		}
	}
	if (document.formCoto.radioCoto[6].checked ==true){	valido = true;	}

	if(valido){
		//---------------------cookies----------------------//
		//alert(document.formCoto.TEMPpdfs.value)
		setCookie("cookffmm", document.formCoto.TEMPpdfs.value+getCookie("cookffmm"));
		//alert(getCookie("cookffmm"))
		//--------------------------------------------------//
		desabilitar('viewresult', 'todois', todois);
		document.formu.pdfs.value = document.formCoto.TEMPpdfs.value;
		document.formu.tipo_muestra.selectedIndex = 0;
		document.formu.tipo_muestra.disabled = false;
		MM_swapImage('vistas','','img_simulador/titulo_pol_inver.gif',1);
		document.formu.submit();
		histo.location.reload();
		valido = false;
	}
	else{
		alert("Elija una opción antes de ver los fondos")
	}
}

function MM_jumpMenuCoto(targ,selObj,restore){ //v3.0
	//alert(targ+".location='iframe_general.asp?tipo_muestra="+selObj.options[selObj.selectedIndex].value+"'");
	MM_swapImage('vistas','','img_simulador/titulo_'+selObj.value+'.gif',1);
	document.formu.submit();
}

function inicio(){
	document.formCoto.nombre.disabled = true;
	document.formCoto.horizonte.disabled = true;
	document.formCoto.monto.disabled = true;
	document.formCoto.fondo.disabled = true;
	document.formCoto.mercado.disabled = true;
	//alert(window.document.getElementById('viewresult').innerHTML);
	//document.formu.tipo_muestra.selectedIndex = 0
	//document.formu.tipo_muestra.disabled = true
	desabilitar('viewresult', 'nadais', nadais);
}

//-->

