// JavaScript Document

    function replaceImage (divId, imgUrl)
    {
    var loc = document.getElementById(divId);
     if (!loc) {
        alert("no loc!");
    }
    loc.innerHTML="<img src='"+imgUrl+"'  />";
    }
