﻿//index.axp,ScoreOver.aspx页面弹出窗口

function OpenPage(url) {
    window.open(url, "modifyrk", "height=450,width=750px,resizable=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no,directories=no,left=" + ((window.screen.availWidth - 10 - 750) / 2) + ",top=" + (window.screen.availHeight - 30 - 450) / 2);
}


//队伍盘口

function TeamPanlu_10(mID,gID,mTeamName,gTeamName) {
    //  var theURL = "http://data.city008.com/teamdetail.aspx?MatchID=" + ID + ".htm";
    var theURL = "http://data.city008.com/teamdetail.aspx?MasterID=" + mID + "&GuestID=" + gID;
    window.open(theURL, "", "width=835,height=700,top=10,left=100,resizable=yes,scrollbars=yes");
}
//盘口显示
function showgoallist(ID) {
    OpenWindow(null, "http://data.city008.com/ScoreDetail.aspx?matchid=" + ID + "&type=1", '体城网即时比分');
}

//分析
function Analysis(MatchID, mID, gID, mTeamName, gTeamName) {
    var theURL = "http://data.city008.com/detail.aspx?MatchID=" + MatchID + "&MasterID=" + mID + "&GuestID=" + gID;
    window.open(theURL);
}
//亚
function AsianOdds(ID) {
    var theURL = 'http://data.city008.com/OddsDetail.aspx?matchid=' + ID + '&type=0';
    window.open(theURL);
}
//欧
function EuropeOdds(ID) {
    var theURL = 'http://data.city008.com/OddsDetail.aspx?matchid=' + ID + '&type=1';
    window.open(theURL);
}
//大
function BigOdds(ID) {
    var theURL = 'http://data.city008.com/OddsDetail.aspx?matchid=' + ID + '&type=2';
    window.open(theURL);
}
//短信定制
function LiveSms(MatchID, Status, League, MasterTeam, GuestTeam) {
    //获取当前行
    var objCurrentRow = document.getElementById("tr1_" + MatchID);
    var intCurrentIndex = objCurrentRow.attributes["index"].value;
    var TempB = A[intCurrentIndex]
    if (TempB[13] == -1)
        alert("该场赛事已完场");
    else {
        var theURL = 'http://passport.city008.com/LivePopup.aspx?Status=' + TempB[13] + '&Matchid=' + MatchID + '&League=' + escape(League) + '&MasterTeam=' + escape(MasterTeam) + '&GuestTeam=' + escape(GuestTeam);
        OpenSmsWindow(null, theURL, '体城网即时比分');
    } 
}
//大
function Open(theURL) {
    window.open(theURL);
}
