<form name="network">
       <table align="center" width=600 border=0>
         <tr><td colspan="2" align="left" valign="top"><h2>Network</h2></td></tr>
-        <tr>
-          <td><input type="radio" id="static" name="dhcp" value="no" onClick="doStatic()">Static</td>
-          <td><input type="radio" id="dhcp" name="dhcp" value="yes" onClick="doDHCP()">DHCP</td>
-        </tr>
+       <tr><td colspan="1" align="middle" valign="top"><input type="radio" id="dhcp" name="dhcp" value="yes" onClick="doDHCP()">DHCP</td></tr>
+       <tr><td colspan="1" align="middle" valign="top"><input type="radio" id="static" name="dhcp" value="no" onClick="doStatic()">Static</td></tr>
         <tr><td>IP Address:</td><td><input type="text" name="ipaddress" onBlur="isIP(this)"></td></tr>
         <tr><td>Netmask:</td><td><input type="text" name="netmask" onBlur="isIP(this)"></td></tr>
         <tr><td>Gateway:</td><td><input type="text" name="gateway" onBlur="isIP(this)"></td></tr>
 
     html += '<tr><td colspan="2">Phone System IP Address:</td><td> </td><td div id="ipaddress"></div></td></tr>';
     html += '<tr><td> </td></tr>';
  
-    html += '<form action="/cgi-bin/setring.cgi" method="get">';
+    html += '<form name="phones" method="get">';
 
     // print out analog phones
     html += '<tr><td colspan="4" align="left" valign="top"><h2>Phones</h2></td></tr>';
     html += "<a href=ipphones.html    /a>Add IP Phone";
     html += "</td>";
     html += "<td>";
-    html += "<input type='submit' value='Update Reception' />";
+    html += "<input type='submit' value='Update Reception' onClick='onClickApply(event)'/>";
     html += "</td>";
     html += "</tr>";
 
 
     document.getElementById('ipaddress').innerHTML = ip;
 }
+
+function onClickApply(e) {
+
+//     firmwareurl=document.firmwareurl.value;
+       // get the arguments from the form
+       arg1=document.phones.submit();
+//     downloadUrl("/cgi-bin/setring.cgi?"+arg1,null);
+
+
+}