www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / ntwkprtcl.html
index 1d10a5a..7efa482 100755 (executable)
@@ -4,18 +4,18 @@
 -->
 <html>
 <head>
-       <title></title>
+       <title>Connection Type</title>
 
-       <link href="usr_main.css" rel="stylesheet" type="text/css">
-       <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>
-       <script src="usr_common.js" type="text/javascript"></script>
+       <link href="usr_layout.css" type="text/css" rel="stylesheet" /><script src="usr_layout.js" type="text/javascript"></script>
+       <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css"><script src="usr_menus_dropdown.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
+       <link href="usr_device.css" type="text/css" rel="stylesheet" /><script src="usr_device.js" type="text/javascript"></script><link href="usr_91xx.css" type="text/css" rel="stylesheet" /><script src="usr_91xx.js" type="text/javascript"></script><script src="usr_resources.js" type="text/javascript"></script>
 
        <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
 
        <script type="text/javascript" src="util.js"></script>
        <script type="text/javascript">
 <!-- hide
-setPageTitle("<%ejGetWlJS(wlInterface)%>");
+
 
 var qs = '<%ejGetJS(quickSetup)%>';
 var prtcl = '<%ejGetOther(memInfo, ntwkPrtcl)%>';
@@ -47,6 +47,7 @@ function frmLoad() {
                ntwkPrtcl[0].checked = true;
             else
                ntwkPrtcl[1].checked = true;
+/* Code commented to hide multiple protocols MER and PPPoE over single PVC
       } else if ( existedProtocol == 'MER' ) {
          // if MER exists in this PVC and MER is editting then 
          // allow PPPoE or MER to be added
@@ -55,12 +56,15 @@ function frmLoad() {
          else
          // if MER exists and PPPoE is editting then only allow PPPoE to be added
             ntwkPrtcl.checked = true;  // only one radio btn so no subscript
+*/
       } else if ( existedProtocol == 'PPPoE' ) {
+/* Code commented to hide multiple protocols MER and PPPoE over single PVC
          // if (PPPoE is existed then only allow PPPoE or MER to be added
          if ( prtcl == 'MER' )
             ntwkPrtcl[1].checked = true;
          else
-            ntwkPrtcl[0].checked = true;
+*/
+            ntwkPrtcl.checked = true;
       } else {
          // otherwise no restriction
          if ( prtcl == 'PPPoA' )
@@ -91,6 +95,7 @@ function btnNext() {
                loc = 'wancfg.cgi?ntwkPrtcl=6';
                service = 'eth_' + vpi;
          }
+/* Code commented to hide multiple protocols MER and PPPoE over single PVC
       } else if ( existedProtocol == 'MER' ) {
          // if MER exists in this PVC and MER is editting then 
          // allow PPPoE or MER to be added
@@ -108,16 +113,19 @@ function btnNext() {
             loc = 'pppoe.cgi?ntwkPrtcl=0';
             service = 'pppoe_' + vpi + '_' + vci + '_' + conId;
          }
+*/
       } else if ( existedProtocol == 'PPPoE' ) {
-         // if PPPoE is existed then only allow PPPoE or MER to be added
-         if ( isChecked(ntwkPrtcl[0]) ) {
+         // if PPPoE is existed then only allow PPPoE to be added
+         // if ( isChecked(ntwkPrtcl[0]) ) {
             loc = 'pppoe.cgi?ntwkPrtcl=0';
             service = 'pppoe_' + vpi + '_' + vci + '_' + conId;
-         }
+         // }
+/* Code commented to hide multiple protocols MER and PPPoE over single PVC
          else if ( isChecked(ntwkPrtcl[1]) ) {
             loc = 'wancfg.cgi?ntwkPrtcl=2';
             service = 'mer_' + vpi + '_' + vci;
          }
+*/
       } else {
          // otherwise no restriction
          if ( isChecked(ntwkPrtcl[0]) ) {
@@ -160,15 +168,15 @@ function btnNext() {
    else
       loc += '&serviceName=' + encodeUrl(srvname);
 
-   var code = 'location = "' + loc + '"';
+   var code = 'location="' + loc + '"';
    eval(code);
 }
 
 function btnBack() {
    if (qs == 0)
-      var code = 'location = "' + 'pvccfg.html' + '"';
+      var code = 'location="' + 'pvccfg.html' + '"';
    else
-      var code = 'location = "' + 'vpivci.html' + '"';
+      var code = 'location="' + 'vpivci.html' + '"';
 
    eval(code);
 }
@@ -260,7 +268,7 @@ function vidClick()
 <body onload="initMenu(); frmLoad();">
 
 <script type="text/javascript">
-       writeHeader("Connection Type", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
+       writeHeader("Connection Type");
 </script>
 
 <p>Select the type of network protocol and encapsulation mode over the ATM PVC
@@ -275,6 +283,7 @@ if ( enblEnetWan == 1 )
    document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
    document.writeln("<input type='radio' name='ntwkPrtcl' id='idIPcxn' onClick='prtClick()'> <label for='idIPcxn'>IP Connection</label><br/>");
 }
+/* Code commented to hide multiple protocols MER & PPPoE over single PVC
 else if ( existedProtocol == 'MER' )
 {
    // if MER is existed in this PVC and MER is editing then allow PPPoE or MER to be added
@@ -286,11 +295,14 @@ else if ( existedProtocol == 'MER' )
    else        // if MER exists in this PVC and PPPoE is editting then only allow PPPoE to be added
       document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
 }
+*/
 else if ( existedProtocol == 'PPPoE' )
 {
        // if PPPoE is existed in this PVC then only allow PPPoE or MER to be added
    document.writeln("<input type='radio' name='ntwkPrtcl' id='idPPPoE' onClick='prtClick()'> <label for='idPPPoE'>PPP over Ethernet (PPPoE)</label><br/>");
+/* Code commented to hide multiple protocols MER & PPPoE over single PVC
    document.writeln("<input type='radio' name='ntwkPrtcl' id='idMER' onClick='prtClick()'> <label for='idMER'>MAC Encapsulation Routing (MER)</label><br/>");
+*/
 }
 else   // otherwise no restriction
 {