function writeApplet(id,html)
{
    var ctl = document.getElementById(id);
    ctl.innerHTML = html;
}

