<!--
<!--  Calendario PopUP
<!--
var controlfecha = '';
var today = new Date();
var day   = today.getDate();
var month = today.getMonth();
var year  = y2k(today.getYear());

function y2k(number)    { return (number < 1000) ? number + 1900 : number; }

function padout(number) { return (number < 10) ? '0' + number : number; }

function restart() {
    document.all[controlfecha].value = '' + padout(day) + '-' + padout(month - 0 + 1) + '-' + year ;
    mywindow.close();
}

function abropopupfecha(controlaux) {
    controlfecha=controlaux;

    mywindow=open('/share/scripts/almanaquepopup.html','almanaque','resizable=no,width=350,height=270');
    mywindow.location.href = '/share/scripts/almanaquepopup.html';
    if (mywindow.opener == null) mywindow.opener = self;
}


<!--
<!--  Abre Nueva Ventana
<!--

function abroventana(codigo,alto,ancho,scroll) {

  if (scroll)
  	{features="location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no";}
  else
  	{features="location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";}

  w=ancho;
  h=alto;
  	
  if(screen.width)
   {
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
   }
  else
   {
    winl = 0;
    wint =0;
   }
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;

  page=codigo;
  win = window.open(page,"_grafico",settings);
  win.window.focus();
}

function bajaentidad(entidad, valor,url) { //v3.0
  confirmo=confirm("¿Desea dar de Baja  "+entidad+": "+valor+" ?");
  if (confirmo)
   {
     location.href = url;  
   }
}


function confirmaaccion(mensaje,url) { //v3.0
  confirmo=confirm(mensaje);
  if (confirmo)
   {
     location.href = url;  
   }
}

function confirmaurl(mensaje,url) { //v3.0
  confirmo=confirm(mensaje);
  if (confirmo)
   {
     win = window.open(url);
     win.window.focus();
   }
}

//-->