function escribirNombre(frmCampo,frmLabel){

	if (!esVacio(frmCampo) && (frmCampo.value==frmLabel)){
		frmCampo.value = '';
		frmCampo.focus();
	}
}

function escribirNombre2(frmCampo,frmLabel){

	if (esVacio(frmCampo)){
		frmCampo.value = frmLabel;
	}
}

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");
	arrayIdioma["ca"] = new Array("Per realitzar la consulta cal omplir TOTS els camps");

	convertirTerminos(formulario);
	
	for(var i=0;i<formulario.length;i++){
		if (esVacio(formulario.elements[i])) {
			alert(arrayIdioma[strIdioma][0]); 
 			return false;
		}
	}

	if (formulario.recaptcha_response_field.value==''){
		alert(arrayIdioma[strIdioma][0]);
		formulario.recaptcha_response_field.focus();
		return false;
	}

	formulario.submit();
}
