// Funcion para el buscador 

function validacampo(form) {
   //
   var emptyPattern = /^(\s*)$/;
   if(emptyPattern.test(form.query.value)) {
      // if so, return null string
      alert("No hay datos para la busqueda");
      return false;
   }
   else
     //return  true;
    // else, return non-whitespace characters from middle of oldString
    form.submit()
}

// Fin de funcion para el buscador 

// JS para downloads

function bajar(file,peso,tiempo,segmin) {
return confirm("Archivo a descargar:  " + file + "\nPeso aproximado:  " + peso + "\nTiempo de descarga: " + tiempo + " " + segmin + " a 28kbps. \n\nDesea continuar?");
}

// Fin de JS para downloads

// Funcion para las ventanas
function vnt (file) {
	date = new Date();
	
  if (date != null) {
			window.open(file,date.getTime(),"width=780,height=320,screenX=1,screenY=1,toolbar=no,scrollbars=yes");
				}
			}
			
function vntb (file, ancho, height) {
	date = new Date();
	var ancho
	var height
	
  if (date != null) {
			window.open(file,date.getTime(),"width=" + ancho + ",height=" + height + ", screenX=1,screenY=1,toolbar=no,scrollbars=yes");
				}
			}
// Fin de funcion para las ventanas