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