<html>
   <head>
      <meta http-equiv="Pragma" content="no-cache">
      <LINK href="stylemain.css" type="text/css" rel="stylesheet">
         <LINK href="colors.css" type="text/css" rel="stylesheet">
            <script language="javascript" src="util.js"></script>
            <script language="javascript" src="portName.js"></script>
            <script language="javascript">
<!-- hide

var buildvlm =  '<%ejGetOther(sysInfo, buildWanVlanMux)%>';
var brdId = '<%ejGet(boardID)%>';
var interfaceInfo = '<%ejGetOther(eponL2AvaIntf, 0)%>';
var interfaces = interfaceInfo.split('|');
var i;
var intfDisp = '';
var brdIntf = '';

function frmLoad() {
}

function btnBack() {
   var code = 'location="eponwan.cmd"';
   eval(code);
}


function btnSave() {
   var loc = 'eponwan.cmd?action=add';

   with ( document.forms[0] ) {
      var idx = eponIntf.selectedIndex;
      var ifc = eponIntf.options[idx].value;
      loc += '&ifname=' + ifc;

      if (buildvlm == 0)
         loc += '&connMode=0';  //default mode
      else
         loc += '&connMode=1';  //vlanmux mode
   }
   loc += '&sessionKey=<%ejGetOther(sessionKey)%>';
   var code = 'location="' + loc + '"';
   eval(code);
}


// done hiding -->
</script>
   </head>
   <body onload="frmLoad()">
      <blockquote>
         <form ID="Form1">
            <table border="0" cellpadding="4" cellspacing="0">
               <tr>
</script>
               </tr>
            </table>
	     <center>
            <br>
            <strong>EPON WAN Configuration</strong><br>
            This screen allows you to configure a EPON WAN port .
            <br>
            <br>
 <script language="javascript">
<!-- hide
            if (interfaces.length > 0) 
            {
               document.write("<p>Select a EPON port:<br></p>");
               document.write("<select name='eponIntf'>");
               for (i = 0; i < interfaces.length; i++) 
               {
                  brdIntf = brdId + '|' + interfaces[i];
                  intfDisp = getUNameByLName(brdIntf);
                  brdIntf = '';
                  document.write("<option value='" + interfaces[i] + "'>" + interfaces[i] + "/" + intfDisp);
               }
               document.write("</select>");
            }
// done hiding -->
</script>
            <br>
               <input type='button' onClick='btnBack()' value='Back'> <input type='button' onClick='btnSave()' value='Apply/Save'>
            </center>
         </form>
      </blockquote>
   </body>
</html>

