Thanks, but would it be possible for you to provide me with the jscript for the actual new record button, so that I can add some conditions to it programatically, i'm using infopath 2003 and i am unable to include "actions" on the new record button ... the button has to check for duplicates and then run some script based on the result.