<!--
function MatrizFechaDia(n) {
	this.length = n
	return this
}
monthNames = new MatrizFechaDia(12)
monthNames[1] = "Enero"
monthNames[2] = "Febrero"
monthNames[3] = "Marzo"
monthNames[4] = "Abril"
monthNames[5] = "Mayo"
monthNames[6] = "Junio"
monthNames[7] = "Julio"
monthNames[8] = "Agosto"
monthNames[9] = "Septiembre"
monthNames[10] = "Octubre"
monthNames[11] = "Noviembre"
monthNames[12] = "Diciembre"

dayNames = new MatrizFechaDia(7)
dayNames[1] = "Domingo"
dayNames[2] = "Lunes"
dayNames[3] = "Martes"
dayNames[4] = "Miercoles"
dayNames[5] = "Jueves"
dayNames[6] = "Viernes"
dayNames[7] = "Sabado"

function SacaFechaDia(oneDate) {
	var DDw = dayNames[oneDate.getDay() + 1]
	var MMw = monthNames[oneDate.getMonth() + 1]
	var AAw = oneDate.getYear()
	return DDw + ", " + oneDate.getDate() + " de " + MMw + " de " + AAw
}
function SacaJornada(oneDate) {
	var HHw = oneDate.getHours()
	if (HHw < 6 )
		return "MADRUGADA"
	if (HHw < 12)
		return "DIA"
	if (HHw < 18)
		return "TARDE"
	return "NOCHE"
}
// Presenta la fecha indicada //
fechaw = new Date()
var mensaje = (SacaFechaDia(fechaw))
mensaje
document.write(mensaje)
//-->

<!-- Begin
function derecho(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 2 || e.which == 3))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 3 || event.button == 2)) {
alert("Copyright 2002. Despatx Jurídic Ribé");
return false;
}
return true;
}
document.onmousedown=derecho;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=derecho;
// End -->
// No seleccionar texto
function disableselect(e){
return false
}

function reEnable(){
return true
}
// No seleccionar texto
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// No seleccionar texto
