
function Tag( tagName ){
	this._tagName = tagName;
	
	this.setContent = function( content ){
		this._content = content;
	}
	
	this.getOp = function(){
		var opStr = '<'+this._tagName;
		for(  var i  in  this  ){
			if(  i.substr(0,1)=="_"  ||  i=="getOp"  ||  i=="setContent"  )   continue;
			opStr  +=  ' '+i+'="'+this[i]+'"';
		}
		if( this._content ){
			opStr += '>'+this.content+'</'+this._tagName+'>';
		} else {
			opStr += '/>';
		}
		return  opStr;
	}
}


