/* Change the category faq from the combo box */
function changeCategoryFAQ(chooser) {

    // Retrieve FAQ combo box
    var productCategoryFAQ = document.getElementById("productCategoryFAQ");

    // If exist the first option "Choose a category:", delete it
    if ( productCategoryFAQ.options.length != 0 && productCategoryFAQ.options[0].value == "NONE") {
      productCategoryFAQ.remove(0);
    }
    
    productCategoryFAQ.form.submit();

}


/* Show or hide span and change the arrow */
function showhidespan (id, link) {
  if(document.getElementById('faq'+id).style.display=='block') {
    document.getElementById('faq'+id).style.display='none';
    document.getElementById('selectedQuestionFaq'+id).style.display='none';
    document.getElementById('questionFaq'+id).style.display='block';
  } else {
    document.getElementById('faq'+id).style.display='block';
    document.getElementById('selectedQuestionFaq'+id).style.display='block';
    document.getElementById('questionFaq'+id).style.display='none';
  }
}
