//创建对象
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)
	{
		var xmlhttp = createXMLHttps();
		xmlhttp.open("GET",URL,true);
		xmlhttp.onreadystatechange = function()
		{
			if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
			{
				DIVID.innerHTML = "点击数：" + xmlhttp.responseText ;
				//alert(xmlhttp.responseText)
			}
		}
		xmlhttp.send(null);
	}
}