var commentForm;
var currentResponseTo = 0;

function commentRespondTo(parentid) {
	document.forms.commentFormResponseIDContainer.in_response_to.value = parentid;
	if (currentResponseTo > 0) {
		var oldplace = new getObj("commentResponseContainer" + currentResponseTo);
		oldplace.obj.innerHTML = "<a href='javascript:void 1;' onClick='commentRespondTo("+currentResponseTo+");'>Reply to this</a>";
	}
	commentForm = new getObj("commentFormContainer");
	var newplace = new getObj("commentResponseContainer" + parentid);
	newplace.obj.innerHTML = commentForm.obj.innerHTML;

	hideLayer('commentFormContainer');
	currentResponseTo = parentid;
}