	function loadAreas(gameId,gameNamespace,gameName) {
	 	jQuery("#popuplayer1").hide();
	 	jQuery("#popuplayer_a").hide();
	    jQuery("#gameIdForSearch").val(gameId);
	    jQuery("#gameNamespaceForSearch").val(gameNamespace);
		jQuery("#gameNameForSearch").val(gameName);
		jQuery("#areaNameForSearch").val("请选择区");
		jQuery("#gscNameForSearch").val("请选择服务器");
		jQuery("#popListWrap3").text("");
		jQuery("#popListWrap_c").text("");
	 	jQuery("#popListWrap2").load("loadAreasForV3.html_AJAX",{gameId:gameId},function(){
			$("#popListWrap_b").html($("#popListWrap2").html());
		});
	 	jQuery("#itemTypeLayer").load("loadItemTypesForV3.html_AJAX",{gameId:gameId});
	}
	function loadGscsWithoutAreas(gameId,gameNamespace,gameName) {
	 	jQuery("#popuplayer1").hide();
	 	jQuery("#popuplayer_a").hide();
		jQuery("#gameIdForSearch").val(gameId);
		jQuery("#gameNamespaceForSearch").val(gameNamespace);
		jQuery("#gameNameForSearch").val(gameName);
		jQuery("#areaNameForSearch").val("请选择区");
		jQuery("#gscNameForSearch").val("请选择服务器");
		jQuery("#popListWrap2").html("该游戏没有区可供选择，请直接选择服务器！");
		jQuery("#popListWrap_b").html("该游戏没有区可供选择，请直接选择服务器！");
	 	jQuery("#popListWrap3").load("loadGscsWithoutAreasForV3.html_AJAX",{gameId:gameId},function(){
			$("#popListWrap_c").html($("#popListWrap3").html());
		});
	 	jQuery("#itemTypeLayer").load("loadItemTypesForV3.html_AJAX",{gameId:gameId});
	}
	function loadGscs(areaId, areaName) {
	 	jQuery("#popuplayer2").hide();
	 	jQuery("#popuplayer_b").hide();
		jQuery("#areaNameForSearch").val(areaName);
		jQuery("#gscNameForSearch").val("请选择服务器");
	 	jQuery("#popListWrap3").load("loadGscsForV3.html_AJAX",{areaId:areaId},function(){
			$("#popListWrap_c").html($("#popListWrap3").html());
		});
	}
	function changeGscValue(gscId,gscName) {
	 	jQuery("#popuplayer3").hide();
	 	jQuery("#popuplayer_c").hide();
		jQuery("#gameServerIdForSearch").val(gscId);
		jQuery("#gscNameForSearch").val(gscName);
	}
	function validateSearchInput() {
		var gameName = jQuery("#gameNameForSearch").val();
		var gameService = jQuery("#gscNameForSearch").val();
		if((gameName == null) || (gameName == "请选择游戏")){
			jQuery("#searchWarnning").html("<strong>请选择游戏！</strong>");
			jQuery("#popupAlert").jqmShow();
			return;
		}else if((gameService == null) || (gameService == "请选择服务器")){
			jQuery("#searchWarnning").html("<strong>请选择服务器！</strong>");
			jQuery("#popupAlert").jqmShow();
			return;
		}
		document.forms.searchForm.action="/buy"+jQuery("#gameNamespaceForSearch").val()+"searchItemsForSale.html";
		jQuery("#searchForm").submit();
	}
	function showGameListDiv(){
		jQuery("#popuplayer1").show();
	}
	function showAreaListDiv(){
		jQuery("#popuplayer2").show();
	}
	function showGscListDiv(){
		jQuery("#popuplayer3").show();
	}
	function showGameListDiv_a(){
		jQuery("#popuplayer_a").show();
	}
	function showAreaListDiv_b(){
		jQuery("#popuplayer_b").show();
	}
	function showGscListDiv_c(){
		jQuery("#popuplayer_c").show();
	}
