Can I insert this JavaScript into a form?