function changePage(newLoc)
 {
   nextPage = newLoc.options[newLoc.selectedIndex].value
		
   if (nextPage != "")
   {
      document.location.href = nextPage
   }
 }


function obtenerFecha() {
 var fechaHoy = new Date()
 var diaSemana = ""
 var mes = ""

  		
   if (fechaHoy.getDay()==1) diaSemana = "Lunes"
   if (fechaHoy.getDay()==2) diaSemana = "Martes"
   if (fechaHoy.getDay()==3) diaSemana = "Mi&eacute;rcoles"
   if (fechaHoy.getDay()==4) diaSemana = "Jueves"
   if (fechaHoy.getDay()==5) diaSemana = "Viernes"
   if (fechaHoy.getDay()==6) diaSemana = "S&aacute;bado"
   if (fechaHoy.getDay()==0) diaSemana = "Domingo"
  		
   if (fechaHoy.getMonth()==0) mes = "enero"
   if (fechaHoy.getMonth()==1) mes = "febrero"
   if (fechaHoy.getMonth()==2) mes = "marzo"
   if (fechaHoy.getMonth()==3) mes = "abril"
   if (fechaHoy.getMonth()==4) mes = "mayo"
   if (fechaHoy.getMonth()==5) mes = "junio"
   if (fechaHoy.getMonth()==6) mes = "julio"
   if (fechaHoy.getMonth()==7) mes = "agosto"
   if (fechaHoy.getMonth()==8) mes = "septiembre"
   if (fechaHoy.getMonth()==9) mes = "octubre"
   if (fechaHoy.getMonth()==10) mes = "noviembre"
   if (fechaHoy.getMonth()==11) mes = "diciembre"

   ano = fechaHoy.getFullYear()

   return diaSemana + ", " + fechaHoy.getDate() + " de " + mes
}

function get_date () {
   strFecha = obtenerFecha();
   document.write(strFecha + " de " + ano + " ");
}

function versionImp(id) {
    nuevaURL = location.href;
    
    if (nuevaURL.indexOf("?") == -1) {
   	nuevaURL = location.href + "?imp=1";
    } else {
      	nuevaURL = location.href + "&imp=1";
    }
    ventImp = window.open(nuevaURL,'imprimir','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=620');
    ventImp.focus();
}
