// Execute your scripts when the DOM is ready. this is mostly a good habit
$(document).ready(function() {

	//Validacion
	$('.error').hide();
	$("#submit-enviar").click(function() {
		//nombre
		$('.error').hide();
		var nombre = $("#input-nombre").val();
		if (nombre == "") {
			$("#nombre-error").show();
			$("#input-nombre").focus();
			return false;
		}
		//email
		$('.error').hide();
		var email = $("#input-email").val();
		if (email == "") {
			$("#email-error").show();
			$("#input-email").focus();
			return false;
		}

	});		
		
});
