
function nuevoAjax(){
	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;
}

var xmlhttp=nuevoAjax();

// ------------------------------------------------------------------------------------------------------------------- PRECIO TODOS
function LoadPrices(destino){
	document.getElementById("precioA").innerHTML = "48 &euro;";
	document.getElementById("precioB").innerHTML = "128 &euro;";
	document.getElementById("precioC").innerHTML = "208 &euro;";
	document.getElementById("sub_me_de").style.display="block";
/*
	parametros = "tipo=todos&destino="+destino;
		
	cadena = "cron_precio.php";
	xmlhttp.open("POST",cadena,true);
	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Content-length", parametros.length);
	xmlhttp.setRequestHeader("Connection", "close");
	xmlhttp.onreadystatechange=loadprecio_llego;
	xmlhttp.send(parametros);
*/
}

function LoadPricesDos(destino){

	document.getElementById("sub_me_de").style.display="block";
	document.getElementById("precioA").innerHTML = "48 &euro;";
	document.getElementById("precioB").innerHTML = "128 &euro;";
	document.getElementById("precioC").innerHTML = "208 &euro;";
	
	document.getElementById("precioAH").innerHTML = "48 &euro;";
	document.getElementById("precioBH").innerHTML = "128 &euro;";
	document.getElementById("precioCH").innerHTML = "208 &euro;";
	document.getElementById("precioAH").style.display="block";
	document.getElementById("precioBH").style.display="block";
	document.getElementById("precioCH").style.display="block";

}

