function GetFaq(CatId)
{
	FaqUrl = "/Ajax/Faq_GetFaqByCatId.asp"; 
	FaqobjXML = CreateObjXML();
    FaqobjXML.open("POST", FaqUrl ,true); 
	document.getElementById("Cat"+CurCatId).className='F12 LH12 C_GD UnLine CursorP';
	document.getElementById("Cat"+CatId).className='F12 LH12 FB C_GD CursorP';
	CurCatId=CatId;
    FaqobjXML.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	str="CatId="+CatId;	
	FaqobjXML.onreadystatechange=batchFaqRsChange;
	FaqobjXML.send(str);
}

//This function is for the ajax of the FAQ
function batchFaqRsChange()
{    
	if (FaqobjXML && FaqobjXML.readyState==4)
	{
        if (FaqobjXML.responseXML)
		{                     
            var Str = FaqobjXML.responseXML.getElementsByTagName("Str");
			if (Str[0].firstChild.data!='False')
			{           
	        	document.getElementById("FaqContent").innerHTML = Str[0].firstChild.data;
			}
			else
			{
				document.getElementById("FaqContent").innerHTML = "";          																  
			}     
		}
    }    
}

function ShowAnswer(QusId)
{
	if(document.getElementById("Q"+QusId).style.display=='none')
	{
		document.getElementById("Q"+QusId).style.display='';
		Status=1;
	}
	else
	{
		document.getElementById("Q"+QusId).style.display='none';
		Status=0;
	}
}
