$(document).ready(function(){
	$('#contactForm').submit(function(){

		$('.error').removeClass('error');

		$('.required', this).each(function(){
			if ( '' == $(this).val() )
			{
				$(this).addClass('error');
				$('#contactForm .alert').addClass('error');
			}
		});
		
		if ( $('.error').length > 0 ) return false;
	});
});