  
function changeText( div2show, text ) {
    // Detect Browser
   var IE = (document.all) ? 1 : 0;
    var DOM = 0; 
    if (parseInt(navigator.appVersion) >=5) {DOM=1};

    // Grab the content from the requested "div" and show it in the "container"
    if (DOM) {
        var viewer = document.getElementById(div2show);
        viewer.innerHTML = text;
        //alert(text);
    }  else if(IE) {
        document.all[div2show].innerHTML = text;
    }
}