Not javascript, no. But you can write a java class that gets called either before the form loads or after the form is submitted.
For instance, your javaclass could populate the AD User ID based on the data in the form once its submitted but in the standard inteface I don't think you can run javascript.
Peter