HTTPRequest = function () {
　var xmlhttp=null;
　try {
　　xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
　} catch (_e) {
　　try {
　　　xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
　　} catch (_E) { }
　}
　if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
　　try {
　　　xmlhttp = new XMLHttpRequest();
　　} catch (e) {
　　　xmlhttp = false;
　　}
　}
　return xmlhttp;
}

function getURL(url,divid) {
　var http = new HTTPRequest();
　http.open("GET",url,true);
　http.onreadystatechange = function (){ handleHttpResponse(http,divid)};
　http.send(null);
}

function handleHttpResponse(http,divid) {
　if (http.readyState == 4) {
　　result = http.responseText;
　　document.getElementById(divid).innerHTML=result;
　}
}