var hoy = new Date();
function dia (hoy) {
  var hoy_dia = hoy.getDay();
  switch(hoy_dia) {
	case 0: return "Domingo";
	case 1: return "Lunes";
	case 2: return "Martes";
	case 3: return "Miércoles";
	case 4: return "Jueves";
	case 5: return "Viernes";
    case 6: return "Sábado";
	return "";
  }
}
function hora() {
  var hora_hoy = new Date();
  var hora2 = hora_hoy.getHours();
  var minuto = hora_hoy.getMinutes();
   var turno="";
  if (hora2 < 13) {
    turno="AM"
  } else {
    turno="PM"
	hora2 = hora2 - 12
  }
  var losminutos
  if (minuto < 10) {
    losminutos = "0"+minuto;
  } else {
    losminutos = minuto;
  }
  var lahora= " "+hora2+":"+losminutos+" "+turno;
  return lahora;
}
function mes(hoy) {
  var hoy_mes = hoy.getMonth();
  switch(hoy_mes) {
		case 0: return "Enero";
		case 1: return "Febrero";
		case 2: return "Marzo";
		case 3: return "Abril";
		case 4: return "Mayo";
		case 5: return "Junio";
		case 6: return "Julio";
		case 7: return "Agosto";
		case 8: return "Septiembre";
		case 9: return "Octubre";
		case 10: return "Noviembre";
		case 11: return "Diciembre";
		return "";
	 }
    }
var yearNr=hoy.getYear();
if(yearNr < 2000) {
   Year = 1900 + yearNr;
}
else {
Year = yearNr;
}