function comprobarConsulta(formulario) {

	var arrayIdioma = new Array();

	arrayIdioma["es"] = new Array("Para efectuar la consulta debe rellenar TODOS los campos");
	arrayIdioma["en"] = new Array("To make the query you must refill ALL the fields");

	convertirTerminos(formulario);
	

	for(var i=0;i<formulario.length;i++){
		if (esVacio(formulario.elements[i])) {
			alert(arrayIdioma[strIdioma][0]); 
 			return false;
		}
	}
	if (jcap()) {
		formulario.submit();
	} else {
		return false;
	}	
}
