function OnCommentDispChg()
{
    var     Dap;

    if ( window &&
         window.parent &&
         window.parent.calendar )
    {
        Dsp = window.parent.calendar;
    }
    else if ( document &&
              document.all )
    {
        Dsp = document.all;
    }
    else
    {
        return;
    }

    if ( Dsp.Comment )
    {
        if ( Dsp.Comment[0].style.display == "none" )
        {
            for ( i = 0 ; ; i++ )
            {
                if ( ! Dsp.Comment[i] )
                {
                    break;
                }
                Dsp.Comment[i].style.display = "block";
            }
        }
        else
        {
            for ( i = 0 ; ; i++ )
            {
                if ( ! Dsp.Comment[i] )
                {
                    break;
                }
                Dsp.Comment[i].style.display = "none";
            }
        }
    }

    if ( Dsp.TopicComment )
    {
        if ( Dsp.TopicComment[0].style.display == "none" )
        {
            for ( i = 0 ; ; i++ )
            {
                if ( ! Dsp.TopicComment[i] )
                {
                    break;
                }
                Dsp.TopicComment[i].style.display = "block";
            }
        }
        else
        {
            for ( i = 0 ; ; i++ )
            {
                if ( ! Dsp.TopicComment[i] )
                {
                    break;
                }
                Dsp.TopicComment[i].style.display = "none";
            }
        }
    }

    if ( Dsp.TopicSubComment )
    {
        if ( Dsp.TopicSubComment[0].style.display == "none" )
        {
            for ( i = 0 ; ; i++ )
            {
                if ( ! Dsp.TopicSubComment[i] )
                {
                    break;
                }
                Dsp.TopicSubComment[i].style.display = "block";
            }
        }
        else
        {
            for ( i = 0 ; ; i++ )
            {
                if ( ! Dsp.TopicSubComment[i] )
                {
                    break;
                }
                Dsp.TopicSubComment[i].style.display = "none";
            }
        }
    }
}

