// count characters for comment form and set counter text and style
function commentCharCount(commentField, charCountContainer, charCountSpan, charCountMax) {
	var int_charCount = commentField.value.length;
	document.getElementById(charCountSpan).innerHTML = int_charCount;
	var obj_container = document.getElementById(charCountContainer);
	if (int_charCount > charCountMax) {
		obj_container.style.color = "#FF0000";
	} else {
		obj_container.style.color = "";
	}
}

// function to approve friend request
function approveFriend(str_name) {
	if (confirm("Approve "+str_name+" as your friend?")) {
		window.location = "/members_friend_request.cfm?action=approve&member="+str_name;
	}
}

