function jb()
         {
            var A=null; 
               try 
               { 
                   A=new ActiveXObject("Msxml2.XMLHTTP"); 
                } 
            catch(e)
            { 
                  try 
                   { 
                      A=new ActiveXObject("Microsoft.XMLHTTP"); 
                   }
             catch(oc)
            { 
                     A=null 
                   } 
              } 
           if ( !A && typeof XMLHttpRequest != "undefined" ) 
            { 
               A=new XMLHttpRequest() 
             } 
           return A 
         }
function getAnliByCity(city, lbl_id )
{
	
    if(city!="")
    {    document.getElementById( lbl_id ).innerHTML =  'loding...';
			    document.getElementById( 'demo2' ).innerHTML = '';
        var weburl = "/ajax/getAnliByCity.aspx?city=" +encodeURI(city);
        var xmlhttp = jb();
        xmlhttp.open("get",weburl,true);
        

        var result = '';
        xmlhttp.onreadystatechange=function()
        {
		    //4代表成功返回数据
            if(xmlhttp.readyState==4)
            {
			    //得到服务器返回的数据
                result = xmlhttp.responseText;
			    document.getElementById( lbl_id ).innerHTML = result;
			    document.getElementById( 'demo2' ).innerHTML = result;
            }
        } 
        xmlhttp.send(null);
    }
    return true;
}

function getAnliByCountry2( country,lbl_id )
{

	 if(country!="")
    {    
document.getElementById( lbl_id ).innerHTML =  'loading...';
			    document.getElementById( 'demo2' ).innerHTML = '';
    var weburl = "/ajax/getAnliByCountry.aspx?country=" +encodeURI(country);
    var xmlhttp = jb();
    xmlhttp.open("get",weburl,true);    
    var result = '';

    xmlhttp.onreadystatechange=function()
    {
		//4代表成功返回数据
        if(xmlhttp.readyState==4)
        {
			//得到服务器返回的数据
            result = xmlhttp.responseText;
			document.getElementById( lbl_id ).innerHTML = result;
					document.getElementById('demo2').innerHTML = result;
        }
    } 
    xmlhttp.send(null);
    }
    return true;
}

function getAnliByCountry( country,lbl_id,country_id )
{
country_id.style.color='#CF1008';
var tabObj = country_id.parentNode.id;
 tabList=document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{  
   tabList[i].className = "hite1";      
} 
	 if(country!="")
    {    
    var weburl = "/ajax/getAnliByCountry.aspx?country=" +encodeURI(country);
    var xmlhttp = jb();
    xmlhttp.open("get",weburl,true);    
    var result = '';
    xmlhttp.onreadystatechange=function()
    {
		//4代表成功返回数据
        if(xmlhttp.readyState==4)
        {
			//得到服务器返回的数据
            result = xmlhttp.responseText;
			document.getElementById( lbl_id ).innerHTML = result;
					document.getElementById('demo2').innerHTML = result;
        }
    } 
    xmlhttp.send(null);
    }
    return true;
}
