document.getElementById("fName").style.borderColor="#FF0000"
function fName_Changed(fName) { fName.style.borderColor = (fName.value != 'correct text') ? "#FF0000"; : fName.style.borderColor=""; }