HtmlReplacer.prototype.myId;

function HtmlReplacer(idName){
	myId  = idName;
}

HtmlReplacer.prototype.replaceHTML = function (contenuto)
{
	var fld= document.getElementById(myId);    
	if (fld){
		fld.innerHTML = contenuto;
    } else {
		alert("HtmlReplacer.replace: id non definito: "+myId);
    }
}

