function fecha()
{
var hoy = new Date()
var meses = new Array()
meses[0] = "Enero"
meses[1] = "Febrero"
meses[2] = "Marzo"
meses[3] = "Abril"
meses[4] = "Mayo"
meses[5] = "Junio"
meses[6] ="Julio"
meses[7] ="Agosto"
meses[8] ="Septiembre"
meses[9] ="Octubre"
meses[10] ="Noviembre"
meses[11] = "Diciembre"
var dia = hoy.getDate()
var mes = meses[hoy.getMonth()]
var agno = hoy.getFullYear()
return dia+" de "+mes+" de "+agno
}
function siguiente()
{
actual = location.pathname
patron = /(.+tema)([0-9]{1,2})\.html/ 
hallado = new Array()
hallado = patron.exec(location.pathname)
sig = parseInt(RegExp.$2)+1
if (sig>22)
	enlace =""
else	
	enlace = '<a href="'+RegExp.$1+sig+'.html"><img src="right.gif" border=0 alt="siguiente"></a>';
return enlace	
}
function anterior()
{
actual = location.pathname
patron = /(.+tema)([0-9]{1,2})\.html/ 
hallado = new Array()
hallado = patron.exec(location.pathname)
ant = parseInt(RegExp.$2)-1
if (ant<1)
	enlace =""
else	
	enlace = '<a href="'+RegExp.$1+ant+'.html"><img src="left.gif" border=0 alt="anterior"></a>';
return enlace	
}
