1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <script src="usr_menus.js" type="text/javascript"></script>
11 <script src="usr_common.js" type="text/javascript"></script>
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
15 <script type="text/javascript" src="util.js"></script>
16 <script type="text/javascript">
18 setPageTitle("<%ejGetWl(wlInterface)%>");
20 var qs = '<%ejGet(quickSetup)%>';
21 var prtcl = '<%ejGetOther(memInfo, ntwkPrtcl)%>';
22 var eMode = '<%ejGet(encapMode)%>';
23 var srvname = '<%ejGet(serviceName)%>';
24 var vpi = '<%ejGet(atmVpi)%>';
25 var vci = '<%ejGet(atmVci)%>';
26 var existedProtocol = '<%ejGet(existedProtocol)%>';
27 var enblEnetWan = '<%ejGet(enblEnetWan)%>';
30 with ( document.forms[0] ) {
31 if ( enblEnetWan == 1 ) {
32 document.getElementById('enetWan').style.visibility = 'hidden';
35 ntwkPrtcl[0].checked = true;
37 ntwkPrtcl[1].checked = true;
38 } else if ( existedProtocol == 'MER' ) {
39 // if MER is existed in this PVC and MER is editting then
40 // allow PPPoE or MER to be added
42 ntwkPrtcl[1].checked = true;
44 // if MER is existed and PPPoE is editting then only allow PPPoE to be added
45 ntwkPrtcl.checked = true;
46 } else if ( existedProtocol == 'PPPoE' ) {
47 // if (PPPoE is existed then only allow PPPoE or MER to be added
49 ntwkPrtcl[1].checked = true;
51 ntwkPrtcl[0].checked = true;
53 // otherwise no restriction
54 if ( prtcl == 'PPPoA' )
55 ntwkPrtcl[0].checked = true;
56 else if ( prtcl == 'PPPoE' )
57 ntwkPrtcl[1].checked = true;
58 else if ( prtcl == 'MER' )
59 ntwkPrtcl[2].checked = true;
60 else if ( prtcl == 'IPoA' )
61 ntwkPrtcl[3].checked = true;
63 ntwkPrtcl[4].checked = true;
70 var loc = '', service = '';
71 var conId = '<%ejGetOther(wanInterfaceInfo, conId)%>';
73 with ( document.forms[0] ) {
74 if ( enblEnetWan == 1 ) {
75 if ( ntwkPrtcl[0].checked == true ) {
76 loc = 'pppoe.cgi?ntwkPrtcl=0';
77 service = 'pppoe_' + 'eth' + '_' + vpi + '_' + conId;
79 loc = 'wancfg.cgi?ntwkPrtcl=6';
80 service = 'eth_' + vpi;
82 } else if ( existedProtocol == 'MER' ) {
83 // if MER is existed in this PVC and MER is editting then
84 // allow PPPoE or MER to be added
85 if ( prtcl == 'MER' ) {
86 if ( ntwkPrtcl[1].checked == true ) {
87 loc = 'wancfg.cgi?ntwkPrtcl=2';
88 service = 'mer_' + vpi + '_' + vci;
90 loc = 'pppoe.cgi?ntwkPrtcl=0';
91 service = 'pppoe_' + vpi + '_' + vci + '_' + conId;
94 // if MER is existed in this PVC and PPPoE is editting then
95 // only allow PPPoE or MER to be added
96 loc = 'pppoe.cgi?ntwkPrtcl=0';
97 service = 'pppoe_' + vpi + '_' + vci + '_' + conId;
99 } else if ( existedProtocol == 'PPPoE' ) {
100 // if PPPoE is existed then only allow PPPoE or MER to be added
101 if ( ntwkPrtcl[0].checked == true ) {
102 loc = 'pppoe.cgi?ntwkPrtcl=0';
103 service = 'pppoe_' + vpi + '_' + vci + '_' + conId;
105 else if ( ntwkPrtcl[1].checked == true ) {
106 loc = 'wancfg.cgi?ntwkPrtcl=2';
107 service = 'mer_' + vpi + '_' + vci;
110 // otherwise no restriction
111 if ( ntwkPrtcl[0].checked == true ) {
112 loc = 'pppoe.cgi?ntwkPrtcl=1';
113 service = 'pppoa_' + vpi + '_' + vci + '_' + conId;
115 else if ( ntwkPrtcl[1].checked == true ) {
116 loc = 'pppoe.cgi?ntwkPrtcl=0';
117 service = 'pppoe_' + vpi + '_' + vci + '_' + conId;
119 else if ( ntwkPrtcl[2].checked == true ) {
120 loc = 'wancfg.cgi?ntwkPrtcl=2';
121 service = 'mer_' + vpi + '_' + vci;
123 else if ( ntwkPrtcl[3].checked == true ) {
124 loc = 'ipoacfg.cgi?ntwkPrtcl=5';
125 service = 'ipoa_' + vpi + '_' + vci;
128 loc = 'enblbridge.cgi?ntwkPrtcl=3';
129 service = 'br_' + vpi + '_' + vci;
132 loc += '&encapMode=' + encSel.options[encSel.selectedIndex].value;
134 if ( srvname == '' || qs == '1' )
135 loc += '&serviceName=' + encodeUrl(service);
137 loc += '&serviceName=' + encodeUrl(srvname);
139 var code = 'location.assign("' + loc + '")';
145 var code = 'location.assign("' + 'pvccfg.html' + '")';
147 var code = 'location.assign("' + 'vpivci.html' + '")';
152 function encDisplay(mode)
154 with ( document.forms[0] ) {
155 if ( enblEnetWan == 2 || enblEnetWan == 0 ) { // ethernet WAN feature is disabled
156 encSel.selectedIndex = 0;
158 encSel.selectedIndex = 1;
159 // if MER or PPPoE is existed in this PVC
160 if ( existedProtocol == 'MER' || existedProtocol == 'PPPoE' ) {
161 encSel.options[0].text = "LLC/SNAP-BRIDGING";
162 encSel.options[1].text = "VC/MUX";
164 // otherwise no restriction
165 if ( ntwkPrtcl[0].checked == true ) {
166 encSel.options[0].text = "VC/MUX";
167 encSel.options[1].text = "LLC/ENCAPSULATION";
169 else if ( ntwkPrtcl[3].checked == true ) {
170 encSel.options[0].text = "LLC/SNAP-ROUTING";
171 encSel.options[1].text = "VC/MUX";
174 encSel.options[0].text = "LLC/SNAP-BRIDGING";
175 encSel.options[1].text = "VC/MUX";
182 function prtClick() {
188 <base target="_self">
190 <body onload="initMenu('idMenu'); frmLoad();">
192 <script type="text/javascript">
193 writeHeader("Connection Type", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
196 <p>Select the type of network protocol and encapsulation mode over the ATM PVC
197 that your ISP has instructed you to use.</p>
200 <script type="text/javascript">
202 if ( enblEnetWan == 1 )
204 document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
205 document.writeln("<input type='radio' name='ntwkPrtcl' id='idIPcxn' onClick='prtClick()'> <label for='idIPcxn'>IP Connection</label><br/>");
207 else if ( existedProtocol == 'MER' )
209 // if MER is existed in this PVC and MER is editing then allow PPPoE or MER to be added
210 if ( prtcl == 'MER' )
212 document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
213 document.writeln("<input type='radio' name='ntwkPrtcl' id='idMER' onClick='prtClick()'> <label for='idMER'>MAC Encapsulation Routing (MER)</label><br/>");
215 else // if MER is existed in this PVC and PPPoE is editting then only allow PPPoE to be added
216 document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
218 else if ( existedProtocol == 'PPPoE' )
220 // if PPPoE is existed in this PVC then only allow PPPoE or MER to be added
221 document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
222 document.writeln("<input type='radio' name='ntwkPrtcl' id='idMER' onClick='prtClick()'> <label for='idMER'>MAC Encapsulation Routing (MER)</label><br/>");
224 else // otherwise no restriction
226 document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoA' onClick='prtClick()'> <label for='idPPPoA'>PPP over ATM (PPPoA)</label><br/>");
227 document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
228 document.writeln("<input type='radio' name='ntwkPrtcl' id='idMER' onClick='prtClick()'> <label for='idMER'>MAC Encapsulation Routing (MER)</label><br/>");
229 document.writeln("<input type='radio' name='ntwkPrtcl' id='idIPoA' onClick='prtClick()'> <label for='idIPoA'>IP over ATM (IPoA)</label><br/>");
230 document.writeln("<input type='radio' name='ntwkPrtcl' id='idBridging' onClick='prtClick()'> <label for='idBridging'>Bridging</label><br/>");
237 <p><label for="encSel">Encapsulation mode:</label>
238 <select name='encSel' id='encSel'>
239 <option value="0">LLC/SNAP-Bridging</option>
240 <option value="1">VC/MUX</option>
244 <p><input type='button' onClick='btnBack()' value='Back'> <input type='button' onClick='btnNext()' value='Next'></p>
248 <script type="text/javascript">