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
7 <title>Device » Diagnostics</title>
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>
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
16 <script type="text/javascript">
18 setPageTitle("<%ejGetWlJS(wlInterface)%>");
20 function displayDiag(diagPrev, diagCurr, diagNext) {
22 // diagCurr should have format "protocol/vpi/vci/conId"
23 var params = diagCurr.split('/');
25 switch ( params[0] ) {
27 loc = 'diagpppoe.cgi';
30 loc = 'diagpppoa.cgi';
48 loc += '?diagPrev=' + diagPrev + '&diagCurr=' + diagCurr + '&diagNext=' + diagNext;
50 var code = 'location = "' + loc + '"';
56 var interfaceInfo = '<%ejGetOther(diagInfo, diag)%>';
57 var interfaces = interfaceInfo.split('|');
58 var diagCurr = '<%ejGetOther(diagInfo, diagCurr)%>';
62 if ( interfaceInfo != '' ) {
63 if ( diagCurr == '' ) {
64 // if there is no current WAN info then
65 // display first available WAN connection
66 diagCurr = interfaces[0];
67 // assign next position info
68 if ( interfaces.length > 1 )
69 diagNext = interfaces[1];
71 // diagCurr and interfaces[i] should have format "protocol/vpi/vci/conId"
72 var currParams = diagCurr.split('/');
73 // find the current position
74 for ( i = 0; i < interfaces.length; i++ ) {
75 var params = interfaces[i].split('/');
76 if ( currParams[0] == params[0] &&
77 currParams[1] == params[1] &&
78 currParams[2] == params[2] &&
79 currParams[3] == params[3] )
82 // assign previous position info
84 diagPrev = interfaces[i - 1];
85 // assign current position info
86 diagCurr = interfaces[i];
87 // assign next position info
88 if ( i + 1 < interfaces.length )
89 diagNext = interfaces[i + 1];
91 // display current position info
92 displayDiag(diagPrev, diagCurr, diagNext);
94 // if there is no wan connection then
95 // display lan diagnostics page
96 eval('location = "diaglan.html"');
103 <body onload="initMenu(); frmLoad();">
105 <script type="text/javascript">
106 writeHeader("Device", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
113 <script type="text/javascript">