function gotoGame(path,formid,gameId,serverid,serverName){
			var accName = window.frames["LoginFrame"].document.getElementById('accName');
			var partnerId = window.frames["LoginFrame"].document.getElementById('partnerId');
			var uid=window.frames["LoginFrame"].document.getElementById('uid');
			if(accName==null || partnerId==null || uid ==null)
			{
				yxg.createPopupWin('','','errorsAlert','提示信息','game_1');
				return false;
			}
			return interfaceSend(path,formid,gameId,serverid,serverName,trim2(accName.innerHTML),trim2(partnerId.innerHTML),trim2(uid.innerHTML));
	}
function interfaceSend(path,formid,gameId,serverId,serverName,accName,partnerIdval,uidval){
			var ticket = getCookie("ticket");
			if(ticket == null || ticket == ""){
				alert("页面信息超时，请重新登录！");
				return false;
			}
			var forms = document.getElementById(formid);
			if(!forms) return false;
			var partnerId=forms[0];
			var uid=forms[1];
			var yxid=forms[2];
			yxid.value=ticket;
			uid.value=uidval;
			if(gameId == '12')partnerId.value = partnerIdval == ''? partnerId.value : partnerIdval;
			setServerIdCookie(gameId,serverId,serverName,accName);
	//		recordLogin(path,gameId,serverId);
//			alert('ok');
			forms.submit();
//			return true;
}
		function allGameServer_game(path,gameid){
		var accName = window.frames["LoginFrame"].document.getElementById('accName');
		var partnerId = window.frames["LoginFrame"].document.getElementById('partnerId');
		var uid=window.frames["LoginFrame"].document.getElementById('uid');
		if(null==accName || null==partnerId || null == uid) {yxg.createPopupWin('','','errorsAlert','提示信息','game_1');return;}
//		if(type!=null&&type==1){
//			get(path+'/game/gamelist.jhtml?type=1','errorsAlertCont',"showGameList()");
//		}
		get(path+'/game/gamelist.jhtml?gameId='+gameid,'errorsAlertCont',"showGameList_game()");
//		if(type!=null&&type==2){
//			get(path+'/game/gamelist.jhtml?type=2','errorsAlertCont',"showGameList()");			
//		}
//		if(type!=null&&type==3){
//			get(path+'/game/gamelist.jhtml?type=3','errorsAlertCont',"showGameList_game()");			
//		}
	}
	
		function showGameList_game(){
			yxg.createPopupWin('450','','errorsAlert','华山论剑服务器列表');
		}

