//funcion contra el spam
function antispam(cuenta,clase)
{
	var dominio = "cristodelaluz.es"
	document.write("<a class='"+ clase +"' href=\"mailto:" + cuenta + "@" + dominio + "\">" + cuenta + "@" + dominio + "</a>");
}

// funciones para la fecha y hora
function fecha(){
	var mydate=new Date();
	var year=mydate.getYear();

	if (year < 1000)
		year+=1900;
		
	var day=mydate.getDay();
	var month=mydate.getMonth();
	var daym=mydate.getDate();

	if (daym<10)
	daym="0"+daym;

	var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
	var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
	document.write(dayarray[day]+ ", " + daym + " de " + montharray[month] + " de " + year);
}

function hora(){
	if (!document.layers&&!document.all&&!document.getElementById)

	return
	var Digital=new Date()
	var hours=Digital.getHours()
	var minutes=Digital.getMinutes()
	var seconds=Digital.getSeconds()
	var dn="am" 
	if (hours>12){
	dn="pm"
	hours=hours-12
	}

	if (hours==0)
	hours=12
	
	if (hours<=9)
	hours="0"+hours

	if (minutes<=9)
	minutes="0"+minutes

	if (seconds<=9)
	seconds="0"+seconds

	//change font size here to your desire

	myclock=hours+":"+minutes+" "+dn

	if (document.layers){
	document.layers.liveclock.document.write(myclock)
	document.layers.liveclock.document.close()
	}
	else if (document.all)
	liveclock.innerHTML=myclock
	else if (document.getElementById)
	document.getElementById("liveclock").innerHTML=myclock
	setTimeout("hora()",1000)
}