//Codigo para fecha y hora

function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "urtarrila"
monthNames[2] = "otsaila"
monthNames[3] = "martxoa"
monthNames[4] = "apirila"
monthNames[5] = "maiatza"
monthNames[6] = "ekaina"
monthNames[7] = "uztaila"
monthNames[8] = "abuztua"
monthNames[9] = "iraila"
monthNames[10] = "urria"
monthNames[11] = "azaroa"
monthNames[12] = "abendua"

dayNames = new MakeArray(7)
dayNames[1] = "Igandea"
dayNames[2] = "Astelehena"
dayNames[3] = "Asteartea"
dayNames[4] = "Asteazkena"
dayNames[5] = "Osteguna"
dayNames[6] = "Ostirala"
dayNames[7] = "Larunbata"

function customDateString(oneDate) {
	var theDay = dayNames[oneDate.getDay() + 1]
	var theMonth = monthNames[oneDate.getMonth() + 1]
	var theYear = oneDate.getFullYear() 
	return theDay + ", " + theYear + "ko " + theMonth + "ren "+ oneDate.getDate()+  "an "
	//return theYear + "ko" + theMonth + "ren"oneDate.getDate()+"an"
}



