// <?

function clasJax(){
	var $this																	= null;
	var $conexion																= null;
	var $sAction																= arguments[0];
	var $sHold																	= arguments[1];

	// CONSTRUCTOR, EL HASH ES EL IDENTIFICADOR THIS, AFANADISIMO DE hyt_scrolling.js
		this.init = function(){
			$this																= "$"+this.hash();
			eval($this+" = this");
		}

	// GENERA UN HASH, AFANADISIMO DE hyt_scrolling.js
		this.hash = function() {
			var $eNow															= new Date();
			return "_"+$eNow.getTime();
		}

	// ENVIA A RelTab.php EN files/sys/ PASANDOLE LO MANDADO
		this.AJAXLister = function(params){
			$conexion															= this.crearXMLHttpRequest();
			$conexion.onreadystatechange										= this.procesar;
			$conexion.open("GET", $sAction+"?"+params, true);
			$conexion.send(null);
		}

	// LE PREUNTA A LA CONECCION SI RelTab.php TERMINO DE PROCESAR
		this.procesar = function(){
			var detalles														= document.getElementById($sHold);
			if($conexion.readyState == 4){
				detalles.innerHTML												= $conexion.responseText;
			}else{
				detalles.innerHTML												= 'Cargando...';
			}
		}

	// CREA LA CONECCION - XMLHttpRequest
		this.crearXMLHttpRequest												= function(){
			var xmlHttp															= null;
			if (window.ActiveXObject){
				xmlHttp															= new ActiveXObject("Microsoft.XMLHTTP");
			}else if (window.XMLHttpRequest){
				xmlHttp															= new XMLHttpRequest();
			}
			return xmlHttp;
		}

	// INICIALIZACION
		this.init();
}