﻿// JScript 文件
function GetInfo(id,memberLevel,price){
        //alert("team"+id+"price"+memberLevel);
        //document.getElementById("team"+id).innerHTML=id;
        //return;
        if(confirm("1.金牌会员查看所有专家竞猜免费\n\r2.VIP会员查看除中体专家外的所有专家竞猜免费\n\r3.重复查看专家竞猜免费\n\r\n\r确定支付查看费用 "+price+" Q币！"))
        {
        var xmlHttpReq = null;
        if (window.XMLHttpRequest){
            xmlHttpReq = new XMLHttpRequest();
        }
        else if (window.ActiveXObject){
            xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
                                            
        }
        if(xmlHttpReq != null){
            xmlHttpReq.open("get","viewGuess.aspx?Betid="+id+"&MemberLevel="+memberLevel+"",true);
                                          
            xmlHttpReq.onreadystatechange=RequestCallBack; //设置回调函数

            xmlHttpReq.send(null);
        }
        function RequestCallBack(){
            if(xmlHttpReq.readyState == 4)
            {
                if(xmlHttpReq.responseText=="nologin")
                {
                    alert("仅注册用户并登录后才能查看！");
                    return;
                }
                if(xmlHttpReq.responseText=="nomoney")
                {
                    alert("您的余额不够支付查看费用！");
                    return;
                }
                document.getElementById("team"+id).innerHTML = xmlHttpReq.responseText;
                getMemberInfo();
            }
        }
        }
    }

