//---script navideño

function nieve(){
  var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
  var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
  var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
  var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
  for (i=0; i < Amount; i++){
  //*sy = Speed[i]*Math.sin(270*Math.PI/180);
  sy = Speed[i]*Math.sin(40*Math.PI/180);
  sx = Speed[i]*Math.cos(Cstep[i]);
  Xpos[i]+=sx;
  Ypos[i]+=sy;

  rate[i]=0.7;

  //*if (Ypos[i] < -50){
  //*Ypos[i]=WinHeight+50;

  if (Ypos[i] > 420){
     Ypos[i]=0;

     Xpos[i]=Math.round(Math.random()*WinWidth);
     Speed[i]=Math.random()*4+6;
     grow[i]=2;
     nsSize[i]=Math.random()*15+5;
  }
  
  if (ns){
    document.layers['sn'+i].left=Xpos[i]+wscrll;
    document.layers['sn'+i].top=Ypos[i]+hscrll;
    }
  else{
    si[i].style.pixelLeft=Xpos[i]+wscrll;
    si[i].style.pixelTop=Ypos[i]+hscrll;

    si[i].style.width=grow[i];
    si[i].style.height=grow[i]; 
    }
  grow[i]+=rate[i];
  Cstep[i]+=Step[i];
  if (grow[i] > 10) grow[i]=15;
  }
  setTimeout('nieve()',10);
  }
  nieve();



// texto en movimiento
   var texto_estado = "                        De Ferrari Propiedades - IV Región - Chile"
   var posicion = 0
   function mueve_texto(){
      if (posicion < texto_estado.length)
         posicion ++;
      else
         posicion = 1;
      string_actual = texto_estado.substring(posicion) + texto_estado.substring(0,posicion)
      window.status = string_actual
      setTimeout("mueve_texto()",50)  }

  //------ scripts de actualiza.html
   function validauser2()
    {
       if (document.ingreso.login.value=="")
       {
         alert("Por favor ingrese RUT de usuario, gracias.");
         document.ingreso.login.focus();
         return;
       }
       if (!verrutuser(document.ingreso.login.value))
       {
         return;
       }
       if (document.ingreso.pass.value=="")
       {
         alert("Por favor ingrese Password de usuario, gracias.");
         document.ingreso.pass.focus();
         return;
       }
       document.ingreso.action="actuser.asp?sw=0"
       document.ingreso.submit()
    }

 //------ scripts de reservas.asp
      function valreserva()
     {
       if (document.datreserva.codpro.value=="")
       {
         alert("Por favor ingrese código de propiedad, gracias.");
         document.datreserva.codpro.focus();
         return;
       }

       if (document.datreserva.precio.value=="")
       {
         alert("Por favor ingrese valor por noche, gracias.");
         document.datreserva.precio.focus();
         return;
       }
       if (!(validanum(document.datreserva.precio.value)))
       {
         alert("Valor por noche no es un dato válido");
         document.datreserva.precio.focus();
         return;
       }

       if (document.datreserva.pasajeros.value=="")
       {
         alert("Por favor ingrese nro. de pasajeros, gracias.");
         document.datreserva.pasajeros.focus();
         return;
       }
       if (!(validanum(document.datreserva.pasajeros.value)))
       {
         alert("Nro de Pasajeros no es un dato válido");
         document.datreserva.pasajeros.focus();
         return;
       }
       if (document.datreserva.recibe.value=="")
       {
         alert("Por favor ingrese Check In, gracias.");
         document.datreserva.recibe.focus();
         return;
       }
       if (document.datreserva.entrega.value=="")
       {
         alert("Por favor ingrese Check Out, gracias.");
         document.datreserva.entrega.focus();
         return;
       }
       if (document.datreserva.noches.value=="")
       {
         alert("Por favor ingrese número de noches, gracias.");
         document.datreserva.noches.focus();
         return;
       }
       if (!(validanum(document.datreserva.noches.value)))
       {
         alert("Nro de noches no es un dato válido");
         document.datreserva.noches.focus();
         return;
       }
       if (document.datreserva.hora.value=="")
       {
         alert("Por favor ingrese la hora de llegada aprox., gracias.");
         document.datreserva.hora.focus();
         return;
       }
       //document.datreserva.action="enviaReser.asp"
       //document.datreserva.submit()
       self.location.href='enviaReser.asp?rut=' + document.datreserva.rut.value + '&codpro=' + document.datreserva.codpro.value + '&recibe=' + document.datreserva.recibe.value + '&entrega=' + document.datreserva.entrega.value + '&noches=' + document.datreserva.noches.value + '&hora=' + document.datreserva.hora.value + '&zona=' + document.datreserva.zona.value + '&pasajeros=' + document.datreserva.pasajeros.value + '&precio=' + document.datreserva.precio.value ;
    }

    function validanum(valor)
    {
      texto = valor;
      largo = texto.length;
      for (i=0; i < largo ; i++ )
      {
       if ( texto.charAt(i) !="0" && texto.charAt(i) != "1" && texto.charAt(i) !="2" && texto.charAt(i) != "3" && texto.charAt(i) != "4" && texto.charAt(i) !="5" && texto.charAt(i) != "6" && texto.charAt(i) != "7" && texto.charAt(i) !="8" && texto.charAt(i) != "9")
        {
         //alert("Nro no válido");
         //document.datreserva.pasajeros.focus();
         return false;
        }
      }
     return true;
    }

    function limpreserva()
    {
       document.datreserva.codpro.value=""
       document.datreserva.precio.value=""
       document.datreserva.pasajeros.value=""
       document.datreserva.recibe.value=""
       document.datreserva.entrega.value=""
       document.datreserva.hora.value=""
       document.datreserva.noches.value=""
       document.datreserva.zona.value=""
       window.document.datreserva.codpro.focus()
    }
   //-->
   //------ fin scripts de reservas.asp


   //------ scripts de reservas.html
    function validauser()
    {
       if (document.ingreso.login.value=="")
       {
         alert("Por favor ingrese RUT de usuario, gracias.");
         document.ingreso.login.focus();
         return;
       }
       if (!verrutuser(document.ingreso.login.value))
       {
         return;
       }
       if (document.ingreso.pass.value=="")
       {
         alert("Por favor ingrese Password de usuario, gracias.");
         document.ingreso.pass.focus();
         return;
       }
       document.ingreso.action="reservas.asp"
       document.ingreso.submit()
    }


     function verrutuser( rut )
   {
     var tmpstr = "";
     var SoloRut="";
     var RutNum;
     for ( i=0; i < rut.length ; i++ )
        if ( rut.charAt(i) != ' ' && rut.charAt(i) != '.' && rut.charAt(i) != '-' )
          tmpstr = tmpstr + rut.charAt(i);
          rut = tmpstr;
        if ( !checkRutField66(rut) )
          return false;
        if ( !checkDV66( rut ) )
          return false;
        //  window.document.ingreso.login.value = rut;
        SoloRut=rut.substring(0,rut.length-1);
        RutNum=SoloRut
        document.ingreso.login.value = document.ingreso.login.value.toUpperCase();
        if (RutNum > 99999999)
        {
           alert ("Rut Incorrecto")
           return false
        }
            return true;
   }

   function checkCDV66( dvr )
   {
     dv = dvr + "";
    if ( dv != '0' && dv != '1' && dv != '2' && dv != '3' && dv != '4' && dv != '5' && dv != '6' && dv != '7' && dv != '8' && dv != '9' && dv != 'k'  && dv != 'K')
   {
    alert("Debe ingresar un dígito verificador válido.");
    window.document.ingreso.login.focus();
    window.document.ingreso.login.select();
    return false;
   }
   return true;
   }

   function checkDV66( crut )
   {
    largo = crut.length;
    if ( largo < 2 )
    {
    alert("Debe ingresar el Rut completo.");
    window.document.ingreso.login.focus();
    return false;
    }
    if ( largo > 2 )
       rut = crut.substring(0, largo - 1);
     else
       rut = crut.charAt(0);
       dv = crut.charAt(largo-1);
       checkCDV66( dv );
       if ( rut == null || dv == null )
          return 0;
          var dvr = '0';
          suma = 0;
          mul  = 2;
          for (i= rut.length -1 ; i >= 0; i--)
          {
            suma = suma + rut.charAt(i) * mul;
            if (mul == 7)
                mul = 2;
             else
                mul++;
          }
          res = suma % 11;
          if (res==1)
             dvr = 'k';
           else if (res==0)
             dvr = '0';
           else
              {
              dvi = 11-res;
              dvr = dvi + "";
              }
          if ( dvr != dv.toLowerCase() )
          {
             alert("EL Rut es incorrecto.");
             window.document.ingreso.login.focus();
             window.document.ingreso.login.select();
             return false;
          }
          return true;
   }

   function checkRutField66(texto)
   {
    var tmpstr = "";
    for ( i=0; i < texto.length ; i++ )
      if ( texto.charAt(i) != ' ' && texto.charAt(i) != '.' && texto.charAt(i) != '-' )
        tmpstr = tmpstr + texto.charAt(i);
        texto = tmpstr;
        largo = texto.length;
      if ( largo < 2 )
        {
          alert("Debe ingresar el Rut completo.");
          window.document.ingreso.login.focus();
          window.document.ingreso.login.select();
         return false;
        }
     for (i=0; i < largo ; i++ )
      {
       if ( texto.charAt(i) !="0" && texto.charAt(i) != "1" && texto.charAt(i) !="2" && texto.charAt(i) != "3" && texto.charAt(i) != "4" && texto.charAt(i) !="5" && texto.charAt(i) != "6" && texto.charAt(i) != "7" && texto.charAt(i) !="8" && texto.charAt(i) != "9" && texto.charAt(i) !="k" && texto.charAt(i) != "K" )
        {
         alert("El valor ingresado no corresponde a un Rut válido.");
         window.document.ingreso.login.focus();
         window.document.ingreso.login.select();
         return false;
        }
      }
      var invertido = "";
      for ( i=(largo-1),j=0; i>=0; i--,j++ )
      invertido = invertido + texto.charAt(i);
      var dtexto = "";
      dtexto = dtexto + invertido.charAt(0);
      dtexto = dtexto + '-';
      cnt = 0;
      for ( i=1,j=2; i<largo; i++,j++ )
      {
       if ( cnt == 3 )
        {
         dtexto = dtexto + '.';
         j++;
         dtexto = dtexto + invertido.charAt(i);
         cnt = 1;
        }
      else
        {
        dtexto = dtexto + invertido.charAt(i);
        cnt++;
        }
      }
      invertido = "";
      for ( i=(dtexto.length-1),j=0; i>=0; i--,j++ )
      invertido = invertido + dtexto.charAt(i);
      document.ingreso.login.value = invertido;
      if ( checkDV66(texto) )
      return true;
      return false;
   }
   //------ fin scripts de reservas.html

   //------ scripts de arrie.html

     function valida2()
    {
       document.datos2.action="lisVentas.asp"
       document.datos2.submit()
    }

   //------ fin scripts de arrie.html


    function validamail(direccion)
   {
   var Pos;
   var Pos2;
   var str;
   var dotpos, lastpos;
   var bl;

       direccion = trim(direccion);
       Pos2 = direccion.length;
       bl = direccion.indexOf(' ');
       if (!((bl == -1) || (bl == direccion.length -1)))
       {
          alert("largo");
          return false;
       }
       if (direccion == '')
       {
          alert("dirección vacía");
          return false;
       }
       Pos = direccion.indexOf('@');
       if ( (Pos<1) || (Pos == (direccion.length - 1)))
            {
            alert("su dirección tiene problemas de formato");
            return false;
            }
        else{
           str=direccion.substr(Pos+1);
           dotpos=str.lastIndexOf(".");
           lastpos=str.length-1;
           if (dotpos==-1 || lastpos-dotpos>3 || lastpos-dotpos<2){
                alert("verifique caracteres despues de símbolo @");
                return false;
           }
         }
        return true;
   }

   function trim(texto)
   {
   var largo;
   var exit=0;
   if (texto=='')     return false;
   //Saca espacios en blanco del inicio del string
   for(i=0;i<texto.length && exit==0;i++){
      if (texto.substr(i,1)==' '){
        texto=texto.substr(i+1,texto.length);
        i=-1;
      }else
        exit=1;
    }

   exit=0;
   for(i=(texto.length-1);i>=0 && exit==0;i--){
      if (texto.substr(i,1)==' '){
        texto=texto.substr(0,i);
        i=texto.length;
      }else
        exit=1;
      }
   return texto;
   }


   function valiusu()
     {
       if (document.forms[0].rut.value=="")
       {
         alert("Por favor ingrese su RUT, gracias.");
         document.forms[0].rut.focus();
         return;
       }
       if (document.forms[0].nombres.value=="")
       {
         alert("Por favor ingrese sus Nombres, gracias.");
         document.forms[0].nombres.focus();
         return;
       }
       if (document.forms[0].paterno.value=="")
       {
         alert("Por favor ingrese su apellido Paterno, gracias.");
         document.forms[0].paterno.focus();
         return;
       }
       if (document.forms[0].materno.value=="")
       {
         alert("Por favor ingrese su apellido Materno, gracias.");
         document.forms[0].materno.focus();
         return;
       }
       if (document.forms[0].direccion.value=="")
       {
         alert("Por favor ingrese su Dirección, gracias.");
         document.forms[0].direccion.focus();
         return;
       }
       if (document.forms[0].ciudad1.value=="" && document.forms[0].ciudad2.value=="")
       {
         alert("Por favor ingrese su Ciudad, gracias.");
         document.forms[0].ciudad1.focus();
         return;
       }
      if (document.forms[0].fono.value=="")
       {
         alert("Por favor ingrese un Teléfono, gracias.");
         document.forms[0].fono.focus();
         return;
       }
       if (document.forms[0].pass1.value=="")
       {
         alert("Por favor ingrese su password,gracias.");
         document.forms[0].pass1.focus();
         return;
       }
      if (document.forms[0].mail.value=="")
       {
         alert("Por favor ingrese un E-mail, gracias.");
         document.forms[0].mail.focus();
         return;
       }
       if (!(emailvalido(document.forms[0].mail.value)))
       {
         alert("Por favor ingrese un Correo electrónico válido.");
         document.forms[0].mail.focus();
         document.forms[0].mail.select();
         return;
       }

       if (document.forms[0].pass2.value=="")
       {
         alert("Por favor reingrese su password, gracias.");
         document.forms[0].pass2.focus();
         return;
       }
       if (document.forms[0].pass1.value!=document.forms[0].pass2.value)
       {
          alert("El reingreso de su Clave de Secreta no es correcto.");
          document.forms[0].pass2.focus();
          return;
       }
       document.forms[0].action="gusu.asp"
       document.forms[0].submit()
    }

   function limpusu()
   {
       document.forms[0].rut.value=""
       document.forms[0].nombres.value=""
       document.forms[0].paterno.value=""
       document.forms[0].materno.value=""
       document.forms[0].direccion.value=""
       document.forms[0].ciudad1.value=""
       document.forms[0].ciudad2.value=""
       document.forms[0].fono.value=""
       document.forms[0].mail.value=""
       document.forms[0].pass1.value=""
       document.forms[0].pass2.value=""
       document.forms[0].info.value='off'
       document.forms[0].coment.value=""
       window.document.forms[0].rut.focus()
    }

function checkFields( rut )
{
  var tmpstr = "";
  var SoloRut="";
  var RutNum;
  for ( i=0; i < rut.length ; i++ )
    if ( rut.charAt(i) != ' ' && rut.charAt(i) != '.' && rut.charAt(i) != '-' )
      tmpstr = tmpstr + rut.charAt(i);
  rut = tmpstr;

  if ( !checkRutField(rut) )
    return false;

  if ( !checkDV( rut ) )
    return false;

  SoloRut=rut.substring(0,rut.length-1);

  RutNum=SoloRut

  document.forms[0].rut.value = document.forms[0].rut.value.toUpperCase();
    if (RutNum > 99999999)
    {
        alert ("Rut Incorrecto")
        return false
    }

  return true;
}

//----------------------------------
function checkCDV( dvr )
{
  dv = dvr + "";
  if ( dv != '0' && dv != '1' && dv != '2' && dv != '3' && dv != '4' && dv != '5' && dv != '6' && dv != '7' && dv != '8' && dv != '9' && dv != 'k'  && dv != 'K')
  {
    alert("Debe ingresar un digito verificador válido.");
    window.document.forms[0].rut.focus();
    window.document.forms[0].rut.select();
    return false;
  }
  return true;
}

//--------------------------------
function checkDV( crut )
{
  largo = crut.length;
  if ( largo < 2 )
  {
    alert("Debe ingresar el rut completo.");
    window.document.forms[0].rut.focus();
    return false;
  }

  if ( largo > 2 )
    rut = crut.substring(0, largo - 1);
  else
    rut = crut.charAt(0);
  dv = crut.charAt(largo-1);
  checkCDV( dv );

  if ( rut == null || dv == null )
      return 0;

  var dvr = '0';

  suma = 0;
  mul  = 2;

  for (i= rut.length -1 ; i >= 0; i--)
  {
    suma = suma + rut.charAt(i) * mul;
    if (mul == 7)
      mul = 2;
    else
      mul++;
  }


  res = suma % 11;
  if (res==1)
    dvr = 'k';
  else if (res==0)
    dvr = '0';
  else
  {
    dvi = 11-res;
    dvr = dvi + "";
  }

  if ( dvr != dv.toLowerCase() )
  {
    alert("EL rut es incorrecto.");
    window.document.forms[0].rut.focus();
    //window.document.forms[0].select();
    window.document.forms[0].rut.value=="";
    return false;
  }

  return true;
}

//---------------------------------------------
function checkRutField(texto)
{
  var tmpstr = "";
  for ( i=0; i < texto.length ; i++ )
    if ( texto.charAt(i) != ' ' && texto.charAt(i) != '.' && texto.charAt(i) != '-' )
      tmpstr = tmpstr + texto.charAt(i);
  texto = tmpstr;
  largo = texto.length;

  if ( largo < 2 )
  {
    alert("Debe ingresar el rut completo.");
    window.document.forms[0].rut.focus();
    window.document.forms[0].rut.select();
    return false;
  }

  for (i=0; i < largo ; i++ )
  {
    if ( texto.charAt(i) !="0" && texto.charAt(i) != "1" && texto.charAt(i) !="2" && texto.charAt(i) != "3" && texto.charAt(i) != "4" && texto.charAt(i) !="5" && texto.charAt(i) != "6" && texto.charAt(i) != "7" && texto.charAt(i) !="8" && texto.charAt(i) != "9" && texto.charAt(i) !="k" && texto.charAt(i) != "K" )
    {
      alert("El valor ingresado no corresponde a un R.U.T valido.");
      window.document.forms[0].rut.focus();
      window.document.forms[0].rut.select();
      return false;
    }
  }

  var invertido = "";

  for ( i=(largo-1),j=0; i>=0; i--,j++ )
    invertido = invertido + texto.charAt(i);

  var dtexto = "";

  dtexto = dtexto + invertido.charAt(0);
  dtexto = dtexto + '-';
  cnt = 0;

  for ( i=1,j=2; i<largo; i++,j++ )
  {
    if ( cnt == 3 )
    {
      dtexto = dtexto + '.';
      j++;
      dtexto = dtexto + invertido.charAt(i);
      cnt = 1;
    }
    else
    {
      dtexto = dtexto + invertido.charAt(i);
      cnt++;
    }
  }

  invertido = "";

  for ( i=(dtexto.length-1),j=0; i>=0; i--,j++ )
    invertido = invertido + dtexto.charAt(i);
    document.forms[0].rut.value = invertido;

  if ( checkDV(texto) )
    return true;
}

   //------ scripts de inscribe.html

   function emailvalido(direccion)
   {
   var Pos;
   var Pos2;
   var str;
   var dotpos, lastpos;
   var bl;
       direccion = trim(direccion);
       Pos2 = direccion.length;
       bl = direccion.indexOf(' ');
       if (!((bl == -1) || (bl == direccion.length -1)))
       {
         return false;
       }
       if (direccion == '')
       {
         return false;
       }
       Pos = direccion.indexOf('@');
       if ( (Pos<1) || (Pos == (direccion.length - 1)))
           return false;
         else{
           str=direccion.substr(Pos+1);
           dotpos=str.lastIndexOf(".");
           lastpos=str.length-1;
           if (dotpos==-1 || lastpos-dotpos>3 || lastpos-dotpos<2){
                return false;
           }
         }
        return true;
       }

   function trim(texto)
   {
   var largo;
   var exit=0;
   if (texto=='')     return false;
   //Saca espacios en blanco del inicio del string
   for(i=0;i<texto.length && exit==0;i++){
      if (texto.substr(i,1)==' '){
        texto=texto.substr(i+1,texto.length);
        i=-1;
      }else
        exit=1;
    }

   exit=0;
   for(i=(texto.length-1);i>=0 && exit==0;i--){
      if (texto.substr(i,1)==' '){
        texto=texto.substr(0,i);
        i=texto.length;
      }else
        exit=1;
      }
   return texto;
   }

    function valida()
    {
       if (document.datos.propiedad.value=="")
       {
         alert("Por favor seleccione tipo de Propiedad, gracias.");
         document.datos.propiedad.focus();
         return;
       }
       if (document.datos.operacion.value=="")
       {
         alert("Por favor seleccione tipo de Operación, gracias.");
         document.datos.operacion.focus();
         return;
       }
       if (document.datos.region.value=="")
       {
         alert("Por favor seleccione Región, gracias.");
         document.datos.region.focus();
         return;
       }
       if (document.datos.ciudad1.value=="" && document.datos.ciudad2.value=="")
       {
         alert("Por favor ingrese Ciudad, gracias.");
         document.datos.ciudad1.focus();
         return;
       }
       if (document.datos.descrip.value=="")
       {
         alert("Por favor ingrese Descripción, gracias.");
         document.datos.descrip.focus();
         return;
       }
       if (document.datos.precio.value=="")
       {
         alert("Por favor ingrese Precio, gracias.");
         document.datos.precio.focus();
         return;
       }
       if (!valnumero( document.datos.precio.value ))
       {
         return;
       }

       if (document.datos.tipoprecio.value=="")
       {
         alert("Por favor ingrese el tipo de Precio, gracias.");
         document.datos.tipoprecio.focus();
         return;
       }
       if (document.datos.nombre.value=="")
       {
         alert("Por favor ingrese su Nombre, gracias.");
         document.datos.nombre.focus();
         return;
       }
      if (document.datos.fono.value=="")
       {
         alert("Por favor ingrese un Teléfono, gracias.");
         document.datos.fono.focus();
         return;
       }
      if (document.datos.mail.value=="")
       {
         alert("Por favor ingrese un Correo Electrónico, gracias.");
         document.datos.mail.focus();
         return;
       }
      if (!(emailvalido(document.datos.mail.value)))
       {
         alert("Por favor ingrese un Correo Electrónico Válido.");
         document.datos.mail.focus();
         document.datos.mail.select();
         return;
       }
      if (document.datos.direc.value=="")
      {
          alert("Por favor ingrese su dirección, gracias.");
          document.datos.direc.focus();
          return;
      }
      if (document.datos.direc.length>80)
      {
          alert("Dirección demasiado larga, largo no puede exceder los 80 caracteres!!");
          document.datos.direc.focus();
          return;
      }
       document.datos.action="grabpro.asp"
       document.datos.submit()
    }
    function valnumero(nro)
    {
    if (isNaN(nro))
     {
        alert("Precio debe ser numérico, gracias");
        document.datos.precio.focus();
        return false;
     }
     else
        return true;
    }

    function limpia()
    {
       document.datos.propiedad.value=""
       document.datos.operacion.value=""
       document.datos.region.value=""
       document.datos.ciudad1.value=""
       document.datos.ciudad2.value=""
       document.datos.descrip.value=""
       document.datos.sector.value=""
       document.datos.precio.value=""
       document.datos.tipoprecio.value=""
       document.datos.nombre.value=""
       document.datos.fono.value=""
       document.datos.mail.value=""
       document.datos.direc.value=""
       document.datos.coment.value=""
       window.document.datos.propiedad.focus()
    }

   //-->

   //------ fin scripts de inscribe.html

   //-------scripts index.html
   function mOvr(src,clrOver) {
   if (!src.contains(event.fromElement)) {
   src.style.cursor = 'hand';
   src.bgColor = clrOver;
   }
   }
   function mOut(src,clrIn) {
   if (!src.contains(event.toElement)) {
   src.style.cursor = 'default';
   src.bgColor = clrIn;
   }
   }
   function mClk(src) {
   if(event.srcElement.tagName=='TD'){
   src.children.tags('A')[0].click();
   }
   }
   // rutina para inicializar arreglos
   function dimensiona(n) {
     this.length=n;
     for (var i=1;i<=n;i++) {
       this[i]=0 }
     return this
   }

   mes=new dimensiona(12);
   mes[1]="Enero"
   mes[2]="Febrero"
   mes[3]="Marzo"
   mes[4]="Abril"
   mes[5]="Mayo"
   mes[6]="Junio"
   mes[7]="Julio"
   mes[8]="Agosto"
   mes[9]="Septiembre"
   mes[10]="Octubre"
   mes[11]="Noviembre"
   mes[12]="Diciembre"

   // dimensionar arreglo dia
   dia=new dimensiona(7);
   dia[1]="Domingo"
   dia[2]="Lunes"
   dia[3]="Martes"
   dia[4]="Miércoles"
   dia[5]="Jueves"
   dia[6]="Viernes"
   dia[7]="Sábado"


//      <!-- START HIDE
//   var tick;
//   function stop() {
//   clearTimeout(tick);
//   }


//------ fin de scripts index.html



