i have this at the top of my php file

Code:
<script language="JavaScript">
	document.form1.txt_Username.disable = true;
</script>
doesnt disable the field though. any ideas why?