function showText(text) { if (text!='') { header = '
'+text+'
'; } else { header = ''; } if (document.layers) { document.txtContainer.document.open(); } if (document.all && !document.getElementById) { document.all("txtContainer").innerHTML = header; } else if (document.getElementById) { document.getElementById("txtContainer").innerHTML = header; } else if (document.layers) { document.layers["txtContainer"].document.write(header); document.layers["txtContainer"].document.close(); } }