I'm not sure what to do with this: function foo(formElementName) { document.myForm.formElementName.value = "foo"; } this won't work. How do I pass an argument into a form object? Dave