
	function AJAX()
	{
		this.xml = null;
		
		if(window.XMLHttpRequest) 
		{
			this.xml = new XMLHttpRequest();
		}
		else if(window.ActiveXObject) 
		{
			this.xml = new ActiveXObject('Microsoft.XMLHTTP');
		}
		else 
		{
			window.alert('Your browser does not support AJAX');
			return;
		}
	}
	
	AJAX.prototype.load = function(file)
	{
		this.xml.open('GET', file, true);
		this.xml.send(file);
	}
	
	AJAX.prototype.result = function(cont)
	{
		var self = this;

		this.xml.onreadystatechange = function() 
		{
			if(self.xml.readyState == 4 || self.xml.status == 200) 
			{
				document.getElementById(cont).innerHTML = self.xml.responseText;
			}
		}
	}
	
