function GetSearchGame() {
	if (document.getElementById("GameListBox").style.display=="none") {
		document.getElementById("GameListBox").style.display = "";
		GetUnionCategory('ㄱ');
	} else {
		document.getElementById("GameListBox").style.display = "none";
	}
}

function GetUnionCategory(code) {
	ToggleLoadingBox("show",170,40,LANG["DownloadData"]);

	var InnerFunctionValue = new Array();
	var XML = GetHttpRequestXML(ENV["dir"]+"/live.xml","mode=getUnionCategoryDepth1&code="+code,"GetUnionCategoryInner",InnerFunctionValue);
}

function GetSelectGame(no,title) {
	document.getElementById("GameName").value = title;
	document.getElementById("GameNo").value = no;

	GetUnionCategoryDepth2("GameNo","GameServer","게임서버 선택안함");
	document.getElementById("GameListBox").style.display = "none";
}

function GetUnionCategoryInner(XML) {
	if (XML) {
		var root = XML.documentElement;
		var sHTML = '';
		var title;

		if (root.childNodes.length>0) {
			for (var i=0, totalList=root.childNodes.length;i<totalList;i++) {
				no = root.childNodes.item(i).getAttribute("no");
				title = root.childNodes.item(i).getAttribute("title");
				sHTML+= '<div class="pointer" onmouseover="this.style.background=\'#F4F4F4\';" onmouseout="this.style.background=\'#FFFFFF\';" onclick="GetSelectGame('+no+',\''+title+'\')">';
				sHTML+= '<div class="dotum f11" style="padding:3px 0px 2px 2px;">'+title+'</div>';
				sHTML+= '</div>';
				sHTML+= '<div style="height:1px; overflow:hidden;"><div style="border:1px dotted #CCCCCC;"></div></div>';
			}
		}

		document.getElementById("InqGameList").innerHTML = sHTML;
	}

	ToggleLoadingBox("hidden","","","");
}
