﻿function RemoveTextNode(startBrother)
{
  endBrother=startBrother;
  if(endBrother!=null)
  {  
      while(endBrother.nodeType!=1)
      {     
        endBrother = endBrother.nextSibling;
      }
  }
  return endBrother;
}


function ShowCommentForm(sender)
{
    var formItem = RemoveTextNode(sender.nextSibling);
    if(formItem!=null)
    {
        if(formItem.style.display == 'block')
        {
            formItem.style.display = 'none';
        }
        else
        {
            formItem.style.display = 'block';
        }
    }    
    return false;
}
