function Load(url){
var seccion = false
if (window.XMLHttpRequest) {
seccion = new XMLHttpRequest()
} else if (window.ActiveXObject){
try {
seccion = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
seccion = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
seccion.onreadystatechange=function(){
cargar(seccion,url)
}
seccion.open('GET', "seccion."+url+".php", true)
seccion.send(null)
}
function cargar(seccion,url){
var contenido, encabezado;
contenido = document.getElementById('certeroscontenido');
encabezado = document.getElementById('encabezado');
if(seccion.readyState==1){
contenido.innerHTML = '

Cargando...

Cargando...
';
}else if(p.readyState==4){
if(p.status==200 || window.location.href.indexOf("http")==-1){
contenido.innerHTML = p.responseText;
var link=document.createElement("script");
link.src="Scripts/AjaxGlobal.php";
link.type="text/javascript";
document.getElementsByTagName("HTML")[0].getElementsByTagName("HEAD")[0].appendChild(link);
}else if(p.status==404){
contenido.innerHTML = 'No existe la página.
'; }else{ contenido.innerHTML = 'Se ha presentado un error interno, por favor intenta nuevamente actualizando Certeros o entrando a otra sección.
'; } } }