function submitForm()
{
	var fullName = document.getElementById('fullname').value;
	var email = document.getElementById('email').value;
	if (document.getElementById('comment_nature'))
		var commentNature = document.getElementById('comment_nature').value;
	var commentContent = document.getElementById('comment_content').value;
	var emailCheck  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	var isValid = true;
	if (fullName == ''){// Name Validation
		isValid = false;
		document.getElementById('fullnameAlert').innerHTML = 'Full name is missing.';
	}
	else{
		document.getElementById('fullnameAlert').innerHTML = '';
	}
	

	if (email == '' || email==' '){// Email Validation
		isValid = false;
		document.getElementById('emailAlert').innerHTML = 'Email address is missing.';
	}
	else if (!emailCheck.test(email)){
		isValid = false;
		document.getElementById('emailAlert').innerHTML = 'Invalid email address.';
	}
	else{
		document.getElementById('emailAlert').innerHTML = '';
	}
	
	if (commentContent == ''){// Comment Content Validation
		isValid = false;
		document.getElementById('commentAlert').innerHTML = 'Please enter your comment so we will be able to assist you.';
	}
	else{
		document.getElementById('commentAlert').innerHTML = '';
	}

	if (isValid){
		$.ajax({
			type: "POST",
			url: jsBaseURL+"scripts/email.php",
			data: "fullName="+fullName+"&email="+email+"&commentNature="+commentNature+"&commentContent="+commentContent,
			success: function(msg){
				document.contactus.reset();
				var messageAlert = '<div class="normalText" style="clear:both; border:1px #c7c7c7 solid; margin-top:10px; padding:5px; background:#F4E7E7;"><strong>Thank you!</strong> Your message has been received. If your comment requires a response, we will contact you with one shortly.</div>';
				document.getElementById("mainTitle").innerHTML += messageAlert;
			}
		});
	}
	return false;
}
