///////////AJAX///////////
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;
}
///////////CARGADOR IDIOMAS///////////
function onProgress2(e) {
 // var percentComplete = (e.position / e.totalSize)*100; //*
}

function onError2(e) {
  alert("Error " + e.target.status + " occurred while receiving the document.");
}
function onLoad2(req, funcion, funcionError) {
}
function onReady2(req, funcion, funcionError){			
			if (req.readyState == 4 && req.status==200) {				
				funcion(req);				
			} else{
				funcionError(req);
			}
}
//Inicio de la carga de idioma
function cargaDatos(metodo,url,modo,funcion,funcionError) {
	if (!funcionError) { funcionError=funcion; }
	var req = NuevoAjax();
	
	
	//req.onprogress = onProgress2;
	req.open(metodo, url, modo);
	//req.onload = onLoad2(req, funcion, funcionError);
	//req.onerror = onError2;
	//req.onreadystatechange = onReady2(req, funcion, funcionError);
	req.send(null);
	funcion(req);
}
////////

///////////TEXTO NO SELECCIONABLE///////////
/*var Unselectable = {

    enable : function(e) {
        var e = e ? e : window.event;

        if (e.button != 1) {
            if (e.target) {
                var targer = e.target;
            } else if (e.srcElement) {
                var targer = e.srcElement;
            }

            var targetTag = targer.tagName.toLowerCase();
            if ((targetTag != "input") && (targetTag != "textarea")) {
                return false;
            }
        }
    },

    disable : function () {
        return true;
    }

}

if (typeof(document.onselectstart) != "undefined") {
    document.onselectstart = Unselectable.enable;
} else {
    document.onmousedown = Unselectable.enable;
    document.onmouseup = Unselectable.disable;
}*/
/// esto demomento sobra..no lo uso
