
function getXMLHttp() {
var xmlhttp = null;
if (window.ActiveXObject) {
  if (navigator.userAgent.toLowerCase().indexOf("msie 5") != -1) {
  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } else {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  }
}
if (!xmlhttp && typeof(XMLHttpRequest) != 'undefined') {
  xmlhttp = new XMLHttpRequest()
}
return xmlhttp
}

function ref(param, url, t, prel) {
		eval("objHTTP"+t+" = getXMLHttp();")
		if(prel==1){document.getElementById(t).innerHTML = "<img src='/public/cont_img/loading.gif' border='0' vspace='0' hspace='0' width='22' height='22'>";}
		eval("objHTTP"+t+".open('GET', url+'?'+param+'&foo='+Math.round(10000000*Math.random()),true);")
		eval("objHTTP"+t+".onreadystatechange= function() {refresha(t, url)};")
		eval("objHTTP"+t+".send(param);")
}

function refresha(t, url) {
	eval("if (objHTTP"+t+".readyState==4) {document.getElementById(t).innerHTML = String(objHTTP"+t+".responseText);}")
}


