function News(title,href,text,cssClass,target){
	this.title = title;
	this.href = (href)?('href="'+href+'"'):'';
	this.text = (text)?text:"";
	this.cssClass = (cssClass)?('class="'+cssClass+'"'):'';
	this.target = (target)?' target="'+target+'"':'';
}

News.prototype.toHtml = function(){
	var start = (this.cssClass!="")?('<p '+this.cssClass+'>'):'<p>';
	var end = (this.text!="")?('<br>'+this.text+'</p>'):'</p>';
	var header = "";
	if(this.href!=""){
		header = '<a '
				 + this.href
				 + this.target
				 + '>'
				 + this.title
				 + '</a>';
	}
	else header = '<b>'+this.title+'</b>';
	return start+header+end;
}
