Revert "Revert "and added files""
[bcm963xx.git] / userapps / broadcom / cfm / html / algcfg.html
1 <html>
2   <head>
3     <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
4     <link rel="stylesheet" href='stylemain.css' type='text/css'>
5       <link rel="stylesheet" href='colors.css' type='text/css'>
6         <script language="javascript">
7 <!-- hide
8 var buildSiproxd = '<%ejGetOther(sysInfo, buildSiproxd)%>';
9 var enblSiproxd = '<%ejGetJS(enblSiproxd)%>';
10 var refresh = '<%ejGetJS(glbRefresh)%>';
11
12 if ( refresh == '1' ) {
13    var code = 'location = "algcfg.cgi?glbRefresh=0"';
14    eval(code);
15 }
16
17 function frmLoad() {
18    with ( document.forms[0] ) {
19       if ( buildSiproxd == '1' ) {
20          if ( enblSiproxd == '1' ) {
21             Siproxd.checked = true;
22          } else {
23             Siproxd.checked = false;
24          }
25          hideSiproxdInfo(0);
26       } else {
27          hideSiproxdInfo(1);
28       }
29    }
30 }
31
32 function hideSiproxdInfo(hide) {
33    var status = 'visible';
34    if ( hide == 1 )
35       status = 'hidden';
36    if (document.getElementById)  // DOM3 = IE5, NS6
37       document.getElementById('sipproxdInfo').style.visibility = status;
38    else {
39       if (document.layers) { // Netscape 4
40          if ( hide == 1 )
41             document.forms[0].Siproxd.value = '';
42          else
43             document.forms[0].Siproxd.value = enblSiproxd;
44       } else  // IE 4
45          document.all.sipproxdInfo.style.visibility = status;
46    }
47 }
48
49 function applyClick() {
50    var loc = 'algcfg.cgi?';
51    with ( document.forms[0] ) {
52       if ( buildSiproxd == '1' ) {
53          if ( Siproxd.checked == true )
54             loc += 'enblSiproxd=1';
55          else
56             loc += 'enblSiproxd=0';
57       }
58    }
59    var code = 'location = "' + loc + '"';
60    eval(code);
61 }
62
63 // done hiding -->
64 </script>
65   </head>
66   <body onLoad='frmLoad()'>
67     <blockquote>
68       <form>
69         <b>ALG</b><br>
70         <br>
71         Select the ALG below.<br>
72         <br>
73         <br>
74         <div id='sipproxdInfo'>
75           <table border="0" cellpadding="0" cellspacing="0">
76             <tr>
77               <td><input type="checkbox" name="Siproxd"> SIP Enabled</td>
78             </tr>
79           </table>
80           <br>
81         </div>
82         <center>
83           <input type='button' onClick='applyClick()' value='Save/Apply'>
84         </center>
85       </form>
86     </blockquote>
87   </body>
88 </html>