Problem onSubmit

Hello friends,

I have the following problem and I am breaking my head trying to solve it. I am pretty sure this is something simple, but I have spent enough time.

I have a form called $$ViewTemplate for FacePeople | FacePeople used on the web with one html text field.

When I click on the button, this is the URL generated by my code:

http://dpusso002.som1.nj.jpmorganchase.com/legal/experts.nsf/FacePeople?openview&startkey=Gross

When I hit the enter key, this is the URL generated:

http://dpusso002.som1.nj.jpmorganchase.com/Legal/experts.nsf/FacePeople?startkey=Gross

What’s missing? openview&

This form has an embedded view called Facebook\People.

Here are some of the code in the html

I am gathering some values when the form loads:

<!- This is the only text field in the form//–>

<img src=“/legal/experts.nsf/search.jpg?OpenImageResource”

onclick="key = window.document.jump.startkey.value.replace(/ /g, "+")

window.location = path + "FacePeople" + "?openview&startkey=" + key" alt=“”>

The code in the button and in the onSubmit is:

key = window.document.jump.startkey.value.replace(/ /g, “+”)

window.location = path + “FacePeople” + “?openview&startkey=” + key

Any help is greatly appreciated