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)
if (hallado==null)
    enlace = '<a href="../tutorhtml/tema2.html"><img src="images/right.gif" border=0 alt="siguiente"></a>';
else{
	sig = parseInt(RegExp.$2)+1
	if (sig>22)
		enlace =""
	else	
		enlace = '<a href="../'+RegExp.$1+sig+'.html"><img src="images/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 = '<a href="../'+RegExp.$1+ant+'.html"><img src="images/left.gif" border=0 alt="anterior"></a>';
else
	if (ant==1)
    	enlace = '<a href="../tutorhtml/index.html"><img src="images/left.gif" border=0 alt="anterior"></a>';	
	else
		enlace = ""
return enlace	
}
