<!--
function selMenu(opcnivel0,opcnivel1,opcnivel2,opcnivel3){
if (document.getElementById){
	if(opcnivel0!=null){
		var strId='nivel0_'+opcnivel0;
		eval('document.getElementById("'+strId+'").className="activo"');
		}
	if(opcnivel1!=null){
		var strId='nivel1_'+opcnivel1;
		eval('document.getElementById("'+strId+'").className="activo"');
		}
	if(opcnivel2!=null){
		var strId='nivel2_'+opcnivel2;
		eval('document.getElementById("'+strId+'").className="activo"');
		}
	if(opcnivel3!=null){
		var strId='nivel3_'+opcnivel3;
		eval('document.getElementById("'+strId+'").className="activo"');
		}
	}
}

// SCRIPT DE CONTROL DEL SELECT DE CABECERA
var selectURL=new Array();
selectURL[0]=null;
selectURL[1]='/sectores/agroalimentario/home.asp';
selectURL[2]='/sectores/empresas/home.asp';
selectURL[3]='https://web.cajaduero.es/html/comunidad|n';
selectURL[4]='/sectores/instituciones/home.asp';
selectURL[5]='javascript:;';
selectURL[6]='/servicios/pagoimpuestos/certificado01.asp';
selectURL[7]='/servicios/comercio/ventaentradas01.asp';
selectURL[8]='/servicios/correspondencia/queescorrespondencia01.asp';
selectURL[9]='/servicioscab/corporativa/conocenos01.asp';
selectURL[10]='http://4w.cajaduero.es/obrasc/index.html|n';

function selectIrA(idx){
if (idx!=0 && selectURL[idx].split('|')[1]=="n"){
	var nombreventana='ventana'+idx;
	window.open(selectURL[idx].split('|')[0],nombreventana,'');
	}
	else if(idx!=0){
	document.location.href=selectURL[idx]
	}
}

// lanza una ventana flotante (popup) centrada en la pantalla

function abrePopup(url,dimX,dimY,posX,posY,barraScroll) {
 var dimXInterface=10
 var dimYInterface=29
 if ((posX==-1) && (posY==-1))
 {
  var resX=screen.width;
  var resY=screen.height;
  posX=(resX-(dimX+dimXInterface))/2;
  posY=(resY -(dimY+dimYInterface))/2;
 }

// var inicioNombre = url.lastIndexOf('/')+1;
// var nombre_ventana = url.substring(inicioNombre,url.lastIndexOf('.'));

 var cadena_opciones="width=" + dimX + ",height=" + dimY + ",left=" + posX + ",top=" + posY +((barraScroll)?",scrollbars=yes":"");
 var vent= window.open(url,"",cadena_opciones);
}
//-->