var xmlhttp=new Array();

function faqHideShow (divblock) { 
if (document.getElementById(divblock).style.display=='none')
  { document.getElementById(divblock).style.display = ''; }
  else
  { document.getElementById(divblock).style.display = 'none'; }
 }
  
function faqYesNoClick(faqID, faqYesNo)
{	
i=0;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp[i]=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp[i]=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp[i].onreadystatechange=function()
  {
  if (xmlhttp[i].readyState==4 && xmlhttp[i].status==200)
    {
    document.getElementById("faqhelp"+faqID).innerHTML=xmlhttp[i].responseText;
    }
  }
xmlhttp[i].open("GET","../hosting/faqhelpsave.php?i="+faqID+"&a="+faqYesNo,true);
xmlhttp[i].send();
}
