First Form:
<table width=780 border=0 align=center cellpadding=0 cellspacing=0 >
<form action="" method="POST">
<tr><td valign=middle width=100%>Search 1: <input type=text name="searchg" size="20">&nbsp;<input type="submit" name="Submit" value="Submit"></td></tr>


Second Form:
<table width=780 align=center border=0 cellpadding=0 cellspacing=0>
<form action="" method="POST">
<input type="hidden" name="file" value="ab">
<input type="hidden" name="report" value="Search">
<tr><td width=100% valign=valign=top>Search 2: <INPUT size=13 class=vote name=SearchTerm>&nbsp;<input type=submit value="Search" name=Submit</td></tr>

Now as you see there are two different forms.. Now i want to combine these forms into one. So that user will only select the search area with radio button and javascript will take a text from text input and choose the form url, options, hidden inputs and etc to start its search.. How can i do it with javascript ?
The combined forms' html code:
<table width=780 align=center border=0 cellpadding=0 cellspacing=0>
<tr><td valign=middle width=100%>Search: <input type=text name="src" size="20">&nbsp;<input type="submit" name="Submit" value="Submit"></td></tr>
<tr><td valign=middle width=100%><input type=radio value=Site>Search1 &nbsp;<input type=radio value=Internet>Search 2</td></tr></table>