
	var days=new Array(8);
		days[1]="Lunes";
		days[2]="Martes";
		days[3]="Miércoles";
		days[4]="Jueves";
		days[5]="Viernes";
		days[6]="Sábado";
		days[0]="Domingo";

	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";

//-------------------------------------------------------------------------------------------

	function mostrarHoraCliente()
	{
		momentoActual = new Date();
		hora = momentoActual.getHours();
		minuto = momentoActual.getMinutes();
		segundo = momentoActual.getSeconds()
		
		str_segundo = new String (segundo);
		if (str_segundo.length == 1)
		{
			segundo = "0" + segundo;
		}
			
		str_minuto = new String (minuto);
		if (str_minuto.length == 1)
		{
			minuto = "0" + minuto;
		}
	
		str_hora = new String (hora);
		if (str_hora.length == 1)
		{
			hora = "0" + hora;
		}
			
		horaImprimible = hora + " : " + minuto + " : " + segundo;
		document.getElementById("divFechaHora").innerHTML = horaImprimible;
		setTimeout("mostrarHoraCliente()",1000);
	}

//-------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------

	function mostrarFecha()
	{
		fechadia = new Date(); 
		
		lday=days[fechadia.getDay()];
		lmonth=months[fechadia.getMonth() + 1];
		date=fechadia.getDate();
		year=fechadia.getFullYear();
		
		fechaImprimible = lday + ' ' + date + ' de ' + lmonth + ' de ' + year;
		document.getElementById("divFechaHora").innerHTML = fechaImprimible;
	}

//-------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------

	function mostrarFechaHora()
	{

		fechadia = new Date(); 
		
		lday=days[fechadia.getDay()];
		lmonth=months[fechadia.getMonth() + 1];
		date=fechadia.getDate();
		year=fechadia.getFullYear();
		
		fechaImprimible = lday + ' ' + date + ' de ' + lmonth + ' de ' + year;

		momentoActual = new Date();
		hora = momentoActual.getHours();
		minuto = momentoActual.getMinutes();
		segundo = momentoActual.getSeconds()
		
		str_segundo = new String (segundo);
		if (str_segundo.length == 1)
		{
			segundo = "0" + segundo;
		}
			
		str_minuto = new String (minuto);
		if (str_minuto.length == 1)
		{
			minuto = "0" + minuto;
		}
	
		str_hora = new String (hora);
		if (str_hora.length == 1)
		{
			hora = "0" + hora;
		}
			
		horaImprimible = hora + " : " + minuto + " : " + segundo;
		document.getElementById("divFechaHora").innerHTML = fechaImprimible + ' - ' + horaImprimible;
		setTimeout("mostrarFechaHora()",1000);
	}

//-------------------------------------------------------------------------------------------





