d90768ac186e3f32d037ccbaf02ec3540c55e35b
[bcm963xx.git] / userapps / broadcom / cfm / html / lancfgbr.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3         (c) 2005 U.S. Robotics Corporation
4 -->
5 <html>
6 <head>
7         <title></title>
8
9         <link href="usr_main.css" rel="stylesheet" type="text/css">
10         <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11         <script src="usr_common.js" type="text/javascript"></script>
12
13         <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
14
15         <script type="text/javascript" src="util.js"></script>
16         <script type="text/javascript">
17 <!-- hide
18
19 setPageTitle("<%ejGetWlJS(wlInterface)%>");
20
21 var addr = '<%ejGetJS(ethIpAddress)%>';
22 var mask = '<%ejGetJS(ethSubnetMask)%>';
23 var prtcl = '<%ejGetOther(memInfo, ntwkPrtcl)%>';
24
25 function frmLoad() {
26    with ( document.forms[0] ) {
27       ethIpAddress.value = addr;
28       ethSubnetMask.value = mask;
29    }
30 }
31
32 function btnNext() {
33    var ifc = '<%ejGetWlJS(wlInterface)%>';
34    var loc = '';
35
36    if ( ifc == '1' )
37       loc = 'wlsetup.cgi?';
38    else
39       loc = 'ntwksum2.cgi?';
40
41    with ( document.forms[0] ) {
42       if ( isValidIpAddress(ethIpAddress.value) == false ) {
43          alert('Address "' + ethIpAddress.value + '" is invalid IP address.');
44          return;
45       }
46       if ( isValidIpAddress(ethSubnetMask.value) == false ) {
47          alert('Subnet mask "' + ethSubnetMask.value + '" has invalid IP address.');
48          return;
49       }
50       loc += 'ethIpAddress=' + ethIpAddress.value;
51       loc += '&ethSubnetMask=' + ethSubnetMask.value;
52    }
53
54    var code = 'location = "' + loc + '"';
55    eval(code);
56 }
57
58 function btnBack() {
59    var loc = 'enblbridge.html';
60
61    if ( prtcl == 'PPPoE' || prtcl == 'PPPoA' )
62       loc = 'enblservice.html';
63
64    var code = 'location = "' + loc + '"';
65    eval(code);
66 }
67
68 // done hiding -->
69 </script>
70             <base target="_self">
71    </head>
72    <body onload="initMenu(); frmLoad();">
73
74 <script type="text/javascript">
75         writeHeader("Device Setup", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
76 </script>
77
78 <form>
79 <p>Configure the router IP address and subnet mask for your local area network (LAN).</p>
80
81    <table border="0" cellpadding="0" cellspacing="0">
82       <tr>
83          <td><label for="ethIpAddress">IP address:</label></td>
84          <td><input type='text' name='ethIpAddress' id='ethIpAddress'></td>
85       </tr>
86       <tr>
87          <td><label for="ethSubnetMask">Subnet mask:</label></td>
88          <td><input type='text' name='ethSubnetMask' id='ethSubnetMask'></td>
89       </tr>
90    </table>
91
92 <p><input type='button' onClick='btnBack()' value='Back'> <input type='button' onClick='btnNext()' value='Next'></p>
93 </form>
94
95 <script type="text/javascript">
96         writeFooter();
97 </script>
98
99 </body>
100 </html>