var elemento;
var http;

	function carregar(url,ele) {
			elemento=ele;
			http=null;
		
			if (window.XMLHttpRequest) {// code for Firefox, Opera, IE7, etc.
				http=new XMLHttpRequest();
		  	}else if (window.ActiveXObject) {// code for IE6, IE5
				http=new ActiveXObject("Microsoft.XMLHTTP");
			}
			if (http!=null) {
				http.onreadystatechange=state_Change;
				http.open("POST",url,true);
				http.send(null);
				//alert(url);
			}else {
				alert("O seu Broweser não suporta XMLHTTP.");
			}
		}
		
		function state_Change(){
			if (http.readyState==4){// 4 = "loaded"
				if (http.status==200){// 200 = "OK"
					document.getElementById(elemento).innerHTML=http.responseText;
					
				}else{
					//alert("Erro ao carregar:" + http.statusText);
				}
			}
		}
		
	