function writeInnerHTML(tagId,target){ 
if (!target) target = this; 
var htmldoc = tagId.innerHTML.replace(/\&lt;/g,'<').replace(/\&gt;/g,'>'); 
target.document.write(htmldoc); 
}
