
	jQuery(document).ready( function () {
		function form_check(formData, jqForm, options) {
			if (
				(( $("#name").val() ) == "") ||
				(( $("#email").val() ) == "") ||
				(( $("#phone").val() ) == "") ||
				(( $("#comments").val() ) == "")
			) {
					alert("Please fill out the form before clicking send.");
					return false;
				} else {
					return true;
				}
		}
		
		$("#contact-form").ajaxForm( {
			type: 'POST',
			beforeSubmit: form_check,
			success: function () {			
				$("#post").attr("disabled","disabled");
				$("#post").attr("disabled","true");
				$("#post").fadeOut();
				$('#contact-form').resetForm();
				$("#form-mesg").append("Message has been sent.");
			}
		} );									  
	} );