function changeContent(id,shtml) {
   if (document.getElementById || document.all) {
      var el = document.getElementById? document.getElementById(id): document.all[id];
      if (el && typeof el.innerHTML != "undefined") el.innerHTML = shtml;
   }
}

var msg1 = '<span style="color:navy; font-style:italic">Just as with the other writing to layers examples, the content can be anything you like, including images and other html tags. If the element is inline, surrounding elements will reflow to accommodate the new content.</span>';