
function menu_intermediarios()
{
	
var menu = "<table valign='top' id='menu_niv0' name='menu_niv0' border='0' cellpadding='0' cellspacing='0' width='100%'  align=center >";
menu = menu + "<tr >";
menu = menu + "<td class='td_link_niv1' height='38'>";
menu = menu + "<A name='menu_1' id='menu_1' class='link_niv1' href='"+ RUTA_PAG + "Intermediarios/home_intermediarios.htm\'>Home</A>"; 
menu = menu + "<A name='menu_2' id='menu_2' class='link_niv1' href='"+ RUTA_PAG + "personas/jubilacion/jub_vitalicias.htm?val_btn=INTERMEDIARIOS\'>Rentas Vitalicias</A>";
menu = menu + "<A name='menu_3' id='menu_3' class='link_niv1' href='"+ RUTA_PAG + "Intermediarios/herramientas/herramientas.htm\'>Herramientas</A>";
menu = menu + "<A name='menu_4' id='menu_4' class='link_niv1' href='"+ RUTA_PAG + "personas/conocenos/conocenos_cl.htm?val_btn=INTERMEDIARIOS\'>Conócenos</A>";
menu = menu + "</td>";
menu = menu + "</tr>";
menu = menu + "</table>";
return menu;
}

function acceso_intermediario()
{
if (  (strURL == "TOOLBOX") || (strURL == "MLFDESARROLLO") || (strURL == "MLFDESAINTERNET") || (strURL == "172.22.1.55") )
{
	PathInicial = "http://mlfdesainternet/CorredoresRentasNuevaImagen";
}
else
{
	PathInicial = "http://www.metlife.cl/Aplicaciones";  // VALIDAR RUTA PRODUCCIÓN
}
RutaInter = PathInicial + "/RentasVitalicias/Ingreso/Procesa_login.asp"

Ruta_Olvido = PathInicial + "/RentasVitalicias/Ingreso/olvido_clave.asp"

	
var texto = "<table border='0' cellspacing='0' cellpadding='0' align='center'>";
texto = texto + "<tr>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_izq_sup.gif\'></td>";
texto = texto + "<td width='200'height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_sup.gif\'></td>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_der_sup.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td width='6' height='1' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_izq.gif\'></td>";
texto = texto + "<td width='200'>";
texto = texto + "<table border='0' cellspacing='0' cellpadding='0' width='100%' class='FondoTablaVerde'>";
texto = texto + "<tr>";
texto = texto + "<td>";
texto = texto + "<form name='form_inter' method='post' action='"+ RutaInter + "\'>";
texto = texto + "<table border='0' cellspacing='0' cellpadding='0'  width='100%' height='136' valign='center'>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' class='subtit_det_prod'>&nbsp;&nbsp;&nbsp;Acceso Intermediario</td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' align='center'><img src='"+ RUTA_PAG + "imagenes/linea_menu_lat.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td>";
texto = texto + "<table border='0' cellpadding='0' cellspacing='0' width='100%' align=center >";
texto = texto + "<tr>";
texto = texto + "<td align='right' class='text_det_prod'>&nbsp;Rut</td>";
texto = texto + "<td>&nbsp;:&nbsp;<input class='input_home' name='Txt_Rut' id='Txt_Rut' size='11' maxlength='13' tabindex='1' onchange='return verifica_rut(this)' onblur='verifica_rut(this)'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td align='right' class='text_det_prod'>&nbsp;Clave</td>";
texto = texto + "<td>&nbsp;:&nbsp;<input class='input_home' type='password' name='Txt_clave' id='Txt_clave' size='11' maxlength='13' tabindex='2' ></td>";
texto = texto + "</tr>";
texto = texto + "</table>";
texto = texto + "</td>";

texto = texto + "<td align='center' valign='center'>";
texto = texto + "<input type='image' src='"+ RUTA_PAG + "imagenes/botones/btn_ingresar.gif\' tabindex='3' onLoad='document.form_inter.Txt_Rut.focus();' onClick='return verifica_rut(document.form_inter.Txt_Rut)' name='img_enviar' >";
texto = texto + "</td>";

texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' height='15' class='texto_azul'>";
texto = texto + "<A class=link_tabla_lat href='"+ Ruta_Olvido +"'>";
texto = texto + "&iquest;Olvid&oacute; su Clave?</a></td>";

texto = texto + "</tr>";
texto = texto + "</table>";
texto = texto + "</form>";
texto = texto + "</td>";
texto = texto + "</tr>";
texto = texto + "</table>";
texto = texto + "</td>";
texto = texto + "<td width='6' height='1' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_der.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_izq_inf.gif\'></td>";
texto = texto + "<td width='200' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_inf.gif\'></td>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_der_inf.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "</table>";
return texto;
}


function acceso_intermediario_PIP()
{

if ( (strURL == "MLFDESARROLLO") || (strURL == "MLFDESAINTERNET") || (strURL == "172.22.1.55") )
{
	PathInicial = "../../CorredoresRentasNuevaImagen/RentasVitalicias/PIP"
}
else
{
	PathInicial = "/Aplicaciones"
}

RutaInter = PathInicial + "/RentasVitalicias/ingreso/Procesa_login.asp"
	
var texto = "<table border='0' cellspacing='0' cellpadding='0' align='center'>";
texto = texto + "<tr>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_izq_sup.gif\'></td>";
texto = texto + "<td width='200'height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_sup.gif\'></td>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_der_sup.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td width='6' height='1' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_izq.gif\'></td>";
texto = texto + "<td width='200'>";
texto = texto + "<table border='0' cellspacing='0' cellpadding='0' width='100%' class='FondoTablaVerde'>";
texto = texto + "<tr>";
texto = texto + "<td>";
texto = texto + "<form name='form_inter' method='post' action='"+ RutaInter + "\'>";
texto = texto + "<table border='0' cellspacing='0' cellpadding='0'  width='100%' height='136' valign='center'>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' class='subtit_det_prod'>&nbsp;&nbsp;&nbsp;Acceso Intermediario</td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' align='center'><img src='"+ RUTA_PAG + "imagenes/linea_menu_lat.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td>";
texto = texto + "<table border='0' cellpadding='0' cellspacing='0' width='100%' align=center >";
texto = texto + "<tr>";
texto = texto + "<td align='right' class='text_det_prod'>&nbsp;Rut</td>";
texto = texto + "<td>&nbsp;:&nbsp;<input class='input_home' name='Txt_Rut' id='Txt_Rut' size='11' maxlength='13' tabindex='1' onchange='return checkRutField(this);'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td align='right' class='text_det_prod'>&nbsp;Clave</td>";
texto = texto + "<td>&nbsp;:&nbsp;<input class='input_home' type='password' name='Txt_clave' id='Txt_clave' size='11' maxlength='13' tabindex='2' ></td>";
texto = texto + "</tr>";
texto = texto + "</table>";
texto = texto + "</td>";
texto = texto + "<td align='center' valign='center'>";
texto = texto + "<input type='image' src='"+ RUTA_PAG + "imagenes/botones/btn_ingresar.gif\' onLoad='document.form_inter.Txt_Rut.focus();' onClick='return checkRutField(document.form_inter.Txt_Rut);'>";
texto = texto + "</td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' height='15' class='texto_azul'>¿Olvidó su Clave? Ingrese aquí</td>";
texto = texto + "</tr>";
texto = texto + "</table>";
texto = texto + "</form>";
texto = texto + "</td>";
texto = texto + "</tr>";
texto = texto + "</table>";
texto = texto + "</td>";
texto = texto + "<td width='6' height='1' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_der.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_izq_inf.gif\'></td>";
texto = texto + "<td width='200' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_centro_inf.gif\'></td>";
texto = texto + "<td width='6' height='6' background='"+ RUTA_PAG + "imagenes/tabla/rec_lat_der_inf.gif\'></td>";
texto = texto + "</tr>";
texto = texto + "</table>";
return texto;
}

