
function menu_agentes()
{
	
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 + "Agentes/home_agentes.htm\'>Home</A>"; 
menu = menu + "<A name='menu_2' id='menu_2' class='link_niv1' href='"+ RUTA_PAG + "Agentes/unete/nuestro_equipo.htm?val_btn=AGENTES\'>&Uacute;nete a nuestro equipo</A>";
menu = menu + "<A name='menu_3' id='menu_3' class='link_niv1' href='"+ RUTA_PAG + "Agentes/herramientas/herramientas.htm?val_btn=AGENTES&carpeta=tbl_1\'>Herramientas</A>";
menu = menu + "<A name='menu_4' id='menu_4' class='link_niv1' href='"+ RUTA_PAG + "Personas/conocenos/conocenos_cl.htm?val_btn=AGENTES\'>Con&oacute;cenos</A>";
menu = menu + "</td>";
menu = menu + "</tr>";
menu = menu + "</table>";
//alert(menu)
return menu;
}

function acceso_agentes()
{

if ( (strURL == "TOOLBOX") || (strURL == "MLFDESARROLLO") || (strURL == "MLFDESAINTERNET") || (strURL == "172.22.1.55") )
{
	PathInicial = "http://mlfdesainternet/portalagentes";
}
else
{
	PathInicial = "http://www.metlife.cl/portalagentes/"; // VALIDAR RUTA PRODUCCIÓN
}

Ruta = PathInicial + "/Servicios/val_pass.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='formulario' method='post' action='"+ Ruta + "\'>";
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 Agente</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.formulario.Txt_Rut.focus();' onClick='return verifica_rut(document.formulario.Txt_Rut)' name='img_enviar' >";
texto = texto + "</td>";

texto = texto + "</tr>";
texto = texto + "<tr>";
texto = texto + "<td colspan='2' height='15' class='texto_azul'>";

var_tit = "Olvido"
var_m1  = 420
var_m2  = 380

if (  (strURL == "TOOLBOX") || (strURL=="172.22.1.55")||(strURL=="MLFDESARROLLO") )
	url_olv = "http://172.22.1.123:103/aplicaciones/olvido_clave.asp";
else
	url_olv = "http://www.portalmetlifechile.cl/aplicaciones/olvido_clave.asp";


texto = texto + "<A class=link_tabla_lat href=javascript:abrir_ventana('"+var_tit+"','"+url_olv+"',"+var_m1+","+var_m2+")> ";
	
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>";
//alert(texto)
return texto;
}




