$(document).ready(function() {

	$('.ok').hide();
	
	$("#email").change(function() {
	
		$('#email2').val('');	
		$('.ok').hide();
		
	})

	$("#email2").change(function() {

		if ($("#email").val() == $("#email2").val()) {
			$('.ok').show();
			$("#submit").removeAttr("disabled");
		}
		else {
			$('.ok').hide();
			$('#submit').attr('disabled', true);
		}

	})
});