﻿function googlemath(id)
{
    dealActsgg("/city/google.Aspx?ID="+id+"&"+Math.random());
}

// JScript 文件

var xmlHttpgg;
function createXMLHttpRequestsgg()
{ //创建一个xmlHttpRequest对象
    
    try{ xmlHttpgg = new ActiveXObject("Msxml2.XMLHTTP"); }
    catch(e)
    {
        try{ xmlHttpgg = new ActiveXObject("Microsoft.XMLHTTP"); }
        catch(e){ xmlHttpgg = null; }    
    }
    if( !xmlHttpgg && (typeof XMLHttpRequest != "undefined") )
        xmlHttpgg = new XMLHttpRequest();

    
    
}
function dealActsgg(url)
{       
    document.getElementById("googleMath").innerHTML = "Google地图加载中...";
    createXMLHttpRequestsgg();
    
   // xmlHttp.setRequestHeader("If-Modified-Since","0");
   // xmlHttp.setRequestHeader("Cache-Control","no-cache");
   
    xmlHttpgg.onreadystatechange = handleStateChangesgg; //请求状态改变事件触发handleStateChange功能
    xmlHttpgg.open("GET",url); //采用get方法提交数据
    xmlHttpgg.send(null);
      
}
function handleStateChangesgg(){
    if(xmlHttpgg.readyState == 4){    //表示请求状态 4为完成
            if(xmlHttpgg.status == 200){ //http状态指示码，200表示ok                             
                   var str = xmlHttpgg.responseText;                   
                   document.getElementById("googleMath").innerHTML = str;                  
                   
                }
        }        
}
