﻿// JScript 文件

var xmlHttp;
    function CreateXml()
    {
        if(window.ActiveXObject)
        {
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            
        }
        else if(window.XmlHttpRequest)
        {
            xmlHttp=new XmlHttpRequest();
        }
    }


    function GroupBuy()
    {
        CreateXml();
        xmlHttp.open("GET","../ashx/groupbuy.ashx",true);  
        xmlHttp.onreadystatechange=GetGroupBuy;
        xmlHttp.send(null);
    }
    function GetGroupBuy()
    {
        if(xmlHttp.readyState==4)
        {
            if(xmlHttp.status==200)
            {
                document.getElementById("tb").innerHTML=xmlHttp.responseText;
            }
        }
    }

    
 