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;
}

function cargarContenido(){
	var suscripcion, sus, contenedor;
	
	contenedor = document.getElementById('div_suscrip');
	suscripcion = document.getElementById('suscripcion').value;
	sus = document.getElementById('sus').value;
	ajax=nuevoAjax();
	ajax.open("POST", "./scriptes/save_suscripcion.php",true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==1) { // si el estado es 1, quiere decir que está cargando el contenido
             contenedor.innerHTML="<div class=ver11 align=center><img src=./img/loaders.gif></div>";
		}else if (ajax.readyState==4) {
			contenedor.innerHTML = ajax.responseText
	 	}
	}
	ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	ajax.send("suscripcion="+suscripcion+"&sus="+sus)
}