function ajaxFunction(obj, func, param) {
	document.getElementById(obj).innerHTML = '';
	r = Math.round(Math.random()*1000000);
	if (window.XMLHttpRequest) {
		xmlhttp=new XMLHttpRequest();
	} else {
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.open("GET","ajax.asp?function="+func+"&"+param+"&r="+r,false);
	xmlhttp.onreadystatechange = function() {
		if(xmlhttp.readyState == 4) {
			document.getElementById(obj).innerHTML = xmlhttp.responseText;

		}
	}
	xmlhttp.send(null);
}