This might work for you:
function labelFocus(textBox) {
var labelID = textBox.id.replace("txt","lbl");
var label = document.getElementById(labelID);
label.style.color = 'Blue';
}
Of course, you'll also need to store the last label object you touched so you can de-highlight it.
-
Peter