function objetoAjax(){
	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 formu_cliente(){
	//donde se mostrará el resultado
	divResultado_cliente = document.getElementById('form_cliente_div');

	//tomamos el valor del calmpo dom
	//id_admin_dominio=document.getElementById('id_admin_dominio').value;
    id_admin_dominio=1;
    
	//instanciamos el objetoAjax
	ajax=objetoAjax();
	//usamos el medoto POST
	//archivo que realizará la operacion
 	//datos_cliente.php
	ajax.open("POST", "form_cliente.php",true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {
			//mostrar resultados en esta capa
			divResultado_cliente.innerHTML = ajax.responseText
		}
	}
	ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	//enviando los valores
 ajax.send("id_admin_dominio="+id_admin_dominio)
}

var plan;

function planes_index(plan){
	//donde se mostrará el resultado
	divResultado_planes_index = document.getElementById('planes_index_div');

	//alert('plan en:'+plan);
	//instanciamos el objetoAjax
	ajax=objetoAjax();
	//usamos el medoto POST
	//archivo que realizará la operacion
	ajax.open("POST", "publicidad_ppal_2009_07.php?plan_index="+plan,true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {
			//mostrar resultados en esta capa
			divResultado_planes_index.innerHTML = ajax.responseText
		}
	}
	ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	//enviando los valores
 ajax.send()
}
