// JavaScript Document
function mostrar() 
	{ 
	  var  dia = new Date(); 
	  var  hora = dia.getHours(); 
	  var  minutos = dia.getMinutes(); 
	  var  segundos = dia.getSeconds(); 

		 if ((hora >= 0)&&(hora <= 9)){ 
		  hora="0"+hora; 
		 } 
		 if ((minutos >= 0)&&(minutos <= 9)){ 
		  minutos="0"+minutos; 
		 } 
		 if ((segundos >= 0)&&(segundos <= 9)){ 
		  segundos="0"+segundos; 
		 } 
		 document.frm.hora.value =" "  + hora 
				  + ":" + minutos + ":" + segundos; 
 		 window.setTimeout("mostrar()",1000); 
	}
	
function fecha()
	{
		var months=new Array(13);
		months[1]="Enero";
		months[2]="Febrero";
		months[3]="Marzo";
		months[4]="Abril";
		months[5]="Mayo";
		months[6]="Junio";
		months[7]="Julio";
		months[8]="Agosto";
		months[9]="Septiembre";
		months[10]="Octubre";
		months[11]="Noviembre";
		months[12]="Diciembre";
		var time=new Date();
		var lmonth=months[time.getMonth() + 1];
		var date=time.getDate();
		var year=time.getYear();
		if (year < 2000)    
			year = year + 1900;		
		document.write(date + " de " + lmonth + " de " + year + ","); 
	}
	
function en_fecha()
	{
		var months=new Array(13);
		months[1]="January";
		months[2]="February";
		months[3]="March";
		months[4]="April";
		months[5]="May";
		months[6]="June";
		months[7]="July";
		months[8]="August";
		months[9]="September";
		months[10]="October";
		months[11]="November";
		months[12]="December";
		var time=new Date();
		var lmonth=months[time.getMonth() + 1];
		var date=time.getDate();
		var year=time.getYear();
		if (year < 2000)    
			year = year + 1900;
		document.write(date + "th " + lmonth + " of " + year + ","); 
//		document.write(date + " de " + lmonth + " de " + year + ","); 
	}
