function checkData() {
	var f1 = document.contacto;
	var wm = "Por favor, revise los siguientes datos:\n\n";
	var noerror = 1;
	var t1 = f1.nombre;
	if (t1.value == " " || t1.value == "") {
		wm += "* Nombre y Apellidos\n";
		noerror = 0;
	}
	var t1 = f1.telefono;
	if (t1.value == " " || t1.value == "") {
		wm += "* Teléfono\n";
		noerror = 0;
	}
	var t1 = f1.email;
	if (t1.value == " " || t1.value == "") {
		wm += "* E-mail\n";
		noerror = 0;
	}
	var t1 = f1.departamento;
	if (t1.value == " " || t1.value == "") {
		wm += "* Departamento con el que desea contactar\n";
		noerror = 0;
	}
	var t1 = f1.mensaje;
	if (t1.value == " " || t1.value == "") {
		wm += "* Mensaje\n";
		noerror = 0;
	}
	if (noerror == 0) {
		alert(wm);
		return false;
	}
	else return true;
}

function checkDataEmpleo() {
	var f1 = document.empleo;
	var wm = "Por favor, revise los siguientes datos:\n\n";
	var noerror = 1;
	var t1 = f1.nombre;
	if (t1.value == " " || t1.value == "") {
		wm += "* Nombre y Apellidos\n";
		noerror = 0;
	}
	var t1 = f1.telefono;
	if (t1.value == " " || t1.value == "") {
		wm += "* Teléfono\n";
		noerror = 0;
	}
	var t1 = f1.email;
	if (t1.value == " " || t1.value == "") {
		wm += "* E-mail\n";
		noerror = 0;
	}
	var t1 = f1.provincia;
	if (t1.value == " " || t1.value == "") {
		wm += "* Provincia y población\n";
		noerror = 0;
	}
	var t1 = f1.departamento;
	if (t1.value == " " || t1.value == "") {
		wm += "* Puesto en el que está interesado/a\n";
		noerror = 0;
	}
	var t1 = f1.cv;
	if (t1.value == " " || t1.value == "") {
		wm += "* Currículum Vitae\n";
		noerror = 0;
	}
	if (noerror == 0) {
		alert(wm);
		return false;
	}
	else return true;
}

function checkDataPresupuesto() {
			var f1 = document.contacto;
			var wm = "Por favor, revise los siguientes datos:\n\n";
			var noerror = 1;
			var t1 = f1.nombre;
			if (t1.value == " " || t1.value == "") {
				wm += "* Nombre y Apellidos\n";
				noerror = 0;
			}
			var t1 = f1.telefono;
			if (t1.value == " " || t1.value == "") {
				wm += "* Teléfono\n";
				noerror = 0;
			}
			var t1 = f1.email;
			if (t1.value == " " || t1.value == "") {
				wm += "* E-mail\n";
				noerror = 0;
			}
			var t1 = f1.empresa;
			if (t1.value == " " || t1.value == "") {
				wm += "* Empresa\n";
				noerror = 0;
			}
			if (noerror == 0) {
				alert(wm);
				return false;
			}
			else return true;
	}

function mostrar_ocultar(apartado) {
		document.getElementById('boton_encuesta').style.display='none';
		document.getElementById('encuesta').style.display='none';
		
		document.getElementById(apartado).style.display='';
}

function checkDataAtencion() {
	var f1 = document.atencion;
	var wm = "Por favor, revise los siguientes datos:\n\n";
	var noerror = 1;
	var t1 = f1.mensaje;
	if (t1.value == " " || t1.value == "") {
		wm += "* Sugerencia o reclamación\n";
		noerror = 0;
	}
	var t1 = f1.empresa;
	if (t1.value == " " || t1.value == "") {
		wm += "* Nombre de la empresa\n";
		noerror = 0;
	}
	var t1 = f1.persona;
	if (t1.value == " " || t1.value == "") {
		wm += "* Nombre de la persona de contacto\n";
		noerror = 0;
	}
	var t1 = f1.telefono;
	if (t1.value == " " || t1.value == "") {
		wm += "* Telefono\n";
		noerror = 0;
	}
	var t1 = f1.email;
	if (t1.value == " " || t1.value == "") {
		wm += "* E-mail\n";
		noerror = 0;
	}
	if (noerror == 0) {
		alert(wm);
		return false;
	}
	else return true;
}

function checkDataAtencionFR() {
	var f1 = document.atencion;
	var wm = "S'il vous plaît lisez les informations suivantes:\n\n";
	var noerror = 1;
	var t1 = f1.mensaje;
	if (t1.value == " " || t1.value == "") {
		wm += "* Suggestion ou Réclamation \n";
		noerror = 0;
	}
	var t1 = f1.empresa;
	if (t1.value == " " || t1.value == "") {
		wm += "* Nom de l´entreprise \n";
		noerror = 0;
	}
	var t1 = f1.persona;
	if (t1.value == " " || t1.value == "") {
		wm += "* Personne de contact\n";
		noerror = 0;
	}
	var t1 = f1.telefono;
	if (t1.value == " " || t1.value == "") {
		wm += "* Telephone \n";
		noerror = 0;
	}
	var t1 = f1.email;
	if (t1.value == " " || t1.value == "") {
		wm += "* E-mail\n";
		noerror = 0;
	}
	if (noerror == 0) {
		alert(wm);
		return false;
	}
	else return true;
}

function checkDataAtencionEN() {
	var f1 = document.atencion;
	var wm = "Please review the following information:\n\n";
	var noerror = 1;
	var t1 = f1.mensaje;
	if (t1.value == " " || t1.value == "") {
		wm += "* Suggestion or Claim \n";
		noerror = 0;
	}
	var t1 = f1.empresa;
	if (t1.value == " " || t1.value == "") {
		wm += "* Name of the company  \n";
		noerror = 0;
	}
	var t1 = f1.persona;
	if (t1.value == " " || t1.value == "") {
		wm += "* Contact person \n";
		noerror = 0;
	}
	var t1 = f1.telefono;
	if (t1.value == " " || t1.value == "") {
		wm += "* Contact telephone  \n";
		noerror = 0;
	}
	var t1 = f1.email;
	if (t1.value == " " || t1.value == "") {
		wm += "* E-mail\n";
		noerror = 0;
	}
	if (noerror == 0) {
		alert(wm);
		return false;
	}
	else return true;
}