// JavaScript Document

function getHTTPClient(){
	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();
	}
	return xmlhttp;
}

function cargarDatos(id){
	var contenedor;
 	contenedor = document.getElementById('Contenido');
	ajax = getHTTPClient();
	ajax.open("POST", "ajax.php?v=" + id, true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState == 4) {
			contenedor.innerHTML = ajax.responseText
	 	}
	}
	//ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	//ajax.send("t1="+pais+"&t2="+moneda)
	ajax.send(null);
}

function cargarDatos2(id){
	var contenedor;
 	contenedor = document.getElementById('Contenido2');
	ajax = getHTTPClient();
	ajax.open("POST", "ajax2.php?v=" + id, true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState == 4) {
			contenedor.innerHTML = ajax.responseText
	 	}
	}
	//ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	//ajax.send("t1="+pais+"&t2="+moneda)
	ajax.send(null);
}

function cargarDatos3(id){
	var contenedor;
 	contenedor = document.getElementById('Contenido3');
	ajax = getHTTPClient();
	ajax.open("POST", "ajax3.php?v=" + id, true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState == 4) {
			contenedor.innerHTML = ajax.responseText
	 	}
	}
	//ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	//ajax.send("t1="+pais+"&t2="+moneda)
	ajax.send(null);
}