Javascript reference a form, change action url, then http get
<p>In javascript, how to reference a form, change action url, then http get.</p>

<p>for example: 
if the input string starts with %</p>

<p>then i want to be able to change the form action to = UrlOne</p>

<p>if input string starts with "@"</p>

<p>form action = UrlTwo</p>

<p>etc.. </p>
