var xmlhttp=false;
try {
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (E) {
		xmlhttp = false;
	}
}

if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	xmlhttp = new XMLHttpRequest();
}


function transporteAjax(url, nomeDiv){
	
	var theUrl = url;

	xmlhttp.open("GET", theUrl, true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			var rs = xmlhttp.responseText.replace(/\+/g," ");
			document.getElementById(nomeDiv).innerHTML = rs;
		}
	}
	xmlhttp.send(null);
}


