Hi,
meinst du das hier:
<html>
<head>
<script language="JavaScript">
function pruefung(string){
document.all.txt2.disabled = (string.length > 0) ? false : true;
}
</script>
</head>
<body>
<input type="Text" onchange="pruefung(this.value)">
<input type="Text" id="txt2" disabled>
</body>
</html>