Help with web created documents

I need help with a problem I have met while I was trying to do this via web (authenticaded sessions):

1.-I need to create a document in a database accessed via HTTP Domino Server with a browser.

2.-Before submitting the document from the browser, I need to check if the UserName submitting the document is in some field of another document (previously created by me in Notes with another form).

I can’t figure a way to perform step 2… I know I must use JavaScript for sure, but I’m not an expert in JavaScript, so I need a little push with this…

Thanks in advance.

Subject: Help with web created documents

Create a webquerysave agent for your form and then you can use Lotusscript to validate against the field in the other document. I don’t know if it can be done in javascript.

Subject: RE: Help with web created documents

Thanks for your response… but I want to make it with JS.