   var httpReq = false;
  if (window.XMLHttpRequest) {
	httpReq = new XMLHttpRequest();
	//alert('No es Explorer');
	if (httpReq.overrideMimeType) {
                        httpReq.overrideMimeType('text/xml');
                    }
	
  }
  else
//  if(window.ActiveXObject)
  {
    try
    {
	  httpReq = new ActiveXObject('MSXML2.XMLHTTP');
	//  alert('Es Explorer y admite el ActiveX mas groso');
    }
	catch (e)
	{
		try
    	{
      		httpReq = new ActiveXObject('Microsoft.XMLHTTP');
	  		//alert('Es Explorer y admite el ActiveX mas pedorro');
		}
		
	catch(e) {}
	}

  }
  if(!httpReq)
  {
   alert('no funciona');
  }
  
  
  


function buscajax(nombrePag)
{

	mic = document.getElementById('lalala');
	mic.innerHTML = '<p>Cargando...</p>';
	
	if (/rv[\:\s](\d \.\d )/.test(navigator.userAgent)){
 ffversion=new Number(RegExp.$1);
 if (ffversion>=3.1) {
 httpReq.open('GET',nombrePag,true);
 evalScripts: true
 }
 else {
 httpReq.open('GET',nombrePag,true);
 evalScripts: true
 }
 
} else {httpReq.open('GET',nombrePag,true);}	
	
	httpReq.onreadystatechange = showres;
	httpReq.send(null);
}

function showres()
{

if (httpReq.readyState == 4)
	{
		if (httpReq.status != 200)
		{
			document.getElementById('lalala').innerHTML = '<p>Error, try again (Error'+httpReq.status+', '+httpReq.statustext+')</p>';
		}
		else
		{
			document.getElementById('lalala').innerHTML = httpReq.responseText;
		}
		//alert(httpReq.responseText);
	}
}	


function buscajaxSus(nombrePag)
{

	mic = document.getElementById('suscr');
	mic.innerHTML = '<p>Cargando...</p>';
	
	if (/rv[\:\s](\d \.\d )/.test(navigator.userAgent)){
 ffversion=new Number(RegExp.$1);
 if (ffversion>=3.1) {
 httpReq.open('GET',nombrePag,true);
 }
 else {
 httpReq.open('GET',nombrePag,true);
 }
 
} else {httpReq.open('GET',nombrePag,true);}	
	
	httpReq.send(null);
	httpReq.onreadystatechange = showresSus;
}

function showresSus()
{

if (httpReq.readyState == 4)
	{
		if (httpReq.status != 200)
		{
			document.getElementById('suscr').innerHTML = '<p>Error, try again (Error'+httpReq.status+', '+httpReq.statustext+')</p>';
		}
		else
		{
			document.getElementById('suscr').innerHTML = httpReq.responseText;
		}
		//alert(httpReq.responseText);
	}
}	


           
