/**

 * mm_menu 20MAR2002 Version 6.0

 * Andy Finnell, March 2002

 * Copyright (c) 2000-2002 Macromedia, Inc.

 *

 * based on menu.js

 * by gary smith, July 1997

 * Copyright (c) 1997-1999 Netscape Communications Corp.

 *

 * Netscape grants you a royalty free license to use or modify this

 * software provided that this copyright notice appears on all copies.

 * This software is provided "AS IS," without a warranty of any kind.

 */

function MostrarFecha()

   {

   var nombres_dias = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado")

   var nombres_meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")



   var fecha_actual = new Date()



   dia_mes = fecha_actual.getDate()		//dia del mes

   dia_semana = fecha_actual.getDay()		//dia de la semana

   mes = fecha_actual.getMonth() + 1

   anio = fecha_actual.getYear()



   if (anio < 100)					//pasa el año a 4 digitos

      anio = '19' + anio

   else if ( ( anio > 100 ) && ( anio < 999 ) ) {	//efecto 2000

      var cadena_anio = new String(anio)

      anio = '20' + cadena_anio.substring(1,3)

   }



   //escribe en pagina

   document.write(nombres_dias[dia_semana] + ", " + dia_mes + " de " + nombres_meses[mes - 1] + " del " + anio)

   }


