<!--
//XMLHttpRequest 
    var xmlhttp = false;
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e2) {
            xmlhttp = false;
        }
    }
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        xmlhttp = new XMLHttpRequest();
    }
	
    function Ajax(gameid,currencyid,chars){    
        xmlhttp.open("GET","server.asp?game_id=" + gameid + "&currency_id="+ currencyid + "&chars=" + chars + "&dt=" + new Date().getTime(),true);
        xmlhttp.send('');
    
        xmlhttp.onreadystatechange=function(){
            if (4==xmlhttp.readyState){
                if (200==xmlhttp.status){
                    document.getElementById("gamediv").innerHTML=xmlhttp.responseText;
                }else{
                    alert("error!!!");
                }
            }
        }
	}
    function loadGame(gid,cid,cc){
            //Ajax验证开始			
			document.getElementById("gamediv").innerHTML="<img src='images/loading.gif' height=20>&nbsp;&nbsp;Loading...";			
            Ajax(gid,cid,cc);
			}


    function Ajax1(gameid,currencyid,chars){    
        xmlhttp.open("GET","tjserver_ajaxof.asp?game_id=" + gameid + "&currency_id="+ currencyid + "&chars=" + chars + "&dt=" + new Date().getTime(),true);
        xmlhttp.send('');
    
        xmlhttp.onreadystatechange=function(){
            if (4==xmlhttp.readyState){
                if (200==xmlhttp.status){
                    document.getElementById("gamediv").innerHTML=xmlhttp.responseText;
                }else{
                    alert("error!");
                }
            }
        }
	}
    function loadGame1(gid,cid,cc){
            //Ajax验证开始			
			document.getElementById("gamediv").innerHTML="<img src='images/loading.gif' height=20>&nbsp;&nbsp;Loading...";			
            Ajax1(gid,cid,cc);
			}
			
			
    function Ajax2(gameid,currencyid,chars){    
        xmlhttp.open("GET","tjserver_ajaxmf.asp?game_id=" + gameid + "&currency_id="+ currencyid + "&chars=" + chars + "&dt=" + new Date().getTime(),true);
        xmlhttp.send('');
    
        xmlhttp.onreadystatechange=function(){
            if (4==xmlhttp.readyState){
                if (200==xmlhttp.status){
                    document.getElementById("div1").innerHTML=xmlhttp.responseText;
                }else{
                    alert("error!");
                }
            }
        }
	}
    function loadGame2(gid,cid,cc){
            //Ajax验证开始			
			document.getElementById("div1").innerHTML="<img src='images/loading.gif' height=20>&nbsp;&nbsp;Loading...";			
            Ajax2(gid,cid,cc);
			}

//-->