Change your code to... There is no need to check
first.value.length >= 1
as
keyup
Event is fired from that
TextBox
only.
It is working, tested at my end.
function SetButtonStatus(sender, target) {
if (sender.value.length >= 1)
document.getElementById(target).disabled = false;
else
document.getElementById(target).disabled = true;
}