function goSeleccion() {
var i_fila = goSeleccion.arguments[0];
var i_columna = goSeleccion.arguments[1];
var frmFrm = top.frame_herramienta;
	
	frmFrm.goSeleccion(i_fila, i_columna);
}
function goNodo() {
var o_combo = goNodo.arguments[0];
var c_valor, arrArgum;
var frm = document.forms[0];

	if (o_combo.selectedIndex != -1) {
		c_valor = o_combo.options[o_combo.options.selectedIndex].value;
		if (c_valor != '') {
			arrArgum = c_valor.split('^');
			if (arrArgum[1] == '') {
				frm.target = '_top';
				frm.action = 'opensite_' + arrArgum[0] + '.aspx';
				frm.submit();
			}
			else {
				frm.target = arrArgum[2];
				frm.action = arrArgum[1];
				frm.submit();
			}
		}
	}
}
function goLink(sLink, sTarget) {
	if(sTarget == "_top") {
		top.location = sLink;
		return;
	}
	if(sTarget == "_self") {
		self.location = sLink;
		return;
	}
	if(sTarget == "_blank") {
		window.open(sLink, "Blank");
		return;
	}
}
MenuM01 = null;
function goMenuLinks(accion, tipo) {
var c_link, i_wd, i_hg;

	if(accion == 'AGREGAR' && tipo == 'FAVO') {
		c_link = '../appknova/miportal/frm_show_nodo.asp';
		c_link = c_link + '?glb_cod_sistema=' + document.forms[0].glb_cod_sistema.value;
		i_wd	 = 500;
		i_hg	 = 410;
	}
	if(accion == 'AGREGAR' && tipo == 'LINK') {
		c_link = '../appknova/miportal/app_miportal_nod_con.asp';
		c_link = c_link + '?glb_cod_sistema=' + document.forms[0].glb_cod_sistema.value;
		c_link = c_link + '&hdd_tip_lnk_miportal=' + tipo;
		i_wd	 = 300;
		i_hg	 = 250;
	}
	if(accion == 'EDITAR' || accion == 'ELIMINAR' || accion == 'ORDENAR') {
		c_link = '../appknova/miportal/app_miportal_nod_con.asp';
		c_link = c_link + '?glb_cod_sistema=' + document.forms[0].glb_cod_sistema.value;
		c_link = c_link + '&hdd_tip_lnk_miportal=' + tipo;
		if(tipo == 'FAVO') {
			i_wd	 = 300;
			i_hg	 = 180;
		}
		else {
			i_wd	 = 300;
			i_hg	 = 250;
		}
	}
	OpenWindow(c_link, i_wd, i_hg, 'win_nor', 'no', 'Agrega');
	return;
}
function goSeleccionaMenu(IdTd) {
var objTd = document.getElementById(IdTd)
	objTd.style.backgroundColor = "#a3a5e9";
}
function goDesSeleccionaMenu(IdTd) {
var objTd = document.getElementById(IdTd)
	objTd.style.backgroundColor = "#c4d2f7";
}
function notSupported() { 
	alert(c_label_01); 
}
function init() {
  if(document.all) {
    if(!document.getElementById)
			document.getElementById = document.all;
  }
	else 
		if(!document.getElementById) { 
			notSupported(); 
			return; 
		}
  var div;
  div=document.getElementById('MenuM11');
  div.oncontextmenu = popupMenu;
  if(div.addEventListener)
    div.addEventListener('contextmenu',popupMenu,true);
  else
		div.style.display = 'none';
}
function popupMenu(e) {
var opc = popupMenu.arguments[1];
  if(document.all) e=window.event;
  e.cancelBubble=true;
  goOcultaMenus();
  if(!document.all) {
    myMenu = document.getElementById(opc);
    myMenu.style.left = e.pageX+'px';
    myMenu.style.top  = e.pageY+'px';
    myMenu.style.display = 'block';
  }
  else {
    myMenu = document.getElementById(opc);
    myMenu.style.left = (e.clientX+document.body.scrollLeft)+'px';
    myMenu.style.top  = (e.clientY+document.body.scrollTop )+'px';
    myMenu.style.display = 'block';
  }
  return false;
}
function hideAllMyMenu(strMenu) {
var arr = strMenu.split(",");
	for(i=0;i<arr.length;i++)
		hideMyMenu(arr[i]);
}
function hideMyMenu(IdMenu) {
  if(document.getElementById(IdMenu)) {
    document.getElementById(IdMenu).style.display = 'none';
  }
}
function setHandler(nm,kind,dir) {
  var div=document.getElementById(nm);
  if(kind==1) div.oncontextmenu=dir?popupMenu:null;
  if(kind==2) {
    if(dir) div.addEventListener('contextmenu',popupMenu,false);
    else    div.removeEventListener('contextmenu',popupMenu,true);
  }
}
function goComprimeModulo(Modulo, sImgOn, sImgOff) {
var objSubTabla = document.getElementById('TABLA' + Modulo);
var objImgTabla = document.getElementById('IMG' + Modulo);

	sImgOn 	= c_path_portal + sImgOn;
	sImgOff = c_path_portal + sImgOff;
	if(objSubTabla.style.display == 'none') {
		objSubTabla.style.display = 'block';
		objImgTabla.src = sImgOn;
	}
	else {
		objSubTabla.style.display = 'none';
		objImgTabla.src = sImgOff;
	}
}
function goMenuQuitarModulo(ModuloCompleto) {
var objModuloTabla = document.getElementById(ModuloCompleto);
	objModuloTabla.style.display = 'none';
}
function goMenuAgregarModulo(ModuloCompleto) {
var objModuloTabla = document.getElementById(ModuloCompleto);
	objModuloTabla.style.display = 'block';
}
function goSeleccionaModulo(Modulo) {
var	objTabla = document.getElementById(Modulo);
	objTabla.style.backgroundColor = 'red';
}
function goDesSeleccionaModulo(Modulo) {
var	objTabla = document.getElementById(Modulo);
	objTabla.style.backgroundColor = 'white';
}
var strColCelAct = "#ffffff";
var strColCelNue = "red";
var strId = "";
var strIdFin = "";
var strUltMod = "";
function goDrag(evento) {
	evento.style.cursor = "move";
}
function goDragStart(Mover) {
	strId = Mover;
	strIdFin = "";
}
function goDragEnd(evento) {
	var frmTop = top.frame_herramienta;
	var frm = document.forms[0];
	var arrOrigen = strId.split("_");
	var arrDestino = strIdFin.split("_");
	var intOrdDes = arrDestino[4] - 1;
	
	if(typeof(arrOrigen[2]) != "undefined" && typeof(arrDestino[2]) != "undefined" && strId.substr(0,10) == "CELDA_ORI_") {
		if(!(arrOrigen[2] == arrDestino[2] && arrOrigen[3] == arrDestino[3] && arrOrigen[4] == intOrdDes)) {
			if(strId.substr(10) != strIdFin.substr(10)) {
				frmTop.goSeleccion(arrDestino[2], arrDestino[3]+1);
				frm.glb_origen.value = strId.substr(10);
				frm.glb_destino.value = strIdFin.substr(10);
				frm.glb_ind_mover.value = "MUEVE";
				frm.submit();
			}
		}
	}
	goDesSeleccionaModulo(strIdFin);
	evento.style.cursor = "default";
}
function goDragLeave(evento, Mover) {
	evento.style.cursor = "move";
}
function goDragOver(evento, Mover) {
	if(strIdFin != Mover && Mover != "") {
		goDesSeleccionaModulo("")
		goSeleccionaModulo(Mover)
	}
	strIdFin = Mover;
	window.event.returnValue = false;
}
function goCursorOver(evento, obj) {
	obj.focus()
	evento.style.cursor = "move";
}	
function goCursorOut(evento) {
	evento.style.cursor = "default";
}
function goSeleccionaModulo(Modulo) {
	var	objTabla = document.getElementById(Modulo);
	objTabla.style.backgroundColor = strColCelNue;
	strUltMod = Modulo;
}
function goDesSeleccionaModulo(Modulo) {
	var	objTabla;
	if(Modulo == "") {
		if(strUltMod != "") {
			objTabla = document.getElementById(strUltMod);
			objTabla.style.backgroundColor = strColCelAct;
		}
	}
	else {
		objTabla = document.getElementById(Modulo);
		objTabla.style.backgroundColor = strColCelAct;
	}
}
function goOcultaMenus() {
	hideAllMyMenu('');
}
function valExiStr(valor, StrMsg, checkOK) {
var checkStr = valor.value

	for (i = 0; i < checkStr.length; i++) {
		ch = checkStr.charAt(i)
		if (checkOK.indexOf(ch) != -1) {
			alert(StrMsg);
			return true
		}
	}
	return false
}
function goBuscar() {
var frm = document.forms[0];
var c_link;

 	if(frm.txt_parametro.value != '' && frm.txt_parametro.value != 'Búsqueda..') {
		if (valExiStr(frm.txt_parametro, c_label_02 + ' ( \' % )', '\'%')) {
			frm.txt_parametro.focus();
			return;
		}
		c_link = 'busqueda.aspx'
		c_link += '?glb_parametro=' + frm.txt_parametro.value;
		top.location = c_link;
	}
	else {
		frm.txt_parametro.value = '';
		frm.txt_parametro.focus();
		alert(c_label_03);
	}
}
var strNombreFuncion = 'goBuscar()';
document.write('<script language="JavaScript" src="incjs/EnterIENT.js"><' + '/' + 'script>');
function goContenidoNivel() {
var i_cod_nodo = goContenidoNivel.arguments[0]
var i_cod_contenido = goContenidoNivel.arguments[1]
var frm = document.forms[0];
var c_link;

	frm.glb_cod_nodo.value = i_cod_nodo;
	frm.glb_cod_contenido.value = '';
	frm.glb_cod_contenido_rel.value = i_cod_contenido;
	frm.action = 'frm_opensite.asp';
	frm.submit();
}
function goContenido() {
var i_cod_nodo = goContenido.arguments[0]
var i_cod_contenido = goContenido.arguments[1]
var frm = document.forms[0];
var c_link;

	frm.glb_cod_nodo.value = i_cod_nodo;
	frm.glb_cod_contenido.value = i_cod_contenido;
	frm.glb_cod_contenido_rel.value = '';
	frm.glb_send.value = 'link';
	frm.action = 'frm_opensite.asp';
	frm.submit();
}
/*--- Begin (Login) ---*/
function goPwsUsuario() {
var frm = document.forms[0];

	if (Trim(frm.pwd_usuario.value) == "")
		frm.pwd_usuario.focus()
	else 
		goAceptar();
}
function goUidUsuario() {
var frm = document.forms[0];

	if (Trim(frm.uid_usuario.value) == "")
		frm.uid_usuario.focus()
	else 
		goAceptar();
}
function goAceptar() {
var frm = document.forms[0];

	if (Trim(frm.uid_usuario.value) == "") {	
		alert('Debe ingresar el login');
		frm.uid_usuario.focus();
		return;	
	}
	if (Trim(frm.pwd_usuario.value) == "") {
		alert('Debe ingresar el password');
		frm.pwd_usuario.focus();
		return;	
	}
	//frm.target = 'frame_login';
	frm.target = 'iframe_portal';
	frm.action = 'login_val.asp';
	frm.submit();
}
function goLoginError(c_error) {
var frm = document.forms[0];

	alert(c_error);
	frm.uid_usuario.value = '';
	frm.pwd_usuario.value = '';
	frm.uid_usuario.focus();
}
function goLogin(c_link) {
var frm = document.forms[0];

	frm.uid_usuario.value = '';
	frm.pwd_usuario.value = '';
	frm.target = '_top';
	frm.action = c_link;
	frm.submit();
}
/*--- End   (Login) ---*/
/*--- Begin (Sugerencia) ---*/
function goSendSugerencia() {
var frm = document.forms[0];

	if (Trim(frm.txt_sugerencia.value) == '') {
		alert(c_label_04);
		frm.txt_sugerencia.focus();
		return;
	}
	c_link = 'mensaje_portal.asp';
	c_link += '?glb_sugerencia=' + frm.txt_sugerencia.value;
	//top.frame_mensajeportal.location = c_link;
	top.iframe_portal.location = c_link;
	frm.txt_sugerencia.value = '';
	frm.txt_sugerencia.focus();
}
/*--- End   (Sugerencia) ---*/
/*--- Begin (Encuesta) ---*/
function goSendEncuesta() {
var frm = document.forms[0];

	frm.target = 'iframe_portal';
	frm.action = 'encuesta_ing.asp?glb_cod_encuesta=' + goSendEncuesta.arguments[0] + '&glb_ind_accion=ACEPTAR';
	frm.submit();
}
/*--- End   (Encuesta) ---*/
function goMessage() {
var oDiv = document.getElementById('idMensaje');

	if (goMessage.arguments[1] == true) {
		alert(goMessage.arguments[0]);
	}
	else {
		c_html = '';
		c_html += '<table width="220" border="0" cellspacing="0" cellpadding="0" title="Click para cerrar esta ventana">';
		c_html += '<tr>';
		c_html += '<td bgcolor="#AAACAB" align="left" valign="middle">';
	  c_html += '<table width="400" border="0" cellspacing="1" cellpadding="0" height="100">';
		c_html += '<tr>';
		c_html += '<td bgcolor="#FFFFFF" align="center">' + goMessage.arguments[0] + '</td>';
		c_html += '</tr>';
	  c_html += '</table>';
		c_html += '</td>';
	  c_html += '<td valign="top" width="15">&nbsp;</td>';
		c_html += '</tr>';
		c_html += '<tr>';
		c_html += '<td width="90%" height="18"><img src="' + c_path_skin + 'nada.gif" width="9" height="10"></td>';
	  c_html += '<td width="15" height="18">&nbsp;</td>';
		c_html += '</tr>';
		c_html += '</table>';
		document.getElementById('idMensaje').innerHTML = c_html;
		document.getElementById('idMensaje').style.display = '';
	}
}
/*--- Begin (Contenido Tabs) ---*/
var c_img_ctabs_scr = new Array()
var c_img_ctabs_name = new Array();
function goHideCTabs(idTable) {
var i_index, c_nom_table;

	c_nom_table = idTable.substring(0, idTable.lastIndexOf('_'));
	for(i_index = 0; i_index < 1000; i_index++) {
		if(document.getElementById(c_nom_table + '_' + i_index)) {
    	document.getElementById(c_nom_table + '_' + i_index).style.display = 'none';
	  }
		else {
			break;
		}
	}
  if(document.getElementById(idTable)) {
    document.getElementById(idTable).style.display = 'block';
  }
}
function goImgCTabs(o_img, c_img_on, c_img_off, i_index) {

	if(c_img_ctabs_name[i_index] != '') {
		document.images[c_img_ctabs_name[i_index]].src = c_img_ctabs_scr[i_index];
	}
	c_img_ctabs_scr[i_index] = document.images[o_img.name].src;
	c_img_ctabs_name[i_index] = document.images[o_img.name].name;
	document.images[o_img.name].src = c_img_on;
}
/*--- End   (Contenido Tabs) ---*/
/*--- Begin (Marquee) ---*/
function goMarquee() {
var frm = document.forms[0];
var i_cod_marquee = goMarquee.arguments[0];
var c_html = goMarquee.arguments[1];

	document.getElementById('idMarquee_' + i_cod_marquee).innerHTML = c_html;
}
/*--- End   (Encuesta) ---*/
var i_width = 3;
var i_height = 0;
//script generated by SiteXpert (www.xtreeme.com/sitexpert/)
//Copyright(C) 1998-2003 Xtreeme GmbH
NS60=(navigator.userAgent.indexOf("Netscape6/6.0")!=-1)
Opera=(navigator.userAgent.indexOf('Opera')!=-1)||(navigator.appName.indexOf('Opera')!=-1)||(window.opera)
Opera7=(Opera&&document.createElement!=null&&document.addEventListener!=null)
IE4=(document.all&&!Opera)
mac=((IE4)&&(navigator.appVersion.indexOf("Mac")!=-1))
DOM=document.documentElement&&!IE4&&!Opera
NS4=navigator.appName.indexOf("Netscape")>-1&&!DOM
mswnd=(navigator.appVersion.indexOf("Windows")!=-1||navigator.appVersion.indexOf("WinNT")!=-1)
if(IE4){
av=navigator.appVersion
avi=av.indexOf("MSIE")
if(avi==-1){version=parseInt(av);}else{version=parseInt(av.substr(avi+4));}}
var ver='6.1.4EnPro'
var m1=new Object
m1.name='m1'
m1.fnm='m1'
if(!window.lastm||window.lastm<1)lastm=1
if(NS4||IE4||DOM||Opera){
m1.v17=null
m1.v17Timeout=''
var maxZ=1000
m1.v18
m1.targetFrame
var docLoaded=false
m1.bIncBorder=true
m1.v29=null
m1.v29Str=''
m1.scrollDelay=50
m1.scrollStep=10
m1.showDelayedTimeout=null
m1.fadingSteps=8
m1.v21=c_path_skin /*Path imagenes*/
m1.maxlev=1
m1.v22=0
m1.bVarWidth=0
m1.bShowDel=0
m1.v23=160
m1.levelOffset=20
m1.bord=1
m1.vertSpace=3
m1.sep=0
m1.v19=false
m1.rev=0
m1.shs=0
m1.xOff=0
m1.yOff=0
m1.v20=false
//m1.cntFrame="frame_inferior"
m1.cntFrame=""
m1.menuFrame="top"
m1.v24="top"
m1.mout=true
m1.iconSize=8
m1.closeDelay=1000
m1.tlmOrigBg="#F6DD8F"
m1.tlmOrigCol="#2E601C"
m1.v25=false
m1.popupOpacity=0
m1.v11=false
m1.rm=-1
m1.v10=0
m1.popupLeftPad=0
m1.v01=2
m1.tlmHlBg="#F6DD8F"
m1.tlmHlCol="#2E601C"
m1.menuPos=2
m1.menuHorizontal=true
m1.scrollHeight=6}
absPath=""
if(m1.v19&&!m1.v20){
if(window.location.href.lastIndexOf("\\")>window.location.href.lastIndexOf("/")) {sepCh = "\\" ;} else {sepCh = "/" ;}
absPath=window.location.href.substring(0,window.location.href.lastIndexOf(sepCh)+1)}
m1.popupOffset=i_height
m1.v02=m1.v23
if(Opera&&!Opera7)document.write("<"+"script language='JavaScript1.2' src='incjs/menu_opera.js'><"+"/"+"script>")
else if(NS4)document.write("<"+"script language='JavaScript1.2' src='incjs/menu_ns4.js'><"+"/"+"script>")
else if(document.getElementById)document.write("<"+"script language='JavaScript1.2' src='incjs/menu_dom.js'><"+"/"+"script>")
else document.write("<"+"script language='JavaScript1.2' src='incjs/menu_ie4.js'><"+"/"+"script>")
document.write("<style type='text/css'>\n")
document.write(".m1CL0{text-decoration:none;color:#2E601C; }\n")
document.write(".topFold{position:"+(!DOM&&!IE4?"relative":"static")+"}\n")
if(NS4&&!m1.v25)document.write(".x1{padding-left:0px;padding-right:0px;}\n")
document.write(".m1mit{"+((!NS4||m1.v25)?"padding-left:0px;padding-right:0px;":"")+"color:#2E601C; font-weight:bold; font-family:Verdana,Arial,Helvetica; font-size:10px; padding-top:0px;padding-bottom:1px}\n")
document.write("</style>\n\n")
function goNodoMenu(i_cod_sistema, i_cod_nodo) {
var frm = document.forms[0];

	top.location = 'frm_opensite.asp?glb_cod_sistema=' + i_cod_sistema + '&glb_cod_nodo=' + i_cod_nodo + '&glb_send=link';
}
// METATRAFFIC -- COPYRIGHT (C) 2002-2005, Metasun Software Corp.

var pagetitle = document.title; //INSERT CUSTOM PAGE NAME IN QUOTES
var action = ""; //ACTION CODE
var amount = "0"; //ACTION AMOUNT (LEAVE BLANK OR 0 IF NO AMOUNT)
var order = ""; //INSERT UNIQUE ORDER NUMBER

var scriptlocation = "tracking/track.asp";

var pagedata = 'mtpt=' + escape(pagetitle) + '&mtac=' + escape(action) + '&mta=' + amount + '&mto=' + escape(order) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mti=1&mtz=' + Math.random(); 
document.write ('<div style="display: none;"><img height=0 width=0 border=0 ');
document.write ('src="' + scriptlocation + '?' + pagedata + '"></div>');