var xmlHttp
var prev = "1"

function ajaxGetFAQ(e,p){
  xmlHttp2=GetXmlHttpObject2()
  if (xmlHttp2==null){
    alert ("Your browser does not support AJAX!");
    return;
  } 

  var url="GetFAQ.asp";

  url=url+"?id="+e;
  url=url+"&s="+p;

  xmlHttp2.onreadystatechange=stateChanged2;
  xmlHttp2.open("GET",url,true);
  xmlHttp2.send(null);
}


function GetXmlHttpObject2(){
  var xmlHttp2=null;
  try{
    // Firefox, Opera 8.0+, Safari
    xmlHttp2=new XMLHttpRequest();
  }catch (e){
    // Internet Explorer
    try{
      xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
    }catch (e){
      xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
  return xmlHttp2;
}


function stateChanged2(){ 
  if (xmlHttp2.readyState==4){ 
    var str = xmlHttp2.responseText;
    if (str != "Not Found."){
      var cData = str.split(",");
      
      document.getElementById("s"+prev).innerHTML="";
      document.getElementById("s"+cData[0]).innerHTML=cData[1].replace( /~/, "," )+'<br />&nbsp;';
      document.getElementById("s"+prev).style.backgroundColor='';
      document.getElementById("s"+prev).style.borderStyle='none';
      document.getElementById("s"+prev).style.borderWidth='0px';
      document.getElementById("s"+cData[0]).style.borderColor='';

      document.getElementById("s"+cData[0]).style.backgroundColor='#ececec';
      document.getElementById("s"+cData[0]).style.borderStyle='solid';
      document.getElementById("s"+cData[0]).style.borderWidth='1px';
      document.getElementById("s"+cData[0]).style.borderColor='#3D5074';

      prev = cData[0];
    }
  }
}
