function updateThisComment(commentID,thisComment,commentSpot,resultsSpot,commentSection,updateCommentSection) {
	var ajax = getXMLHttpRequestObject();
	if(ajax) {
		var results = document.getElementById(resultsSpot);
		results.innerHTML = '<img src="http://www.10to1.com/Images/Site_Images/animate/w6.gif">';
		ajax.open('POST', 'http://www.10to1.com/updateComment.php');
		ajax.onreadystatechange = function() {
			handleUpdateComment(ajax,commentID,commentSpot,resultsSpot,commentSection,updateCommentSection);
		}
		var comments = document.getElementById(thisComment).value;
		var values = 'commentID='+ encodeURIComponent(commentID) +'&thisComment='+ encodeURIComponent(comments);
		ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		ajax.send(values);
		return false;
	}
}
function handleUpdateComment(ajax,commentID,commentSpot,resultsSpot,commentSection,updateCommentSection) {
	if(ajax.readyState == 4) {
		if((ajax.status == 200) || (ajax.status == 304)) {
			var results = document.getElementById(resultsSpot);
			results.innerHTML=ajax.responseText;
			if(ajax.responseText=='Your Comment Has Been Updated')
			{
				/* End of update DB, now grab comment */
				ajax.open('GET','http://www.10to1.com/getComment.php?commentID='+ commentID +"&" + Math.random());
				ajax.onreadystatechange=function()
				{
					finishUpdateComment(ajax,commentSpot);
				}
				ajax.send(null);
				/* End of Grab Comment */
				/* Switch out of edit comment */
				showHide(commentSection,updateCommentSection);
			}
		}
	}
}
function finishUpdateComment(ajax,commentSpot)
{
	if(ajax.readyState==4)
	{
		if((ajax.status==200)||(ajax.status==304))
		{
			var results=document.getElementById(commentSpot);
			results.innerHTML=ajax.responseText;
		}
	}
}
