
function loadPage( lp_url, lp_id, lp_gif ) { 
	var xmlHttp;
	//alert("loadPage(' " + lp_url + "', '" + lp_id + "')");

	xmlHttp = null;
	if (window.XMLHttpRequest)		{ xmlHttp = new XMLHttpRequest(); }						// novos browsers
	else if (window.ActiveXObject)	{ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }	// IE5 and IE6
  
	if (xmlHttp == null) 			{ 
		alert ("O seu browser nao suporta AJAX!"); 
		return;
	} 

	xmlHttp.onreadystatechange = function(){
		if 		(xmlHttp.readyState == 1)	{ document.getElementById(lp_id).innerHTML = '<img src="' + lp_gif + '">'; }		
		else if (xmlHttp.readyState == 4) 	{
			if (xmlHttp.status == 200)			{ document.getElementById(lp_id).innerHTML = xmlHttp.responseText; }
			else								{ alert("Problema ao receber dados da aplicacao\n" + xmlHttp.status + "\n" + xmlHttp.statusText); }
		}		
	}
	xmlHttp.open("GET", lp_url, true);
	xmlHttp.send(null);
}