function InfoNewRelease() {
	this.listCount = 0;
	this.headline = null;
	this.startPublishing = null;
	this.startPublishingNumber = null;
	this.endPublishing = null;
	this.endPublishingNumber = null;
	this.modified = null;
	this.init = function(xml) {
		this.listCount = xml.getElementsByTagName('datainfo').length;
		this.headline = new Array();
		this.startPublishing = new Array();
		this.startPublishingNumber = new Array();
		this.endPublishing = new Array();
		this.endPublishingNumber = new Array();
		this.modified = new Array();

		var dataList = xml.getElementsByTagName('datainfo');
		for (i = 0; i < this.listCount; i++) {
			this.headline[i] = "";
			this.startPublishing[i] = "";
			this.startPublishingNumber[i] = "";
			this.endPublishing[i] = "";
			this.endPublishingNumber[i] = "";
			this.modified[i] = "";
			for (j = 0; j < dataList[i].childNodes.length; j++) {
				var child = dataList[i].childNodes[j];
				if (child.tagName == 'headline') {
					if(child.firstChild) {
						this.headline[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'startpublishing') {
					if(child.firstChild) {
						var sp = child.firstChild.nodeValue;
						this.startPublishing[i] = sp;
						var spArray = new Array();
						spArray = sp.split("/");
						this.startPublishingNumber[i] = spArray.join("");
					}
				}
				if (child.tagName == 'endpublishing') {
					if(child.firstChild) {
						var ep = child.firstChild.nodeValue;
						this.endPublishing[i] = ep;
						var epArray = new Array();
						epArray = ep.split("/");
						this.endPublishingNumber[i] = epArray.join("");
					}
				}
				if (child.tagName == 'modified') {
					if(child.firstChild) {
						this.modified[i] = child.firstChild.nodeValue;
					}
				}
			}
		}

	}
	
	this.getListCount = function() {
		return this.listCount;
	}
	this.getHeadline = function() {
		return this.headline;
	}
	this.getStartPublishing = function() {
		return this.startPublishing;
	}
	this.getStartPublishingNumber = function() {
		return this.startPublishingNumber;
	}
	this.getEndPublishing = function() {
		return this.endPublishing;
	}
	this.getEndPublishingNumber = function() {
		return this.endPublishingNumber;
	}
	this.getModified = function() {
		return this.modified;
	}
}

