function c_XML (){
	this.load = function(xml){
		if (document.implementation && document.implementation.createDocument) {
			this.xmlDoc = document.implementation.createDocument("", "", null);
			//this.xmlDoc.onload = createTable;
		}
		else if (window.ActiveXObject) {
			this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
			this.xmlDoc.onreadystatechange = function () {
				//if (this.xmlDoc.readyState == 4) createTable()
			};
	 	}
		else {
			alert('Your browser can\'t handle this script');
			return;
		}
		
		this.xmlDoc.load(xml);
	}
	
	this.GetNode = function (label) {
		
		x = this.xmlDoc.getElementsByTagName( this.getDSModulo() );
		
		for (j=0;j<x[0].childNodes.length;j++) {
			var idiomas = x[0].childNodes[j];
			if (idiomas.nodeName == this.getDSIdioma()) {
				for (i=0;i<idiomas.childNodes.length;i++) {
					if (idiomas.childNodes[i].getAttribute("id") == label)
						return idiomas.childNodes[i].firstChild.nodeValue;
				}
			}
		}
	}
	
	this.getDSIdioma = function () { return this.ds_idioma; }
	this.setDSIdioma = function (value) { this.ds_idioma = value; }
	
	this.getDSModulo = function () { return this.ds_modulo; }
	this.setDSModulo = function (value) { this.ds_modulo = value; }
}

classXML = new c_XML();