/*------------------------------------------------------------------------ 
fecha.js Fumciones para escribir diferentes tipos de fechas 
Función fecha_actual() 
Jorge Gonzalez 
Pontificia Universidad Javeriana - Cali 
Dirección de Comunicaciones 
SEP-2002 

Función enlace_fecha_Boletin() 
Diego F. Mrtínez 
Pontificia Universidad Javeriana - Cali 
Centro de Servicios Informaticos MAY-16-2005 
------------------------------------------------------------------------*/ 
function fecha_actual() { 
meses= new Array ("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"); 
//fecha= new Date(document.lastModified); 
fecha= new Date(); indice = fecha.getMonth(); 
document.write( fecha.getDate()+ " de " + meses[indice] + " de " + fecha.getYear()); 
} 

function enlace_fecha_boletin()
{
	fecha= new Date();
	month = fecha.getMonth() + 1;
	year = fecha.getFullYear();
	day = fecha.getDate();
	month = month.toString();
	day = day.toString();
	if (day.length == 1)
		day = "0" + day;
	if (month.length == 1)
		month = "0"+ month;
	//document.write (year + "-" + month + "-" + day + ".htm")
	document.write(" [<a href=http://www.puj.edu.co/boletin/lagoalsaman/" + year + "-" + month + "-" + day + ".htm" + ">m&aacute;s</a>]");
}

function fecha_boletin() { 
fecha= new Date(); month = fecha.getMonth() + 1; 
year = fecha.getFullYear(); day = fecha.getDate(); 
month = month.toString(); 
day = day.toString(); 
if (day.length == 1) day = "0" + day; 
if (month.length == 1) month = "0"+ month;
fecha = "http://www.puj.edu.co/boletin/lagoalsaman/" + year + "-" + month + "-" + day + ".htm"; 
return fecha;
}

function mes() { 
meses= new Array ("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"); 
fecha= new Date(); 
mes = fecha.getMonth();
//return meses[mes] + ".htm";   //Modificado el 22 dic 2008, para agenda
return meses[mes] ;
} 