//创建对象
function createXMLHttps()
{
    var ret = null;
    try {
        ret = new ActiveXObject('Msxml2.XMLHTTP');
    }
    catch (e) {
        try {
            ret = new ActiveXObject('Microsoft.XMLHTTP');
        }
        catch (ee) {
            ret = null;
        }
    }
    if (!ret && typeof XMLHttpRequest != 'undefined')
        ret = new XMLHttpRequest();
    return ret;
}


function ajax(URL,DIVID)
{ 
var DIVID=document.getElementById(DIVID);
if(DIVID)
{   
	jiazai = 'yes';
	DIVID.display='';
    DIVID.innerHTML = '<img border=0 src=/img/loading.gif> 正在加载，请稍等……'
	var xmlhttp = createXMLHttps();
	xmlhttp.open("GET",URL,true);
	xmlhttp.onreadystatechange = function()
	{
		//alert(xmlhttp.responseText);
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
		{
			DIVID.innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.send(null);
}
}