function CNews() {
	var GlobXml, GlobUrl, baseUrl = '_include/news.php?WNews=', Hm = 1, NHolder = '';
}
CNews.prototype.Render = function(typNews) {
	if (arguments.length >= 2) {
		if (arguments.length == 2) {
			this.Hm = arguments[1];
			this.NHolder = typNews;
		}
		if (arguments.length == 3) {
			this.Hm = arguments[1];
			this.NHolder = arguments[2];
		}
	}
	this.GlobXml = new Ajax();
	if (this.Hm > 1) {
		this.GlobUrl = '_include/news.php?WNews=' + typNews + '&Hm=' + this.Hm;
	} else {
		this.GlobUrl = '_include/news.php?WNews=' + typNews;
	}
	this.GlobXml.create();
	this.GlobXml.GetNews(this.GlobUrl, this.NHolder, function(Resp, NHolder) {
		document.getElementById(NHolder).innerHTML = Resp;
	});
};
CNews.prototype.Render_Content = function(locat_cate, CHolder) {
	this.GlobXml = new Ajax();
	this.GlobUrl = '_include/news_content.php?categories=' + locat_cate[0]
			+ '&id=' + locat_cate[1];
	this.NHolder = CHolder;
	this.GlobXml.create();
	this.GlobXml.GetNews(this.GlobUrl, this.NHolder, function(Resp, NHolder) {
		document.getElementById(NHolder).innerHTML = Resp;
	});
};
function Ajax() {
	var Xhr;
}
Ajax.prototype.create = function() {
	if (window.XMLHttpRequest) {
		this.Xhr = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		this.Xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
};
Ajax.prototype.GetNews = function(Url, NHolder, callback) {
	var $this = this;
	this.Xhr.open('GET', Url);
	this.Xhr.onreadystatechange = function() {
		if ($this.Xhr.readyState == 4) {
			callback($this.Xhr.responseText, NHolder);
		} else {
		}
	};
	this.Xhr.send(null);
};