// Funciones varias

function mostrarFecha()
{
	dows = new Array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
	months = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
	now = new Date();
	dow = now.getDay(); //dia de la semana
	d = now.getDate(); //dia de mes
	if(String(d.toString().length == 1)) d = "-" + d;
	m = now.getMonth();
	h = now.getTime();
	y = Right(now.getFullYear().toString(),2);
	document.write(dows[dow]+" "+d+"&nbsp;"+months[m]+"&nbsp;"+y);
}

function Right(str, n){
	//alert(str);
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}


