function VisualizarFecha()
{
	date = new Date();
	var day_of_week_number = date.getDay();
	var day_of_month = date.getDate();
	var month_number = date.getMonth();
	var year = date.getYear();
	if (year<200) year+=1900;
	var day_of_week = '';
	var month = '' 

	var hours = date.getHours();
	var message = '';

	if (hours >= 6) { time_of_day = 'Buenos Días'; message='Morning Message';}
	if ((hours >= 14) && (hours < 21)) { time_of_day = 'Buenas Tardes'; message='Afternoon Message'}
	if (hours >= 21) { time_of_day = 'Buenas Noches'; message='Evening Message';}
	if ((hours >= 0) && (hours < 6)){ time_of_day = 'Buenas Noches'; message='Night Message';}

	if(month_number == 0){month = 'Enero';}
	if(month_number == 1){month = 'Febrero';}
	if(month_number == 2){month = 'Marzo';}
	if(month_number == 3){month = 'Abril';}
	if(month_number == 4){month = 'Mayo';}
	if(month_number == 5){month = 'Junio';}
	if(month_number == 6){month = 'Julio';}
	if(month_number == 7){month = 'Agosto';}
	if(month_number == 8){month = 'Septiembre';}
	if(month_number == 9){month = 'Octubre';}
	if(month_number == 10){month = 'Noviembre';}
	if(month_number == 11){month ='Diciembre';}
	
	if(day_of_week_number == 0){day_of_week = 'Domingo';}
	if(day_of_week_number == 1){day_of_week = 'Lunes';}
	if(day_of_week_number == 2){day_of_week = 'Martes';}
	if(day_of_week_number == 3){day_of_week = 'Miercoles';}
	if(day_of_week_number == 4){day_of_week = 'Jueves';}
	if(day_of_week_number == 5){day_of_week = 'Viernes';}
	if(day_of_week_number == 6){day_of_week = 'Sábado';} 

	var date_to_show='&nbsp;'+day_of_week+', '+day_of_month+' '+month+' '+year+'. '+time_of_day;
	document.write(date_to_show);
}

function VisualizarDias()
{

  var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
		function countup(yr,m,d){
		var today=new Date()
		var todayy=today.getYear()
			if (todayy < 1000)
			todayy+=1900
			var todaym=today.getMonth()
			var todayd=today.getDate()
			var todaystring=montharray[todaym]+" "+todayd+", "+todayy
			var paststring=montharray[m-1]+" "+d+", "+yr
			var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
				document.write("Llevamos "+difference+" dias en Internet.")
			}
				countup(2007,12,14)
}



