There's an example in the Custom_JS_Lite subform of the iNotes Extension file. If you are unfamiliar with using the iNotes extension form, you will need to read up on it and there are not a lot of resources. Probably best to start at the iNotes Customization Wiki (google it, you'll find it).