$(document).ready(function(){
	$("#articleComment #submit").click(function(){
		//check if the username and password are legit
		var comment = $("#comment").val();
		var commentname = $("#commentname").val();
//		alert(comment);
		
		$.post("ajax/articleComment.php",
			{ c: comment, n: commentname},
			function(theResponse){
				var resp = theResponse;
				$("#submitArticleComment").hide("slow");
				$("#submitArticleCommentResults").html(resp).delay(1000).show("slow").delay(3000).fadeOut(500);
			});
		
		return false;
	});
});
