function buscadorLargo( ancho ) {
with (document) {
  write('<form class="buscador" name="buscar" action="/cgi-bin/buscar.cgi" method="GET" onSubmit="return validaBuscador(this)">\n')
  write('<!-- Método: todas las palabras --><input type="hidden" name="X" value="1">\n')
  write('<input type="text" name="Q" size="' + ancho + '">\n')
  write('<input type="submit" value="Buscar" name="B" class="metal">\n')
  write('</form>')
  }
}

function EsNuevo( fecha ) {

var datos = fecha.split("/")
var fecha1 = new Date( parseInt(datos[2], 10), parseInt(datos[1], 10) - 1, parseInt(datos[0], 10) )

var hoy = new Date ()
var fecha2 = new Date( hoy.getFullYear(), hoy.getMonth(), hoy.getDate() )

var diferencia = fecha2.getTime() - fecha1.getTime()
var dias = Math.floor(diferencia / (1000 * 60 * 60 * 24))

if (dias < 30) {
  document.write('&nbsp;<img src="/images/nuevo.gif" title="Añadido contenido el ' + fecha + '" border="0">')
  }
}


