
//****************************** Función para abrir popup *******************************

function NuevaVentana (MyURL, MyNombre, Ancho, Alto, PosX, PosY, Botones, CampoURL, BarraEstado, MenuNavegador, Scrolls, Redimensionable) {

  if (PosX == "c") {
    var CoordenadaX = (screen.width - Ancho) / 2;
  } else {
    var CoordenadaX = PosX;
  }

  if (PosY == "c") {
    var CoordenadaY = (screen.height - Alto) / 2;
  } else {
    var CoordenadaY = PosY;
  }

  Propiedades = 'width=' + Ancho + ',height=' + Alto + ',top=' + CoordenadaY + ',left=' + CoordenadaX +
                ',toolbar=' + Botones + ',location=' + CampoURL + ',status=' + BarraEstado +
                ',menubar=' + MenuNavegador + ',scrollbars=' + Scrolls + ',resizable=' + Redimensionable;

  win = window.open(MyURL, MyNombre, Propiedades);

  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}

//******************* Función para mostrar textos en toolTip y Status *******************

function TextosMouseOver(Alt) {

  toolTip('<table cellspacing=1 cellpadding=1 border=0>' +
            '<tr><td><font style=font-family:Tahoma;font-size:11px;>' +
              Alt +
            '</font></td></tr>' +
          '</table>', '#000000', '#FFFFE1');

  window.status = '::' + Alt;

}

//******************* Función para ocultar textos en toolTip y Status *******************

function TextosMouseOut() {

  toolTip();
  window.status = '';

}

//******************* Función para hacer scroll dentro del flash con la rueda *******************

function HacerScroll(Scroll) {
  window.scrollBy(0,(Scroll*40*-1));
}

