(function($) {

	/****************************************
	 *				contactObj
	 ****************************************/	
	contactObj = {
		validateContactForm: function() {
			if ($('#contactFirstName').val().length == 0) {
				alert("You must enter your first name.");
				return false;
			}
			else if ($('#contactLastName').val().length == 0) {
				alert("You must enter your last name.");
				return false;
			}
			else if ($('#contactEmail').val().length == 0) {
				alert("You must enter an email address.");
				return false;
			}
			else if ($('#contactSubject').val().length == 0) {
				alert("You must enter a Subject.");
				return false;
			}
			else if ($('#contactMessage').val().length == 0) {
				alert("You must enter a Message.");
				return false;
			}
			else {
				$('#contactSubmitBtn').attr('disabled', true);
				$('#contactForm').submit();
			}
		} /* end validateContactForm */
	} /* end contactObj */


	/****************************************
	 * 
	 *			DOCUMENT.READY
	 * 
	 ****************************************/
	$(document).ready(function(){
		$('#contactSubmitBtn').bind('click', function (event) {
			event.preventDefault();
			contactObj.validateContactForm();
		});
	}); /* end document.ready */
	
}) (jQuery); /* end of the main jQuery object */// JavaScript Document
