function loadURLIntoDivAJAX(url, target) {
	document.getElementById(target).innerHTML = '';
	if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
	}
	if (req != undefined) {
		req.onreadystatechange = function() {loadURLIntoDivAJAXFinished(url, target);};
		req.open("GET", url, true);
		req.send("");
	}
}  

function loadURLIntoDivAJAXFinished(url, target) {
  if (req.readyState == 4) { // only if req is "loaded"
    if (req.status == 200) { // only if "OK"
      document.getElementById(target).innerHTML = req.responseText;
    } else {
      document.getElementById(target).innerHTML=" Load URL Error:\n"+ req.status + "\n" +req.statusText;
    }
  }
}

function loadURLIntoDiv(url, div) {
	loadURLIntoDivAJAX(url,div);
	return false;
}

