$(document).ready(function()
{
    $('div#commentDiv').hide(); //initially hide the div
    $('div#confirmationDiv').css('visibility','hidden');
    
    $('div#toggleDiv').toggle(
        function()
        {
            $('div#commentDiv').show('slow');
            $('img#imgArrow').attr('src','/img/grafics/Pil_green_down.gif');
            return false; //used together with the initial hiding
        },
        function()
        {
            $('div#commentDiv').hide('slow');
            $('img#imgArrow').attr('src','/img/grafics/Pil_green.gif');
        });//end toggle()
    
    $('#cmdSendMail').click(function()
    {   
        //Placed in UserComments.ascx since ServerControl ID's can't be
        //processed in .js files (unless you hard-code the generated ID).
        sendMail();
    });
        
})//end ready()

function confirmMessageSent()
{
    $(document).ready(function()
    {        
        $('div#confirmationDiv').css('visibility','visible');
        $('div#toggleDiv').css('visibility','hidden');
    });
}


