function openSection(id)
{
     for (var i = 1; i<=5; i++) 
    {
            if (document.getElementById('section'+i)) {document.getElementById('section'+i).style.display='none';}          
    }
     var txt = document.getElementById('section'+id);
     txt.style.display='block';
     txt = document.getElementById('current_section');
     txt.value=id;
      var obj = document.getElementById('counterNumber');
      obj.value = '';
}

function submitGiveBack()
{
     var obj = document.getElementById('counterNumber');

     if (obj.value == '')
     {
             alert(error_select_empty);
     }
     else
     {             
             document.counterForm.submit();
             document.location.href = "/give_back/"+ sLang + "/thankyou.htm?" + sCut  
     }
}

function onContributionSelected(contribution)
{
    var obj = document.getElementById('counterNumber');
    obj.value = contribution.value;
}