var elem = document.getElementById("to_be_rewritten");
if (elem!=null) document.write(elem.innerHTML);