// Salto a portada tipo tema.
function jumpToST(seccion,tema,pag) {
  // alert(seccion + ',' + tema);
  seccion = escape(seccion);
  tema = escape(tema);
  var as = '14400'; // 4 horas.
  window.location = '/cgi-bin/lan_ptema_lista.cgi?as=' + as + '&seccion=' + seccion + '&tema=' + tema + '&nropag=' + pag;
};



// Salto a portada tipo tema con as.
//function jumpToSTas(seccion,tema,pag,as) {
//  // alert(seccion + ',' + tema);
//  seccion = escape(seccion);
//  tema = escape(tema);
//  top.location = '/cgi-bin/pli_ptema_lista.cgi?as=' + as + '&seccion=' + seccion + '&tema=' + tema + '&nropag=' + pag;
//};
//
//// Salto a portada tipo seccion, tema, fecha.
//function jumpToSTF(seccion,tema,pag,fecha) {
//  // alert(seccion + ',' + tema);
//  seccion = escape(seccion);
//  tema = escape(tema);
//  top.location = '/cgi-bin/pli_ptema_lista.cgi?as=3600&seccion=' + seccion
//               + '&tema=' + tema + '&nropag=' + pag + '&fecha=' + fecha;
//};


// Envío de noticia por e-mail.
function enviar_a() {
  var url = document.URL;
  var loc = '/cgi-bin/snd_page_02.cgi?ACCI=Showform&TDIR=/utiles/enviar_a&URL=' + escape(url);
  var envia = window.open(loc,'envia',
              'toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,location=0,directories=0,width=470,height=320');
  envia.focus();
};

// Imprime.
function imprime() {
  var url = document.URL;
  var loc = '/cgi-bin/print_page_02.cgi?URL=' + escape(url);
  var imprime = window.open(loc, 'imprime');
  imprime.focus();
};

// Ventana POP.
function subWin(loc, nom, ancho, alto, posx, posy) {
  var options="toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto;
      
  win = window.open(loc, nom, options);                 
  win.focus();
  if ( (posx > 0) && (posy > 0) ) {
    win.moveTo(posx, posy);
  };
};


// Volver a la portada.html

function volver_portada() {
  window.location.href = 'portada.html';
  parent.head.ima_on('por');
  parent.head.ima_ck('por');
};  