// JavaScript Document+
//*****************************************************************************
// OPCIONES JAVASCRIPT DE USO GENERAL EN TODAS LAS PAGINAS
//*****************************************************************************
function menuop(rut,apNVa,pag){
//alert(rut+','+apNVa+','+pag);
document.frm1.frmapNVa.value=apNVa;
document.frm1.frmidpag.value=pag;
document.frm1.submit();
}

function menucargaON(arg,arg2){
document.getElementById(arg).className='menu2tdxON';
}

function menucargaOFF(arg,arg2){
document.getElementById(arg).className='menu2tdxOFF';
}

var ventanaG="Vgrande";
function AbrirVentana(URL) {
VentanaG=window.open(URL,ventanaG,"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,width=500,height=500,resizable=1");
VentanaG.focus();
}
function AbrirVentaPeq(URL,ancho,alto,scroll,resizable,top,left) {
VentanaP=open(URL,"ventanapeq","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable="+resizable+",width="+ancho+",height="+alto+",top="+top+",left="+left+"");
VentanaP.focus();
}
//*****************************************************************************
// hasta aquí OPCIONES JAVASCRIPT DE USO GENERAL EN TODAS LAS PAGINAS
//*****************************************************************************

//*****************************************************************
//FUNCIONES UTILIZADAS BAJO EL APARTADO ENLACES......
//*****************************************************************
function IRcategoria(){
var frmcatbusqueda;
frmcatbusqueda=document.f1.catbusqueda.options[document.f1.catbusqueda.selectedIndex].value;
if(frmcatbusqueda=="n"){
alert('¡ATENCIÓN! \n\n Debe seleccionar una CATEGORIA para poder mostrar los enlaces encontrados bajo la misma \n\n GRACIAS');
document.f1.catbusqueda.focus();
}//CIERRE DEL IF Q VERIFICA QUE HA SELECCIONADO UNA CATEGORÍA CORRECTA
else{
document.location.href="index.asp?frmidpag=enlaces/enlaces_p1.asp&opbusca=busqueda&catbusqueda="+frmcatbusqueda+"";
}//CIERRE DEL ELSE
}//CIERRE DEL FUNCTION
//*****************************************************************
//hasta aquí FUNCIONES UTILIZADAS BAJO EL APARTADO ENLACES......
//*****************************************************************
