function getXMLHTTPRequest()
{
var req = false;
try
  {
    req = new XMLHttpRequest(); /* p.e. Firefox */
  }
catch(err1)
  {
  try
    {
     req = new ActiveXObject("Msxml2.XMLHTTP");
  /* algunas versiones IE */
    }
  catch(err2)
    {
    try
      {
       req = new ActiveXObject("Microsoft.XMLHTTP");
  /* algunas versiones IE */
      }
      catch(err3)
        {
         req = false;
        }
    }
  }
return req;
}

var mipeticion = getXMLHTTPRequest();


// botones de software
function contenidodinamico(url) {
mipeticion.open("GET", url, true);
mipeticion.onreadystatechange = respuestamicontenido;
mipeticion.send(null);
}

function respuestamicontenido() {
if(mipeticion.readyState == 4) {
if(mipeticion.status == 200) {
 var miRelleno = mipeticion.responseText;
				document.getElementById('conte').innerHTML = (miRelleno);
			} else {
		document.getElementById('conte').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}






var miok = getXMLHTTPRequest();

function publicidad() {
	var url = "publiaviso.php";
miok.open("GET", url, true);
miok.onreadystatechange = respuestaPubli;
miok.send(null);
}

function respuestaPubli() {
if(miok.readyState == 4) {
if(miok.status == 200) {
 var PubliRelleno = miok.responseText;
				document.getElementById('conte').innerHTML = (PubliRelleno);
			} else {
		document.getElementById('conte').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}