// JavaScript Document
function hora(){

if (!document.layers&&!document.all)
return


var mydate=new Date();
var year=mydate.getYear();
if (year < 1000)
year+=1900;
var day=mydate.getDay();
var month=mydate.getMonth()+1;
if (month<10)
month="0"+month;
var daym=mydate.getDate();
if (daym<10)
daym="0"+daym;

			switch (month){
				case "01": 
				month = "Enero"
					break;
				case "02": 
				month = "Febrero"
					break;
				case "03": 
				month = "Marzo"
					break;
				case '04': 
				month = "Abril"
					break;
				case "05": 
				month = "Mayo"
					break;
				case "06": 
				month = "Junio"
					break;
				case "07": 
				month = "Julio"
					break;
				case "08": 
				month = "Agosto"
					break;
				case "09": 
				month = "Septiembre"
					break;
				case "10": 
				month = "Octubre"
					break;
				case "11":
				month = "Noviembre"
					break;
				case "12": 
				month = "Diciembre"
					break;
						}





var Digital=new Date()
var horas=Digital.getHours()
var minutos=Digital.getMinutes()
var segundos=Digital.getSeconds()
var dn="AM" 

		if (horas>12){
			dn="PM"
			horas=horas-12
			}
		if (horas==0)
			horas=12
		if (minutos<=9)
			minutos="0"+minutos
		if (segundos<=9)
			segundos="0"+segundos
			mrelog = "Hoy es " + daym+" de "+month+" del "+year + " son las " + horas + ":" + minutos + ":" + segundos +" " + dn +""

		if (document.layers){
			document.layers.relog.document.write(mrelog)
			document.layers.relog.document.close()
			}
		else if (document.all)
			relog.innerHTML=mrelog
			setTimeout("hora()",1000)
			}



