$(document).ready(function() {
	var button = $('.contact_email .button');
	var form = $('#emailForm');
	var nuevoElemento = $('<input type="checkbox" name="proteccion_datos" id="proteccion_datos" /><label for="proteccion_datos">He leído y acepto la <a href="proteccion_datos.html" target="_blank">Política de Protección de Datos</a></label><br /><br />');

	nuevoElemento.insertBefore(button);
	
	form.submit(function () {
		if ($('#proteccion_datos').attr('checked') == 'checked') {
			return true;
		} else {
			alert('La casilla de "Acepto la Política de Protección de Datos" debe estar marcada');
			return false;
		}
	});
});
