/*function getFaqPageContent(get_id, faq_mst_id,total_records) {
   var dynamic_div = document.getElementById("dynamic_content_div");
   dynamic_div.innerHTML = '<div style="height:40px;border:0px solid #000;padding-top:40px; " align="center"><img src="images/loading1.gif" border="0"></div>'
   for (var i=1; i<=total_records;i++){
     var left_id = 'corporateleftmenu_' + i;
     if (document.getElementById(left_id)) document.getElementById(left_id).className = '';
   }
   document.getElementById(get_id).className = 'corporate_left_menu';
    var reqLoc = new XMLHttpRequest();
    reqLoc.onreadystatechange = function () {
      if (reqLoc.readyState == 4) {
          if (reqLoc.status == 200) {
              dynamic_div.innerHTML = reqLoc.responseText;
          } else {
            alert("Error: While trying to process whatever you requested");
          }
      }
    }
    reqLoc.open("GET", "faq.process.php?faq_mst_id=" + faq_mst_id , true);
    reqLoc.send("");
}*/

function switchFaqDiv(active_div_cat) {

    var cat_ids = document.getElementById('faq_categories_ids').value;
    var cat_ids_arr = cat_ids.split(',');
    var cat_ids_arr_len = cat_ids_arr.length;
    for (var i=0;i<cat_ids_arr_len;i++) {
       var faq_div_id = 'faq_div_' + cat_ids_arr[i];
       var left_menu_id =  'leftmenu_' + cat_ids_arr[i];
       document.getElementById(faq_div_id).style.display = 'none';
       document.getElementById(left_menu_id).className = '';

    }
    var active_div_id = 'faq_div_' + active_div_cat;
    var active_left_menu_id =  'leftmenu_' + active_div_cat;
    document.getElementById(active_div_id).style.display = 'block';
    document.getElementById(active_left_menu_id).className = 'corporate_left_menu';
    
}