Controlling form behavior using JScript