﻿// JScript 文件

function InitAjax()
{
    var http_request = false;

    if (window.XMLHttpRequest)
    {
        http_request = new XMLHttpRequest();
        if (http_request.overrideMimeType)
        {
            http_request.overrideMimeType('text/xml');
        }
    }
    else if (window.ActiveXObject)
    {
        try
        {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            try
            {
                http_request = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {}
        }
    }
    if (!http_request)
    {
        alert('Giving up :( Cannot create an XMLHTTP instance');
        return false;
    }
    return http_request;
}


   function UrlTrans()
    {
       
                var url = "AjaxUrlTransfer.aspx";
                var ajax = InitAjax();
                ajax.open("POST", url, true);
                ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                ajax.send(null);
//                ajax.onreadystatechange = function()
//                {
//                    if (ajax.readyState == 4 && ajax.status == 200)
//                    {
//                        var MoneyCount=procount*dianjuan;
//                        var namevalue = ajax.responseText;
//                        var splitvalue=namevalue.split("|");
//                        if(splitvalue[0]=="1")
//                        {
//                       // alert(MoneyCount);
//                            lblAmt.innerHTML ="合计点卷金额：<font color=red><span style='font-size:22px'>￥" + splitvalue[1] + "</span></font>";  
//                            
//                        }
//                        
//                     }
//                 }
   }
