/* ********************************************************************************************** */
/* ***** imprimir pagina y enviar pagina.                                                   ***** */
/* ***** Archivo de estilos usado:                                                          ***** */
/* *****     /<carpeta prontus>/css/site/port/estilos.css                                   ***** */
/* ***** V1.0 09/04/2003 - MCO - Primera version.                                           ***** */
/* ***** V2.0 09/05/2003 - MCO - Se agrega el uso del estilo gral * y si en uno de los      ***** */
/* *****                         estilos usados no viene el valor, se usa uno por defecto.  ***** */
/* *****                         Se agrega restriccion para no tomar los estilos con hover. ***** */
/* ********************************************************************************************** */




// ******************************** ENVIAR A *******************************
// Envio de noticia por e-mail.
function enviar() {
  var url = document.URL;
  var loc = '/prontus_ctm/stat/enviar/pags/formulario.html?_URL=' + escape(url);
  var vi = Get_Cookie("vista");
  if(vi!='' && vi=='eng') {
    loc = loc + "&_MV=eng";
  }
  var envia = window.open(loc,'enviar',
  'toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,location=0,directories=0,width=430,height=420');
  envia.focus();
}; // enviar.

// ******************************** IMPRIMIR PAGINA *******************************
// Imprime noticia actual.
function imprimir() {
  var url = document.URL;
  var loc = '/cgi-bin/imprimir.cgi?_URL=' + escape(url);
  var vi = Get_Cookie("vista");
  if(vi!='' && vi=='eng') {
    loc = loc + "&_MV=eng";
  }
  var options="toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,location=0,directories=0,width=" + 350 + ",height=" + 550;
  var imprime = window.open(loc, 'imprimir', options);
  imprime.focus();
}; //imprimir.

function Get_Cookie(name) {
  var start = document.cookie.indexOf(name+"=");
  var len = start+name.length+1;
  if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
  if (start == -1) return null;
  var end = document.cookie.indexOf(";",len);
  if (end == -1) end = document.cookie.length;
  return unescape(document.cookie.substring(len,end));
}; // Get_Cookie

//******************************** VENTANA POP ***********************************
// levanta una ventana pop.
<!--
  function subWin(loc, nom, ancho, alto, posx, posy) {
    var options="toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto;

    win = window.open(loc, nom, options);
    win.focus();
    win.moveTo(posx, posy);
  };
//-->

//**combobox**
<!--
  function link_to_tracking(){
    var indice = document.track_nav.cmb_tracking.selectedIndex;
    if (indice > 0){
      window.open(document.track_nav.cmb_tracking.options[indice].value);
    };
  };
  //-->

  // ******************************** POP para Zoom *******************************
var FOTOS = new Array();
var TITUS = new Array();
var PIES = new Array();
function popZoom(loc, nom, ancho, alto, posx, posy) {
  var options="toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,width="
             + ancho + ",height=" + alto;
  winzoom = window.open(loc, nom, options);
  winzoom.focus();
  if ( (posx > 0) && (posy > 0) ) {
    winzoom.moveTo(posx, posy);
  };
}; // popZoom

/*FIN*/

