var form = $('.form_box');

function ShowForm(container, parent) {
	form.appendTo(container);
	form.show();
	
	$('#comment_P_PARENT').val(parent || '');
	return false;
}

$('#add_comment').click(function(){
	ShowForm($('.form_base'));
});

$('.comment a').click(function(){
	return ShowForm(this.parentNode, this.href.replace(/^.*#([0-9]+)$/, "$1"));
});
