3 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
4 <link rel="stylesheet" href='stylemain.css' type='text/css'>
5 <link rel="stylesheet" href='colors.css' type='text/css'>
6 <script language="javascript">
9 msg[0] = 'Uploading is in progress. The DSL Router will reboot upon completion. This process will take about 2 minutes.';
10 msg[1] = 'Image uploading failed. The system is out of memory. The DSL Router is rebooting.';
11 msg[2] = 'Image uploading failed. No image file was selected.';
12 msg[3] = 'Image uploading failed. The selected file contains an illegal image.';
13 msg[4] = 'Fatal error during image uploading.';
15 var idxStr = '<%ejGetOther(sysInfo, upldSts)%>';
17 function getMsgIndex() {
18 var idxNum = parseInt(idxStr);
19 if ( isNaN(idxNum) || idxNum < 0 || idxNum > 4 )
26 var enblPopWin = '<%ejGet(enblPopWin)%>';
27 var loc = 'main.html';
28 var code = 'window.top.location="' + loc + '"';
30 if ( enblPopWin == '1' ) {
32 code = 'location="' + loc + '"';
39 // only reboot if upload progress is successful
40 if ( getMsgIndex() == 0 )
41 setTimeout('reboot()', 40000);
45 var code = 'location="' + 'upload.cgi' + '"';
47 if (<%ejGet(glbUploadMode)%> == 2)
48 code = 'location="' + 'updatesettings.cgi' + '"';
55 <body onLoad='frmLoad()'>
56 <blockquote> <b>DSL Router Update</b><br>
58 <script language="javascript">
60 document.write(msg[getMsgIndex()]);
66 <input type='button' onClick='btnBack()' value='Back'>