currentCommentId = 0;
currentForumsPostId = 0;

function AddNotACritiqueFlag(commentId){
	currentCommentId = commentId;

	$('#notacritiqueflag' + commentId).text('Just a sec...');

	var params = new Object();
	params["commentid"] = commentId;

	ac = new AjaxConnection();
	ac.Send("/webservices/addnotacritiqueflag.php", params, "AddNotACritiqueFlagComplete");

}

function AddNotACritiqueFlagComplete(){
	$('#notacritiqueflag' + currentCommentId).text('Thanks!');
}

function AddQuoteFlag(commentId){
	currentCommentId = commentId;

	$('#quoteflag' + commentId).text('Just a sec...');

	var params = new Object();
	params["commentid"] = commentId;

	ac = new AjaxConnection();
	ac.Send("/webservices/addquoteflag.php", params, "AddQuoteFlagComplete");

}

function AddQuoteFlagComplete(){
	$('#quoteflag' + currentCommentId).text('Thanks!');
}

function AddForumsPostFlag(forumsPostId){
	currentForumsPostId = forumsPostId;

	$('#forumspostflag' + forumsPostId).text('Just a sec...');

	var params = new Object();
	params["forumspostid"] = forumsPostId;

	ac = new AjaxConnection();
	ac.Send("/webservices/addforumspostflag.php", params, "AddForumsPostFlagComplete");
}

function AddForumsPostFlagComplete(){
	$('#forumspostflag' + currentForumsPostId).text('Thanks!');
}
