function Ajax(args)
{
}
//-----   XMLHttpRequest -----------
Ajax.prototype.createXMLHttpRequest=function()
	{
		if (typeof XMLHttpRequest !='undefined')
		{
			this.request=new XMLHttpRequest();
			return;
		}
			
		//--------------------------------------
		if (!window.ActiveXObject)
			return false;//   XMLHttpRequest
	
		//--------------------------------------
		var version=['MSXML2.XMLHttp.6.0',
					'MSXML2.XMLHttp.5.0',
					'MSXML2.XMLHttp.4.0',
					'MSXML2.XMLHttp.3.0',
					'MSXML2.XMLHttp',
					'Microsoft.XMLHttp'];
					
		//--------------------------------------
		for (i=0; i<version.length; i++)
		{
			try
			{
				this.request=new ActiveXObject(version[i]);
				return;
			}
			catch(error) {}// 
		}
	
		//--------------------------------------
		return false;//   XMLHttpRequest
	}
	
	//-----   XMLHttpRequest -----------
	Ajax.prototype.start=function()
	{
		if (this.action==undefined ||
			this.onready==undefined)
			return false;
			
		//this.url='http://'+location.hostname+'/js_user/'+this.action;
		this.url=this.action;
		//alert(this.action);

		if (this.method==undefined)
			this.method='get';

		if (this.method=='get')
			this.url=encodeURI(this.url);
		
		if (this.asynch==undefined)
			this.asynch=true;

		with(this)
		{
			//-----------------------------------------------
			createXMLHttpRequest();
			//alert(request);
			//alert(onready);
			
			if (!request)
				return false;
				
			//-----------------------------------------------
			request.open(method,url,asynch);
			request.onreadystatechange=onready;
			if (method=='post')
				request.setRequestHeader('Content-Type','text/html; charset=windows-1251');
			/*else
				request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');*/
			
			/*for(var name in request)
				alert(name); */
			request.send(null);
		}
		//return request;
	}

