function showError() { if ( document.all && document.all["errorLabel"] ) { document.all["errorLabel"].style.color = "red"; } else { errorTD = document.getElementById("errorLabel"); errorTD.style.color = "red"; } } function hideError() { if ( document.all && document.all["errorLabel"] ) { document.all["errorLabel"].style.color = "white"; } else { errorTD = document.getElementById("errorLabel"); errorTD.style.color = "white"; } }