// Documento JavaScript
// Esta función cargará las paginas
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 cargate(url){
var id_contenedor, preloader;
id_contenedor = document.getElementById('contenidos');
preloader = document.getElementById('preloader');
ajax=NuevoAjax();
ajax.open("GET", url,true);
ajax.onreadystatechange=function(){
	if(ajax.readyState==1){
		preloader.innerHTML = "Cargando...";
		//preloader.style.background = "url('imagen/ajax-loader.gif') no-repeat";
	}else if(ajax.readyState==4){
		if(ajax.status==200){
			id_contenedor.innerHTML = ajax.responseText;
			preloader.innerHTML = "";
			//preloader.style.background = "";
		}else if(ajax.status==404){
			preloader.innerHTML = "La p&aacute;gina no existe";
		}else{
			preloader.innerHTML = "Error:".ajax.status;
		}
	}
}
ajax.send(null);
}
function abrirFaq(){
				window.open('popup/dominios.html', 'PaginaPrincipal', config='height=652, width=840,screeny=0, scrollbars=no, menubar=no, toolbar=no, resizable=no, status=no, directories=no, location=no')
			}

function abrirlegal(){
				window.open('popup/informacion.html', 'PaginaPrincipal', config='height=652, width=380,screeny=0, scrollbars=yes, menubar=no, toolbar=no, resizable=no, status=no, directories=no, location=no')
			}

