<script type="text/javascript">
function coment(id){
if(document.getElementById(id).style.display = 'none')
{
document.getElementById('reply-' + id).style.display = 'none';
document.getElementById('comentar').style.display = 'none';
document.getElementById(id).style.display = 'block';
}
else if(document.getElementById(id).style.display = 'block')
{
document.getElementById(id).style.display = 'none';
document.getElementById('reply-' + id).style.display = 'block';
document.getElementById('comentar').style.display = 'block';
}
}
</script>
aqui a parte em php!!!
<a href="#reply_form" class="reply" id="reply-'.$row['id'].'" onClick="coment('.$row['id'].');">
Responder</a>
<div class="clear"></div>
<div id="Comment">
<form id="'.$row['id'].'" class="form" action="post_comment.php" method="post" onSubmit="action=post_comment.php;return coment('.$row['id'].');">
<input type="hidden" name="parent_id" id="parent_id" value="'.$row['id'].'"/>
<input name="name" type="text" class="name" id="name"/>
<textarea class="textArea" rows="2" cols="70" name="comment" id="comment"></textarea></br>
<input type="submit" class="Button" value="Responder"> ou <a href="#cancel_form" id="cancel-'.$row['id'].'" onClick="coment('.$row['id'].');">Cancelar</a>
</form>
</div>










