/***********************************************************************************************/
 $(document).ready(
           function()
           {
                  
            });

/***********************************************************************************************/
function ShowOrHideTextboxAndSubAnswers(objectCheckbox)
{
    if (objectCheckbox.checked==true)
    {
        $('#lider'+objectCheckbox.id).css({'display':''});
    }
    else
    {
        $('#lider'+objectCheckbox.id).css({'display':'none'});
        
        $("#lider"+objectCheckbox.id+" :checkbox").each(function()
        {
           $(this).attr('checked', ''); 
        });
        
    }     
}
/***********************************************************************************************/
function CheckNoOfAnswers(iNoOfAnswersAllowedMax)
{
    var iNoOfChecked=0;
    
    $("#tabela2 :checkbox:checked").each(function()
    {
       iNoOfChecked++;
    });
    if (iNoOfChecked>=iNoOfAnswersAllowedMax)
    $("#tabela2 :checkbox").each(function()
    {
        if (this.checked!=true) this.disabled=true;
    });
    else
    $("#tabela2 :checkbox").each(function()
    {
        this.disabled=false;
    });
	
	
}
