var xmlHttpSearchFAQ;		//AJAX°´Ã¼
var resultsSearchFAQ;		//¹Þ¾Æ¿À´Â ³»¿ë

//XMLHttpRequest °´Ã¼»ý¼º
function createXMLHttpRequestSearchFAQ() {
    if (window.ActiveXObject) {
        xmlHttpSearchFAQ = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttpSearchFAQ = new XMLHttpRequest();
    }
}

//Äõ¸®¿äÃ»
function startRequest_SearchFAQ(KeyWord) {
	createXMLHttpRequestSearchFAQ();
	xmlHttpSearchFAQ.onreadystatechange = FAQ_handle;  
	xmlHttpSearchFAQ.open("GET", "/common/Ajax/Ajax_FAQ_Search.asp?KeyWord="+ escape(KeyWord), true);  
	xmlHttpSearchFAQ.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=euc-kr');
	xmlHttpSearchFAQ.send(null);
}

//»óÇ°°Ë»ö
function FAQ_handle() {
    if(xmlHttpSearchFAQ.readyState == 4) {
        if(xmlHttpSearchFAQ.status == 200) {
			resultsSearchFAQ = xmlHttpSearchFAQ.responseText;
			document.getElementById("LayerList9").innerHTML=resultsSearchFAQ;
			document.getElementById('LayerFlg9').className='now';
			document.getElementById('LayerList9').style.display="block";
			for (i=1;i<9 ;i++ ){
				document.getElementById("LayerFlg"+i).className='';
				document.getElementById('LayerList'+i).style.display="none";
			}
        }
    }
}
