var xmlhttp = new Array()
var i = 0

function loadThis(url, destination) {
	var mytime = new Date();
	var myjoin = '?';
	if (url.indexOf('?')!=-1) {
		myjoin = '&';	
	}
	xmlhttp[i]=null
	if (window.XMLHttpRequest) {
		xmlhttp[i] = new XMLHttpRequest()
	} else if (window.ActiveXObject) {
		xmlhttp[i] = new ActiveXObject("Microsoft.XMLHTTP")
	}
    
	if (xmlhttp[i]!=null) {
		xmlhttp[i].onreadystatechange=new Function("loaded("+i+",'"+destination+"')")
		xmlhttp[i].open("GET",url+myjoin+mytime,true)
		xmlhttp[i].send(null)
	} else {
		alert("Your browser does not support AJAX")
	}
	i=i+1
}

function loaded(b,destination) {
	if (xmlhttp[b].readyState==4) {
		if (xmlhttp[b].status==200) {
			document.getElementById(destination).innerHTML = xmlhttp[b].responseText
		} else {
			alert("Problem retrieving data")
			alert(xmlhttp[b].status)
		}
	}
}
