1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
6<meta HTTP-EQUIV="Expires" CONTENT="-1">
7<link rel="stylesheet" type="text/css" href="../form_style.css">
8<style>
9span{
10	border:0px solid #FFFFFF;
11	color:#FFFFFF;
12	font-size:12px;
13	font-family:Arial, Helvetica, sans-serif;
14	/*width:27px;*/
15	text-align:right;
16	margin:0px auto;
17	ime-mode:disabled;
18}
19
20.black_line{
21	border: 1px solid #000000;
22	width:480px;
23	margin-left: 10px;
24}
25</style>
26<script type="text/javascript" src="/qis/QISMobilePlugin.js"></script>
27<script type="text/JavaScript" src="/js/jquery.js"></script>
28<script type="text/javascript" src="/help.js"></script>
29
30<script>
31<% wanlink(); %>
32<% first_wanlink(); %>
33<% secondary_wanlink(); %>
34
35var sw_mode = '<% nvram_get("sw_mode"); %>';
36if(((sw_mode == 2 || sw_mode == 3) && '<% nvram_get("wlc_psta"); %>' == 1) || (sw_mode == 3 && '<% nvram_get("wlc_psta"); %>' == 3))
37	sw_mode = 4;
38if(sw_mode == 3 && '<% nvram_get("wlc_psta"); %>' == 2)
39	sw_mode = 2;
40var wan_primary = "";
41var wan0_primary = '<% nvram_get("wan0_primary"); %>';
42var wan1_primary = '<% nvram_get("wan1_primary"); %>';
43
44if(wan0_primary == 1)
45	wan_primary = "wan0";
46else if(wan1_primary == 1)
47	wan_primary = "wan1";
48
49var auth_mode2 = '<% nvram_get("wl0_auth_mode_x"); %>';
50var wep_x2 = '<% nvram_get("wl0_wep_x"); %>';
51var key_x2 = '<% nvram_get("wl0_key"); %>';
52var wpa_mode2 = '<% nvram_get("wl0_wpa_mode"); %>';
53var auth_mode = '<% nvram_get("wl1_auth_mode_x"); %>';
54var wep_x = '<% nvram_get("wl1_wep_x"); %>';
55var key_x = '<% nvram_get("wl1_key"); %>';
56var wpa_mode = '<% nvram_get("wl1_wpa_mode"); %>';
57var reIP = '<% nvram_get("lan_ipaddr"); %>';
58var JS_timeObj = new Date();
59var uptimeStr = "<% uptime(); %>";
60var newformat_systime = uptimeStr.substring(8,11) + " " + uptimeStr.substring(5,7) + " " + uptimeStr.substring(17,25) + " " + uptimeStr.substring(12,16);  //Ex format: Jun 23 10:33:31 2008
61var systime_millsec = Date.parse(newformat_systime); // millsec from system
62var webs_state_update = '<% nvram_get("webs_state_update"); %>';
63var webs_state_upgrade = '<% nvram_get("webs_state_upgrade"); %>';
64var webs_state_error = '<% nvram_get("webs_state_error"); %>';
65var webs_state_info = '<% nvram_get("webs_state_info"); %>';
66
67var auth_mode_5_2 = '<% nvram_get("wl2_auth_mode_x"); %>';
68var wep_x_5_2 = '<% nvram_get("wl2_wep_x"); %>';
69var key_x_5_2 = '<% nvram_get("wl2_key"); %>';
70var wpa_mode_5_2 = '<% nvram_get("wl2_wpa_mode"); %>';
71
72if(parent.tmo_support)
73        var theUrl = "cellspot.router"; 
74else
75        var theUrl = "router.asus.com";
76
77var timezones = {
78	"UTC12":	"(GMT-12:00)",
79	"UTC11":	"(GMT-11:00)",
80	"UTC10":	"(GMT-10:00)",
81	"NAST9DST":	"(GMT-09:00)",
82	"PST8DST":	"(GMT-08:00)",
83	"MST7DST_1":	"(GMT-07:00)",
84	"MST7_2":	"(GMT-07:00)",
85	"MST7DST_3":	"(GMT-07:00)",
86	"CST6DST_1":	"(GMT-06:00)",
87	"CST6DST_2":	"(GMT-06:00)",
88	"CST6DST_3":	"(GMT-06:00)",
89	"CST6DST_3_1":	"(GMT-06:00)",
90	"UTC6":	"(GMT-06:00)",
91	"EST5DST":	"(GMT-05:00)",
92	"UTC5_1":	"(GMT-05:00)",
93	"UTC5_2":	"(GMT-05:00)",
94	"AST4DST":	"(GMT-04:00)",
95	"UTC4_1":	"(GMT-04:00)",
96	"UTC4DST_2":	"(GMT-04:00)",
97	"NST3.30DST":	"(GMT-03:30)",
98	"EBST3DST_1":	"(GMT-03:00)",
99	"UTC3":	"(GMT-03:00)",
100	"EBST3DST_2":	"(GMT-03:00)",
101	"NORO2DST":	"(GMT-02:00)",
102	"EUT1DST":	"(GMT-01:00)",
103	"UTC1":	"(GMT-01:00)",
104	"GMT0":	"(GMT)",
105	"GMT0DST_1":	"(GMT)",
106	"GMT0DST_2":	"(GMT)",
107	/*"GMT0DST_3":		"(GMT)",	use adj_dst to desc*/
108	"UTC-1DST_1":	"(GMT+01:00)",
109	"UTC-1_1_1":	"(GMT+01:00)",
110	"UTC-1_2":	"(GMT+01:00)",
111	"UTC-1_2_1":	"(GMT+01:00)",
112	"MET-1DST":	"(GMT+01:00)",
113	"MET-1DST_1":	"(GMT+01:00)",
114	"MEZ-1DST":	"(GMT+01:00)",
115	"MEZ-1DST_1":	"(GMT+01:00)",
116	"UTC-1_3":	"(GMT+01:00)",
117	"UTC-2DST":	"(GMT+02:00)",
118	"EST-2DST":	"(GMT+02:00)",
119	"UTC-2_1":	"(GMT+02:00)",
120	"UTC-2DST_2":	"(GMT+02:00)",
121	"IST-2DST":	"(GMT+02:00)",
122	"SAST-2":	"(GMT+02:00)",
123	"EET-2DST":	"(GMT+02:00)",
124	"UTC-3_1":	"(GMT+03:00)",
125	"UTC-3_2":	"(GMT+03:00)",
126	"IST-3DST":	"(GMT+03:00)",
127	"UTC-3.30DST":	"(GMT+03:30)",
128	"UTC-4_2":	"(GMT+04:00)",
129	"UTC-4_3":	"(GMT+04:00)",
130	"UTC-4_1":	"(GMT+04:00)",
131	"UTC-4DST_2":	"(GMT+04:00)",
132	"UTC-4.30":	"(GMT+04:30)",
133	"UTC-5":	"(GMT+05:00)",
134	"UTC-5.30_2":	"(GMT+05:30)",
135	"UTC-5.30_1":	"(GMT+05:30)",
136	"UTC-5.30":	"(GMT+05:30)",
137	"UTC-5.45":	"(GMT+05:45)",
138	"RFT-6DST":	"(GMT+06:00)",
139	"UTC-6_1":	"(GMT+06:00)",
140	"UTC-6":	"(GMT+06:00)",
141	"UTC-6.30":	"(GMT+06:30)",
142	"UTC-7":	"(GMT+07:00)",
143	"CST-8_2":	"(GMT+08:00)",
144	"CST-8":	"(GMT+08:00)",
145	"CST-8_1":	"(GMT+08:00)",
146	"SST-8":	"(GMT+08:00)",
147	"CCT-8":	"(GMT+08:00)",
148	"WAS-8DST":	"(GMT+08:00)",
149	"UTC-8DST":	"(GMT+08:00)",
150	"UTC-9_1":	"(GMT+09:00)",
151	"JST":	"(GMT+09:00)",
152	"CST-9.30DST":	"(GMT+09:30)",
153	"UTC-9.30":	"(GMT+09:30)",
154	"UTC-10_3":	"(GMT+10:00)",
155	"UTC-10_1":	"(GMT+10:00)",
156	"UTC-10_2":	"(GMT+10:00)",
157	"TST-10TDT":	"(GMT+10:00)",
158	"UTC-10_5":	"(GMT+10:00)",
159	"UTC-11_2":	"(GMT+11:00)",
160	"UTC-11":	"(GMT+11:00)",
161	"UTC-11_1":	"(GMT+11:00)",
162	"UTC-12":	"(GMT+12:00)",
163	"NZST-12DST":	"(GMT+12:00)",
164	"UTC-13":	"(GMT+13:00)"
165	};
166
167if(parent.yadns_support){
168	var yadns_enable = '<% nvram_get("yadns_enable_x"); %>';
169	var yadns_mode = '<% nvram_get("yadns_mode"); %>';
170}
171
172var wans_mode = '<% nvram_get("wans_mode"); %>';
173
174function yadns_apply(){
175	var enable = document.getElementById("yadns_enable").checked;
176	var defmode = document.getElementById("yadns_defmode").checked;
177	var yadns_update = document.getElementsByName("yadns_update")[0];
178
179	document.getElementById('loadingIcon').style.display='';
180	yadns_update.yadns_enable_x.value = enable ? "1" : "0";
181	yadns_update.yadns_mode.value = (enable && defmode) ? "1" : yadns_mode;
182	yadns_update.submit();
183}
184
185function yadns_change(need_apply){
186	var enable = document.getElementById("yadns_enable").checked;
187
188	parent.yadns_stage = need_apply ? 1 : 0;
189	document.getElementById("yadns_defmode").disabled = !enable;
190}
191
192function doLiveUpdate(_do){
193	if(_do){
194		document.getElementById("newFWDetected").style.display = "none";
195		document.getElementById("progressBar").style.display = "";
196		document.start_update.action_mode.value="apply";
197		document.start_update.action_script.value="start_webs_upgrade";
198		document.start_update.action_wait.value="300";
199		document.start_update.submit();
200	}
201	else{
202		goto_index();
203		setTimeout("parent.location.href='/index.asp'", 3000);
204	}
205}
206
207function showCancel(){
208	document.getElementById("newFWCancel").style.display = "";
209 	document.getElementById("newFWDetected").style.display = "none";
210}
211
212var dead = 0;
213function detect_httpd(){
214	$.ajax({
215		url: '/detect_firmware.asp',
216		dataType: 'script',
217		timeout: 2000,
218		error: function(xhr){
219			dead++;
220			if(dead < 70)
221				setTimeout("detect_httpd();", 1000);
222			else{
223				progressBar = 100;
224				document.getElementById('progress_bar_no').innerHTML = "100%";
225				document.getElementById("updateProgress").style.width = "100%";
226				// document.getElementById("newFWgradedFail").style.display = "";
227				document.getElementById("hidden_frame").contentWindow.showWlHint(1);
228			}
229		},
230		success: function(){
231			if(webs_state_error == "1"){
232				progressBar = 100;
233				document.getElementById('progress_bar_no').innerHTML = "100%";
234				document.getElementById("updateProgress").style.width = "100%";
235				document.getElementById("liveUpdateResult").innerHTML = "<#connect_failed#>";
236				document.getElementById("newFWgraded").style.display = "";
237				return false;
238			}else if(webs_state_error == "2"){
239				progressBar = 100;
240				document.getElementById('progress_bar_no').innerHTML = "100%";
241				document.getElementById("updateProgress").style.width = "100%";
242				document.getElementById("liveUpdateResult").innerHTML = "Memory space is NOT enough to upgrade on internet. Please wait for rebooting.<br><#FW_desc1#>";	/* untranslated */	/* Need to fine tune error cases */
243				document.getElementById("newFWgraded").style.display = "";
244				return false;				
245			}else if(webs_state_error == "3"){
246				progressBar = 100;
247				document.getElementById('progress_bar_no').innerHTML = "100%";
248				document.getElementById("updateProgress").style.width = "100%";
249				document.getElementById("liveUpdateResult").innerHTML = "<#FIRM_fail_desc#><br><#FW_desc1#>";
250				document.getElementById("newFWgraded").style.display = "";
251			}
252
253			if(webs_state_upgrade == ""){	//after reboot
254				progressBar = 100;
255				document.getElementById('progress_bar_no').innerHTML = "100%";
256				document.getElementById("updateProgress").style.width = "100%";				
257				document.getElementById("newFWgraded").style.display = "";		
258			}
259			else{
260				setTimeout("detect_httpd();", 1000);
261			}
262		}
263	});
264}
265
266var progressBar = 0;
267function showLoadingUpdate(){
268	if(progressBar == 100){
269		return false;
270	}
271	else if(progressBar == 10){
272		detect_httpd();
273		setTimeout("showLoadingUpdate();", 2700);
274	}
275	else if(progressBar == 80){
276		detect_httpd();
277		return false;
278	}
279	else{	
280		document.getElementById("updateProgress").style.width = progressBar+"%";
281		document.getElementById('progress_bar_no').innerHTML = progressBar+"%";
282		setTimeout("showLoadingUpdate();", 2700);
283	}
284	
285	progressBar++;	
286}
287
288function checkIsNewFirmware(){
289	if(parent.new_FW){
290		$("#currentFW")[0].innerHTML = parent.exist_firmver + "_" + parent.current_buildno + "_" + parent.current_extendno; 
291		$("#latestFW")[0].innerHTML = "" 
292		for(var i=0; i<parent.Latest_firm.length; i++){
293			$("#latestFW")[0].innerHTML += parent.Latest_firm.charAt(i);
294			if(i == parent.Latest_firm.length - 1)
295				$("#latestFW")[0].innerHTML += "_";
296			else
297				$("#latestFW")[0].innerHTML += ".";
298		}
299		$("#latestFW")[0].innerHTML += parent.Latest_buildno;
300		$("#latestFW")[0].innerHTML += "_";
301		$("#latestFW")[0].innerHTML += parent.Latest_extendno;			
302
303		document.getElementById("QISmain").style.display = "none";
304		document.getElementById("liveUpdate_div").style.display = "";
305
306		//force_upgrade_support : rc_support with "fupgrade"
307		if(!parent.is_CN && parent.force_upgrade_support){
308			doLiveUpdate(true);
309		}
310	}
311	else{
312		goto_index();
313	}
314}
315
316var timer;
317function QKfinish_load_body(){
318	parent.detect_firmware();
319
320	var shown_str;
321	if(parent.yadns_support && parent.yadns_stage == 2) {
322		parent.yadns_stage++;
323		checkIsNewFirmware();
324	}
325		
326	document.getElementById("QISmain").style.display = "";
327	parent.document.title = "<#Web_Title#> - <#QKSet_all_title#>";
328	parent.document.getElementById("btn_gotoindex").style.visibility = "hidden";
329
330	if(gobi_support){
331		$("#freqtitle2")[0].style.display = "none";
332		$("#ssid2_block")[0].style.display = "none";
333		$("#key2_block")[0].style.display = "none";
334		$("#security2_block")[0].style.display = "none";
335		$("#freqtitle5")[0].style.display = "none";
336		$("#ssid5_block")[0].style.display = "none";
337		$("#key5_block")[0].style.display = "none";
338		$("#security5_block")[0].style.display = "none";	
339
340		if(parent.wl_info.band5g_2_support){
341			parent.document.getElementById("contentM").style.height = "630px";
342			$("#band5g_desc")[0].innerHTML = "(5GHz-1)";
343			$("#ssid_5_2_item")[0].innerHTML = "<#QIS_finish_wireless_item1#>";
344			$("#ssid_5_2")[0].innerHTML = handle_show_str(decodeURIComponent('<% nvram_char_to_ascii("", "wl2_ssid"); %>'));
345			$("#security_item5_2")[0].innerHTML = "<#QIS_finish_wireless_item2#>";
346		}
347
348		$("#ssid_2g")[0].innerHTML = handle_show_str(decodeURIComponent('<% nvram_char_to_ascii("", "wl0_ssid"); %>'));
349		$("#ssid_5g")[0].innerHTML = handle_show_str(decodeURIComponent('<% nvram_char_to_ascii("", "wl1_ssid"); %>'));
350
351		shown_str = "";
352		if(auth_mode2 == "open" && wep_x2 == "0"){
353			$("#security2g")[0].innerHTML = "Open System";
354		}
355		else if(auth_mode2 == "open" && wep_x2 != "0"){
356			$("#security2g")[0].innerHTML = "Open System";
357			if(key_x2 ==1)
358				shown_str = '<% nvram_get("wl0_key1"); %>';
359			else if(key_x2 ==2)	
360				shown_str = '<% nvram_get("wl0_key2"); %>';
361			else if(key_x2 ==3)
362				shown_str = '<% nvram_get("wl0_key3"); %>';
363			else if(key_x2 ==4)		
364				shown_str = '<% nvram_get("wl0_key4"); %>';
365		}
366		else if(auth_mode2 == "shared"){
367			$("#security2g")[0].innerHTML = "Shared Key";
368			if(key_x2 ==1)
369				shown_str = '<% nvram_get("wl0_key1"); %>';
370			else if(key_x2 ==2)	
371				shown_str = '<% nvram_get("wl0_key2"); %>';
372			else if(key_x2 ==3)
373				shown_str = '<% nvram_get("wl0_key3"); %>';
374			else if(key_x2 ==4)		
375				shown_str = '<% nvram_get("wl0_key4"); %>';
376		}
377		else if(auth_mode2 == "psk"){
378			$("#security2g")[0].innerHTML = "WPA-Personal - TKIP";
379			shown_str = '<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>';
380		}
381		else if(auth_mode2 == "psk2"){
382			$("#security2g")[0].innerHTML = "WPA2-Personal - AES";
383			shown_str = '<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>';
384		}	
385		else if(auth_mode2 == "pskpsk2"){
386			$("#security2g")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
387			shown_str = '<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>';
388		}
389		else{
390			$("#ssid_2g")[0].style.display = "none";
391			$("#key2g")[0].style.display = "none";
392			$("#security2g")[0].style.display = "none";
393		}
394		$("#key2g")[0].innerHTML = handle_show_str(decodeURIComponent(shown_str));
395
396		if(!parent.band5g_support){
397			$("#ssid_5g")[0].style.display = "none";
398			$("#key5g")[0].style.display = "none";
399			$("#security5g")[0].style.display = "none";
400		}
401		else{
402			shown_str = "";
403			if(auth_mode == "open" && wep_x == "0"){
404				$("#security5g")[0].innerHTML = "Open System";
405			}
406			else if(auth_mode == "open" && wep_x != "0"){
407				$("#security5g")[0].innerHTML = "Open System";
408				if(key_x ==1)
409					shown_str = '<% nvram_get("wl1_key1"); %>';
410				else if(key_x ==2)	
411					shown_str = '<% nvram_get("wl1_key2"); %>';
412				else if(key_x ==3)
413					shown_str = '<% nvram_get("wl1_key3"); %>';
414				else if(key_x ==4)		
415					shown_str = '<% nvram_get("wl1_key4"); %>';
416			}
417			else if(auth_mode == "shared"){
418				$("#security5g")[0].innerHTML = "Shared Key";
419				if(key_x ==1)
420					shown_str = '<% nvram_get("wl1_key1"); %>';
421				else if(key_x ==2)	
422					shown_str = '<% nvram_get("wl1_key2"); %>';
423				else if(key_x ==3)
424					shown_str = '<% nvram_get("wl1_key3"); %>';
425				else if(key_x ==4)		
426					shown_str = '<% nvram_get("wl1_key4"); %>';
427			}
428			else if(auth_mode == "psk"){
429				$("#security5g")[0].innerHTML = "WPA-Personal - TKIP";
430				shown_str = '<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>';
431			}
432			else if(auth_mode == "psk2"){
433				$("#security5g")[0].innerHTML = "WPA2-Personal - AES";
434				shown_str = '<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>';
435			}
436			else if(auth_mode == "pskpsk2"){
437				$("#security5g")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
438				shown_str = '<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>';
439			}
440			else{	
441				$("#ssid_5g")[0].style.display = "none";
442				$("#key5g")[0].style.display = "none";
443				$("#security5g")[0].style.display = "none";
444			}
445			$("#key5g")[0].innerHTML = handle_show_str(decodeURIComponent(shown_str));
446		}
447
448		//Repeater mode wireless LAN 2.4G/5G
449		if('<% nvram_get("sw_mode"); %>' == "2"){		
450			if('<% nvram_get("wlc_band"); %>' == 0){
451				auth_mode2 = '<% nvram_get("wl0.1_auth_mode_x"); %>';
452				wep_x2 = '<% nvram_get("wl0.1_wep_x"); %>';
453				key_x2 = '<% nvram_get("wl0.1_key"); %>';
454				document.form.wl0_ssid2.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl0.1_ssid"); %>');
455				document.form.wl0_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl0.1_wpa_psk"); %>');
456				$("#ssid_2g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_ssid"); %>');
457				
458				if(auth_mode2 == "open" && wep_x2 == "0"){
459					$("#security2g")[0].innerHTML = "Open System";
460				}
461				else if(auth_mode2 == "open" && wep_x2 != "0"){
462					$("#security2g")[0].innerHTML = "Open System";
463					if(key_x2 ==1)
464						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key1"); %>');
465					else if(key_x2 ==2)	
466						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key2"); %>');
467					else if(key_x2 ==3)
468						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key3"); %>');
469					else if(key_x2 ==4)		
470						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key4"); %>');
471				}
472				else if(auth_mode2 == "shared"){
473					$("#security2g")[0].innerHTML = "Shared Key";
474					if(key_x2 ==1)
475						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key1"); %>');
476					else if(key_x2 ==2)	
477						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key2"); %>');
478					else if(key_x2 ==3)
479						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key3"); %>');
480					else if(key_x2 ==4)		
481						$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key4"); %>');		
482	 			}
483				else if(auth_mode2 == "psk"){
484					$("#security2g")[0].innerHTML = "WPA-Personal - TKIP";
485					$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_wpa_psk"); %>');
486				}
487				else if(auth_mode2 == "psk2"){
488					$("#security2g")[0].innerHTML = "WPA2-Personal - AES";
489					$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_wpa_psk"); %>');
490				}	
491				else if(auth_mode2 == "pskpsk2"){
492					$("#security2g")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
493					$("#key2g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_wpa_psk"); %>');
494				}
495				else{
496					$("#ssid_2g")[0].style.display = "none";
497					$("#key2g")[0].style.display = "none";
498					$("#security2g")[0].style.display = "none";
499				}
500			}
501			
502			if(!parent.band5g_support){
503				$("#ssid_5g")[0].style.display = "none";
504				$("#key5g")[0].style.display = "none";
505				$("#security5g")[0].style.display = "none";
506			}
507			else{		
508				if('<% nvram_get("wlc_band"); %>' == 1){			
509					auth_mode = '<% nvram_get("wl1.1_auth_mode_x"); %>';
510					wep_x = '<% nvram_get("wl1.1_wep_x"); %>';
511					key_x = '<% nvram_get("wl1.1_key"); %>';			
512					document.form.wl1_ssid2.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl1.1_ssid"); %>');
513					document.form.wl1_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl1.1_wpa_psk"); %>');
514					$("#ssid_5g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_ssid"); %>');
515				
516					if(auth_mode == "open" && wep_x == "0"){
517						$("#security5g")[0].innerHTML = "Open System";
518						$("#key5g")[0].style.display = "none";
519					}
520					else if(auth_mode == "open" && wep_x != "0"){
521						$("#security5g")[0].innerHTML = "Open System";
522						if(key_x ==1)
523							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key1"); %>');
524						else if(key_x ==2)	
525							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1_key2"); %>');
526						else if(key_x ==3)
527							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1_key3"); %>');
528						else if(key_x ==4)		
529							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1_key4"); %>');
530					}
531					else if(auth_mode == "shared"){
532						$("#security5g")[0].innerHTML = "Shared Key";
533						if(key_x ==1)
534							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key1"); %>');
535						else if(key_x ==2)	
536							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key2"); %>');
537						else if(key_x ==3)
538							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key3"); %>');
539						else if(key_x ==4)		
540							$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key4"); %>');		
541					}
542					else if(auth_mode == "psk"){
543						$("#security5g")[0].innerHTML = "WPA-Personal - TKIP";
544						$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_wpa_psk"); %>');
545					}
546					else if(auth_mode == "psk2"){
547						$("#security5g")[0].innerHTML = "WPA2-Personal - AES";
548						$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_wpa_psk"); %>');
549					}
550					else if(auth_mode == "pskpsk2"){
551						$("#security5g")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
552						$("#key5g")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_wpa_psk"); %>');
553					}
554					else{	
555						$("#ssid_5g")[0].style.display = "none";
556						$("#key5g")[0].style.display = "none";
557						$("#security5g")[0].style.display = "none";
558					}
559				}
560			}	
561		}
562	}
563	else{
564		// Wireless Security
565		$("#freqtitle")[0].style.display = "none";
566		$("#band_block")[0].style.display = "none";
567		$("#ssid_block")[0].style.display = "none";
568		$("#key_block")[0].style.display = "none";
569		$("#security_block")[0].style.display = "none";
570		$("#wanstatus_tr1")[0].style.display = "none";
571		
572		$("#ssid_2_item")[0].innerHTML = "<#QIS_finish_wireless_item1#>";
573		$("#ssid_2")[0].innerHTML = handle_show_str(decodeURIComponent('<% nvram_char_to_ascii("", "wl0_ssid"); %>'));
574		$("#ssid_5_item")[0].innerHTML = "<#QIS_finish_wireless_item1#>";
575		$("#ssid_5")[0].innerHTML = handle_show_str(decodeURIComponent('<% nvram_char_to_ascii("", "wl1_ssid"); %>'));
576		$("#key2_item")[0].innerHTML = "<#Network_key#>";
577		$("#key5_item")[0].innerHTML = "<#Network_key#>";
578		$("#security_item2")[0].innerHTML = "<#QIS_finish_wireless_item2#>";
579		$("#security_item5")[0].innerHTML = "<#QIS_finish_wireless_item2#>";
580
581		shown_str = "";
582		if(auth_mode2 == "open" && wep_x2 == "0"){
583			$("#security2")[0].innerHTML = "Open System";
584			$("#key2_block")[0].style.display = "none";
585		}
586		else if(auth_mode2 == "open" && wep_x2 != "0"){
587			$("#security2")[0].innerHTML = "Open System";
588			if(key_x2 ==1)
589				shown_str = '<% nvram_get("wl0_key1"); %>';
590			else if(key_x2 ==2)	
591				shown_str = '<% nvram_get("wl0_key2"); %>';
592			else if(key_x2 ==3)
593				shown_str = '<% nvram_get("wl0_key3"); %>';
594			else if(key_x2 ==4)		
595				shown_str = '<% nvram_get("wl0_key4"); %>';
596		}
597		else if(auth_mode2 == "shared"){
598			$("#security2")[0].innerHTML = "Shared Key";
599			if(key_x2 ==1)
600				shown_str = '<% nvram_get("wl0_key1"); %>';
601			else if(key_x2 ==2)	
602				shown_str = '<% nvram_get("wl0_key2"); %>';
603			else if(key_x2 ==3)
604				shown_str = '<% nvram_get("wl0_key3"); %>';
605			else if(key_x2 ==4)		
606				shown_str = '<% nvram_get("wl0_key4"); %>';
607		}
608		else if(auth_mode2 == "psk"){
609			if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
610				$("#security2_block")[0].style.display = "none";
611			$("#security2")[0].innerHTML = "WPA-Personal - TKIP";
612			shown_str = '<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>';
613		}
614		else if(auth_mode2 == "psk2"){
615			if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
616				$("#security2_block")[0].style.display = "none";
617			$("#security2")[0].innerHTML = "WPA2-Personal - AES";
618			shown_str = '<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>';
619		}	
620		else if(auth_mode2 == "pskpsk2"){
621			if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
622				$("#security2_block")[0].style.display = "none";
623			$("#security2")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
624			shown_str = '<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>';
625		}
626		else{
627			$("#freqtitle2")[0].style.display = "none";
628			$("#ssid2_block")[0].style.display = "none";
629			$("#key2_block")[0].style.display = "none";
630			$("#security2_block")[0].style.display = "none";
631		}
632		$("#key2")[0].innerHTML = handle_show_str(decodeURIComponent(shown_str));
633
634		if(!parent.band5g_support){
635			$("#desc2g")[0].style.display = "none";
636			$("#freqtitle5")[0].style.display = "none";
637			$("#ssid5_block")[0].style.display = "none";
638			$("#key5_block")[0].style.display = "none";
639			$("#security5_block")[0].style.display = "none";
640		}
641		else{
642			shown_str = "";
643			if(auth_mode == "open" && wep_x == "0"){
644				$("#security5")[0].innerHTML = "Open System";
645				$("#key5_block")[0].style.display = "none";
646			}
647			else if(auth_mode == "open" && wep_x != "0"){
648				$("#security5")[0].innerHTML = "Open System";
649				if(key_x ==1)
650					shown_str = '<% nvram_get("wl1_key1"); %>';
651				else if(key_x ==2)	
652					shown_str = '<% nvram_get("wl1_key2"); %>';
653				else if(key_x ==3)
654					shown_str = '<% nvram_get("wl1_key3"); %>';
655				else if(key_x ==4)		
656					shown_str = '<% nvram_get("wl1_key4"); %>';
657			}
658			else if(auth_mode == "shared"){
659				$("#security5")[0].innerHTML = "Shared Key";
660				if(key_x ==1)
661					shown_str = '<% nvram_get("wl1_key1"); %>';
662				else if(key_x ==2)	
663					shown_str = '<% nvram_get("wl1_key2"); %>';
664				else if(key_x ==3)
665					shown_str = '<% nvram_get("wl1_key3"); %>';
666				else if(key_x ==4)		
667					shown_str = '<% nvram_get("wl1_key4"); %>';
668			}
669			else if(auth_mode == "psk"){
670				if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
671					$("#security5_block")[0].style.display = "none";
672				$("#security5")[0].innerHTML = "WPA-Personal - TKIP";
673				shown_str = '<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>';
674			}
675			else if(auth_mode == "psk2"){
676				if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
677					$("#security5_block")[0].style.display = "none";
678				$("#security5")[0].innerHTML = "WPA2-Personal - AES";
679				shown_str = '<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>';
680			}
681			else if(auth_mode == "pskpsk2"){
682				if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
683					$("#security5_block")[0].style.display = "none";
684				$("#security5")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
685				shown_str = '<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>';
686			}
687			else{	
688				$("#freqtitle5")[0].style.display = "none";
689				$("#ssid5_block")[0].style.display = "none";
690				$("#key5_block")[0].style.display = "none";
691				$("#security5_block")[0].style.display = "none";
692			}
693			$("#key5")[0].innerHTML = handle_show_str(decodeURIComponent(shown_str));
694		}
695
696		//Repeater mode wireless LAN 2.4G/5G
697		if(sw_mode == "2"){
698			if('<% nvram_get("wlc_band"); %>' == 0){
699				auth_mode2 = '<% nvram_get("wl0.1_auth_mode_x"); %>';
700				wep_x2 = '<% nvram_get("wl0.1_wep_x"); %>';
701				key_x2 = '<% nvram_get("wl0.1_key"); %>';
702				document.form.wl0_ssid2.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl0.1_ssid"); %>');
703				document.form.wl0_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl0.1_wpa_psk"); %>');
704				$("#ssid_2")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_ssid"); %>');
705				
706				if(auth_mode2 == "open" && wep_x2 == "0"){
707					$("#security2")[0].innerHTML = "Open System";
708					$("#key2_block")[0].style.display = "none";
709				}
710				else if(auth_mode2 == "open" && wep_x2 != "0"){
711					$("#security2")[0].innerHTML = "Open System";
712					if(key_x2 ==1)
713						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key1"); %>');
714					else if(key_x2 ==2)	
715						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key2"); %>');
716					else if(key_x2 ==3)
717						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key3"); %>');
718					else if(key_x2 ==4)		
719						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key4"); %>');
720				}
721				else if(auth_mode2 == "shared"){
722					$("#security2")[0].innerHTML = "Shared Key";
723					if(key_x2 ==1)
724						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key1"); %>');
725					else if(key_x2 ==2)	
726						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key2"); %>');
727					else if(key_x2 ==3)
728						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key3"); %>');
729					else if(key_x2 ==4)		
730						$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_get("wl0.1_key4"); %>');		
731	 			}
732				else if(auth_mode2 == "psk"){
733					$("#security2")[0].innerHTML = "WPA-Personal - TKIP";
734					$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_wpa_psk"); %>');
735				}
736				else if(auth_mode2 == "psk2"){
737					$("#security2")[0].innerHTML = "WPA2-Personal - AES";
738					$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_wpa_psk"); %>');
739				}	
740				else if(auth_mode2 == "pskpsk2"){
741					$("#security2")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
742					$("#key2")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl0.1_wpa_psk"); %>');
743				}
744				else{
745					$("#freqtitle2")[0].style.display = "none";
746					$("#ssid2_block")[0].style.display = "none";
747					$("#key2_block")[0].style.display = "none";
748					$("#security2_block")[0].style.display = "none";
749				}
750			}
751			
752			if(!parent.band5g_support){
753				$("#desc2g")[0].style.display = "none";
754				$("#freqtitle5")[0].style.display = "none";
755				$("#ssid5_block")[0].style.display = "none";
756				$("#key5_block")[0].style.display = "none";
757				$("#security5_block")[0].style.display = "none";
758			}
759			else{		
760				if('<% nvram_get("wlc_band"); %>' == 1){			
761					auth_mode = '<% nvram_get("wl1.1_auth_mode_x"); %>';
762					wep_x = '<% nvram_get("wl1.1_wep_x"); %>';
763					key_x = '<% nvram_get("wl1.1_key"); %>';			
764					document.form.wl1_ssid2.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl1.1_ssid"); %>');
765					document.form.wl1_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("WLANConfig11b", "wl1.1_wpa_psk"); %>');
766					$("#ssid_5")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_ssid"); %>');
767				
768					if(auth_mode == "open" && wep_x == "0"){
769						$("#security5")[0].innerHTML = "Open System";
770						$("#key5_block")[0].style.display = "none";
771					}
772					else if(auth_mode == "open" && wep_x != "0"){
773						$("#security5")[0].innerHTML = "Open System";
774						if(key_x ==1)
775							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key1"); %>');
776						else if(key_x ==2)	
777							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1_key2"); %>');
778						else if(key_x ==3)
779							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1_key3"); %>');
780						else if(key_x ==4)		
781							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1_key4"); %>');
782					}
783					else if(auth_mode == "shared"){
784						$("#security5")[0].innerHTML = "Shared Key";
785						if(key_x ==1)
786							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key1"); %>');
787						else if(key_x ==2)	
788							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key2"); %>');
789						else if(key_x ==3)
790							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key3"); %>');
791						else if(key_x ==4)		
792							$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_get("wl1.1_key4"); %>');		
793					}
794					else if(auth_mode == "psk"){
795						$("#security5")[0].innerHTML = "WPA-Personal - TKIP";
796						$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_wpa_psk"); %>');
797					}
798					else if(auth_mode == "psk2"){
799						$("#security5")[0].innerHTML = "WPA2-Personal - AES";
800						$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_wpa_psk"); %>');
801					}
802					else if(auth_mode == "pskpsk2"){
803						$("#security5")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
804						$("#key5")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wl1.1_wpa_psk"); %>');
805					}
806					else{	
807						$("#freqtitle5")[0].style.display = "none";
808						$("#ssid5_block")[0].style.display = "none";
809						$("#key5_block")[0].style.display = "none";
810						$("#security5_block")[0].style.display = "none";
811					}
812				}
813			}	
814		}			
815	}
816
817	if(!parent.wl_info.band5g_2_support){
818		$("#freqtitle5_2")[0].style.display = "none";
819		$("#ssid5_2_block")[0].style.display = "none";
820		$("#key5_2_block")[0].style.display = "none";
821		$("#security5_2_block")[0].style.display = "none";
822	}
823	else{
824		parent.document.getElementById("contentM").style.height = "630px";
825		$("#band5g_desc")[0].innerHTML = "(5GHz-1)";
826		$("#ssid_5_2_item")[0].innerHTML = "<#QIS_finish_wireless_item1#>";
827		$("#ssid_5_2")[0].innerHTML = handle_show_str(decodeURIComponent('<% nvram_char_to_ascii("", "wl2_ssid"); %>'));
828		$("#security_item5_2")[0].innerHTML = "<#QIS_finish_wireless_item2#>";	
829
830		shown_str = "";
831		if(auth_mode_5_2 == "open" && wep_x_5_2 == "0"){
832			$("#security5_2")[0].innerHTML = "Open System";
833			$("#key5_2_block")[0].style.display = "none";
834		}
835		else if(auth_mode_5_2 == "open" && wep_x_5_2 != "0"){
836			$("#security5_2")[0].innerHTML = "Open System";
837			$("#key5_2_item")[0].innerHTML = "<#Network_key#>";
838			if(key_x_5_2 ==1)
839				shown_str = '<% nvram_get("wl2_key1"); %>';
840			else if(key_x_5_2 ==2)	
841				shown_str = '<% nvram_get("wl2_key2"); %>';
842			else if(key_x_5_2 ==3)
843				shown_str = '<% nvram_get("wl2_key3"); %>';
844			else if(key_x_5_2 ==4)		
845				shown_str = '<% nvram_get("wl2_key4"); %>';
846		}
847		else if(auth_mode_5_2 == "shared"){
848			$("#security5_2")[0].innerHTML = "Shared Key";
849			$("#key5_2_item")[0].innerHTML = "<#Network_key#>";
850			if(key_x_5_2 ==1)
851				shown_str = '<% nvram_get("wl2_key1"); %>';
852			else if(key_x_5_2 ==2)	
853				shown_str = '<% nvram_get("wl2_key2"); %>';
854			else if(key_x_5_2 ==3)
855				shown_str = '<% nvram_get("wl2_key3"); %>';
856			else if(key_x_5_2 ==4)		
857				shown_str = '<% nvram_get("wl2_key4"); %>';
858		}
859		else if(auth_mode_5_2 == "psk"){
860			if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
861				$("#security5_2_block")[0].style.display = "none";
862			$("#security5_2")[0].innerHTML = "WPA-Personal - TKIP";
863			$("#key5_2_item")[0].innerHTML = "<#Network_key#>";
864			shown_str = '<% nvram_char_to_ascii("", "wl2_wpa_psk"); %>';
865		}
866		else if(auth_mode_5_2 == "psk2"){
867			if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
868				$("#security5_2_block")[0].style.display = "none";
869			$("#security5_2")[0].innerHTML = "WPA2-Personal - AES";
870			$("#key5_2_item")[0].innerHTML = "<#Network_key#>";
871			shown_str = '<% nvram_char_to_ascii("", "wl2_wpa_psk"); %>';
872		}
873		else if(auth_mode_5_2 == "pskpsk2"){
874			if(parent.based_modelid == "RT-AC5300" || parent.based_modelid == "RT-AC3200")
875				$("#security5_2_block")[0].style.display = "none";
876			$("#security5_2")[0].innerHTML = "WPA-Auto-Personal - TKIP + AES";
877			$("#key5_2_item")[0].innerHTML = "<#Network_key#>";
878			shown_str = '<% nvram_char_to_ascii("", "wl2_wpa_psk"); %>';
879		}
880		else{	
881			$("#freqtitle5_2")[0].style.display = "none";
882			$("#ssid5_2_block")[0].style.display = "none";
883			$("#key5_2_block")[0].style.display = "none";
884			$("#security5_2_block")[0].style.display = "none";
885		}
886		$("#key5_2")[0].innerHTML = handle_show_str(decodeURIComponent(shown_str));
887	}	
888
889	// Connection Status
890	$("#mac_item")[0].innerHTML = "<#MAC_Address#>";
891	$("#mac")[0].innerHTML = '<% nvram_get("lan_hwaddr"); %>';
892	$("#wantype_item")[0].innerHTML = "<#Layer3Forwarding_x_ConnectionType_itemname#>";
893	
894
895	if(parent.dualWAN_support){
896		if(first_wanlink_type() == "dhcp")
897			var wanlink_type_conv = "<#BOP_ctype_title1#>";
898		else 	if(first_wanlink_type() == "pppoe" || first_wanlink_type() == "PPPOE" )
899			var wanlink_type_conv = "PPPoE";
900		else 	if(first_wanlink_type() == "static")
901			var wanlink_type_conv = "<#BOP_ctype_title5#>";
902		else 	if(first_wanlink_type() == "pptp")
903			var wanlink_type_conv = "PPTP";
904		else 	if(first_wanlink_type() == "l2tp")
905			var wanlink_type_conv = "L2TP";
906		else
907			var wanlink_type_conv = first_wanlink_type();
908		if(parent.wans_dualwan_array[1] != "none"){
909			if(secondary_wanlink_type() == "dhcp")
910				var secondary_wanlink_type_conv = "<#BOP_ctype_title1#>";
911			else 	if(secondary_wanlink_type() == "pppoe" || secondary_wanlink_type() == "PPPOE" )
912				var secondary_wanlink_type_conv = "PPPoE";
913			else 	if(secondary_wanlink_type() == "static")
914				var secondary_wanlink_type_conv = "<#BOP_ctype_title5#>";
915			else 	if(secondary_wanlink_type() == "pptp")
916				var secondary_wanlink_type_conv = "PPTP";
917			else 	if(secondary_wanlink_type() == "l2tp")
918				var secondary_wanlink_type_conv = "L2TP";
919			else
920				var secondary_wanlink_type_conv = secondary_wanlink_type();	
921		}
922	}
923	else{
924		if(wanlink_type() == "dhcp")
925			var wanlink_type_conv = "<#BOP_ctype_title1#>";
926		else 	if(wanlink_type() == "pppoe" || wanlink_type() == "PPPOE" )
927			var wanlink_type_conv = "PPPoE";
928		else 	if(wanlink_type() == "static")
929			var wanlink_type_conv = "<#BOP_ctype_title5#>";
930		else 	if(wanlink_type() == "pptp")
931			var wanlink_type_conv = "PPTP";
932		else 	if(wanlink_type() == "l2tp")
933			var wanlink_type_conv = "L2TP";
934		else
935			var wanlink_type_conv = wanlink_type();		
936	}
937	
938	if(parent.dualWAN_support){
939		if(gobi_support){
940			if(wanlink_type_conv == "USB Modem")
941				wanlink_type_conv = "<#Mobile_title#>";
942			document.getElementById("wantype").innerHTML = wanlink_type_conv;
943			
944			if(parent.wans_dualwan_array[1] != "none"){
945				document.getElementById("wantype2").style.display = "";
946				document.getElementById("wanstatus2").style.display = "";
947				document.getElementById("wanip2").style.display = "";				
948				if(secondary_wanlink_type_conv == "USB Modem")
949					secondary_wanlink_type_conv = "<#Mobile_title#>";
950				document.getElementById("wantype2").innerHTML = secondary_wanlink_type_conv;
951			}
952		}
953		else{
954			if(parent.QKform.wans_dualwan.disabled == false && parent.QKform.wans_dualwan.value == "wan usb"){
955				$("#wantype")[0].innerHTML = "USB Modem";
956			}
957			else{
958				if(wan_primary == "wan0")
959					$("#wantype")[0].innerHTML = wanlink_type_conv;
960				else if(wan_primary == "wan1")
961					$("#wantype")[0].innerHTML = secondary_wanlink_type_conv;
962			}
963		}
964	}
965	else
966		$("#wantype")[0].innerHTML = wanlink_type_conv;
967
968	$("#wanip_item")[0].innerHTML = "<#WAN_IP#>";
969	
970		//Repeater mode P-AP
971	if(sw_mode == "2"){
972		$("#wlcssid")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wlc_ssid"); %>');
973		$("#wlcip")[0].innerHTML = reIP;
974		chkRepeaterConState();
975		$(".reItem").css("display", "none");
976		$(".wlcItem").css("display", "");
977		document.getElementById("tdWlcItem").innerHTML = "<#OP_RE_item#>";
978	}
979	else if(sw_mode == "4") {
980		$("#wlcssid")[0].innerHTML = decodeURIComponent('<% nvram_char_to_ascii("", "wlc_ssid"); %>');
981		$("#wlcip")[0].innerHTML = reIP;
982		chkMBConState();
983		$(".reItem").css("display", "none");
984		$(".wlcItem").css("display", "");
985		$(".wlItem").css("display", "none");
986		document.getElementById("tdWlcItem").innerHTML = "<#OP_MB_item#>";
987	}
988	else{
989		if(parent.dualWAN_support){
990			if(gobi_support){
991				document.getElementById("wanip").innerHTML = first_wanlink_ipaddr();
992				if(wanlink_ipaddr() != "0.0.0.0"){
993					if(wans_mode == "fb" || wans_mode == "fo"){
994						if( wan_primary == "wan0" )
995							document.getElementById("wanstatus1").innerHTML = "<#Status_Active#>";
996						else
997							document.getElementById("wanstatus1").innerHTML = "<#Status_Standby#>";
998					}
999					else //Load-balance
1000						document.getElementById("wanstatus1").innerHTML = "<#Status_Active#>";
1001				}
1002				else{
1003					document.getElementById("wanip").style.display = "none";
1004					document.getElementById("wanstatus1").innerHTML = "<#Status_Inactive#>";
1005				}
1006				
1007				if(parent.wans_dualwan_array[1] != "none"){
1008					document.getElementById("wanip2").innerHTML = secondary_wanlink_ipaddr();
1009					if(secondary_wanlink_ipaddr() != "0.0.0.0"){
1010						if(wans_mode == "fb" || wans_mode == "fo"){
1011							if( wan_primary == "wan1" )
1012								document.getElementById("wanstatus2").innerHTML = "<#Status_Active#>";
1013							else
1014								document.getElementById("wanstatus2").innerHTML = "<#Status_Standby#>";
1015						}
1016						else //Load-balance
1017							document.getElementById("wanstatus2").innerHTML = "<#Status_Active#>";
1018					}
1019					else{
1020						document.getElementById("wanip2").style.display = "none";
1021						document.getElementById("wanstatus2").innerHTML = "<#Status_Inactive#>";
1022					}
1023				}
1024			}
1025			else{
1026				if(wan_primary == "wan0"){
1027					if(wanlink_ipaddr() != "0.0.0.0")
1028						$("#wanip")[0].innerHTML = wanlink_ipaddr();
1029					else
1030						document.getElementById("wanip_tr").style.display = "none";
1031				}
1032				else if(wan_primary == "wan1"){
1033					if(secondary_wanlink_ipaddr() != "0.0.0.0")
1034						$("#wanip")[0].innerHTML = secondary_wanlink_ipaddr();
1035					else
1036						document.getElementById("wanip_tr").style.display = "none";
1037				}
1038			}
1039		}
1040		else{
1041			if(wanlink_ipaddr() != "0.0.0.0")
1042				$("#wanip")[0].innerHTML = wanlink_ipaddr();
1043			else
1044				document.getElementById("wanip_tr").style.display = "none";
1045		}
1046
1047		$("#lanip_item")[0].innerHTML = "<#LAN_IP#>";
1048		$("#lanip")[0].innerHTML = reIP;
1049		$(".wlcItem").css("display", "none");
1050
1051		if(parent.yadns_support && sw_mode==1 ){
1052			$("#yadns_enable").checked = (yadns_enable != 0) ? true : false;
1053			$("#yadns_defmode").checked = (yadns_mode == 1) ? true : false;
1054			if(!parent.yadns_hideqis || yadns_enable != 0)
1055				$(".yadnsItem").css("display", "");
1056			yadns_change(false);
1057		}
1058
1059		if(sw_mode == "3") {
1060			$(".wanItem").css("display", "none");
1061			$("#nextButton").css("display", "none");
1062
1063			if(parent.isStatic){
1064				$("#lanip")[0].innerHTML = parent.staticIP;
1065				document.getElementById("applyBtn").innerHTML = "<div style='text-align:left;margin-left:70px;'><br/><br/><#SAVE_restart_desc#><br><#LAN_IP_changed_suggedtion1#>&nbsp;" + parent.staticIP + "&nbsp;<#LAN_IP_changed_suggedtion2#></div>";
1066				
1067				var startQuery = function(){
1068					$.ajax({ 
1069						url: location.origin.replace(location.hostname, parent.staticIP) + "/httpd_check.json",
1070						dataType: 'jsonp',
1071						timeout: 2000,
1072
1073						error: function(){
1074							setTimeout(function(){
1075								startQuery();
1076							}, 1000);
1077						}
1078					});
1079
1080				}
1081
1082				setTimeout(function(){
1083					startQuery();
1084				}, 80000);
1085			}
1086			else{
1087				$("#lanip")[0].innerHTML = "<#BOP_ctype_title1#>";
1088				document.getElementById("applyBtn").innerHTML = "<div style='text-align:left;margin-left:75px;'><br/><br/><#LANConfig_ChangedLANIP#></div>";
1089			}
1090		}
1091	}
1092
1093	// System account
1094	$("#account_item")[0].innerHTML = "<#QIS_finish_admin_item1#>";
1095	$("#account")[0].innerHTML = '<% nvram_get("http_username"); %>';
1096	$("#password_item")[0].innerHTML = "<#QIS_finish_admin_item2#>";
1097 	$("#password")[0].innerHTML = "*";
1098	
1099	//NTP sync or not
1100	if('<% nvram_get("svc_ready"); %>' == '0')
1101		document.getElementById('svc_hint_div').style.display = "";	
1102
1103	if(parent.ISMOBILE){
1104		hideObjs();
1105		document.getElementById("tblsetting_1").style.display = "none";
1106		document.getElementById("timeObject").style.display = "none";
1107		document.getElementById("mainDiv_finish").style.display = "";
1108		document.getElementById("wanip_m").innerHTML = document.getElementById("wanip").innerHTML;
1109		document.getElementById("wantype_m").innerHTML = wanlink_type_conv;
1110		document.getElementById("lanip_m").innerHTML = document.getElementById("lanip").innerHTML;
1111		document.getElementById("mac_m").innerHTML = document.getElementById("mac").innerHTML;
1112
1113		if(parent.new_FW){
1114			document.getElementById("mainDiv_finish").style.display = "none";
1115			document.getElementById("liveUpdate_div").style.display = "";
1116			document.getElementById("liveUpdateTitle").style.display = "none";
1117			$("#currentFW")[0].innerHTML = parent.exist_firmver + "_" + parent.current_buildno + "_" + parent.current_extendno;
1118			$("#latestFW")[0].innerHTML = "" 
1119			for(var i=0; i<parent.Latest_firm.length; i++){
1120				$("#latestFW")[0].innerHTML += parent.Latest_firm.charAt(i);
1121				if(i == parent.Latest_firm.length - 1)
1122					$("#latestFW")[0].innerHTML += "_";
1123				else
1124					$("#latestFW")[0].innerHTML += ".";
1125			}
1126			$("#latestFW")[0].innerHTML += parent.Latest_buildno;
1127			$("#latestFW")[0].innerHTML += "_";
1128			$("#latestFW")[0].innerHTML += parent.Latest_extendno;
1129		}
1130	}
1131	else{		
1132		parent.set_step("t3");
1133		parent.document.getElementById("LoadingBar").style.visibility = 'hidden';
1134	}
1135	
1136	if(!parent.sysReboot) setTimeout("check_firmware();", 1000);
1137}
1138
1139function check_firmware(){
1140	if(!parent.new_FW){
1141		gotoNext();
1142	}	
1143}
1144
1145function iAmAlive(){
1146	top.location.href = "http://" + parent.staticIP;					
1147}
1148
1149function gotoASUS(){
1150	parent.location.href = "http://www.asus.com/support/";
1151}
1152
1153var wans_dualwan_orig = '<% nvram_get("wans_dualwan"); %>';
1154function goto_index(){
1155	document.restartForm.force_change.value++;
1156	document.restartForm.action_wait.value = 0;
1157
1158	if(parent.based_modelid == "4G-AC55U" && parent.wan_autodet_state == "4" && parent.usb_connected == 1 && wans_dualwan_orig == "wan usb"){
1159		document.restartForm.wans_dualwan.disabled = false;
1160		document.restartForm.wans_dualwan.value = "usb wan";
1161		parent.sysReboot = true;
1162	}
1163
1164	if(parent.QKform.wans_dualwan.disabled == false){
1165		document.restartForm.wans_dualwan.disabled = false;
1166		document.restartForm.wans_dualwan.value = parent.QKform.wans_dualwan.value;
1167		document.restartForm.modem_enable.disabled = false;
1168		document.restartForm.modem_enable.value = parent.QKform.modem_enable.value;
1169		document.restartForm.modem_country.disabled = false;
1170		document.restartForm.modem_country.value = parent.QKform.modem_country.value;
1171		document.restartForm.modem_isp.disabled = false;
1172		document.restartForm.modem_isp.value = parent.QKform.modem_isp.value;
1173		document.restartForm.modem_apn.disabled = false;
1174		document.restartForm.modem_apn.value = parent.QKform.modem_apn.value;
1175		document.restartForm.modem_dialnum.disabled = false;
1176		document.restartForm.modem_dialnum.value = parent.QKform.modem_dialnum.value;
1177		document.restartForm.modem_pincode.disabled = false;
1178		document.restartForm.modem_pincode.value = parent.QKform.modem_pincode.value;
1179		document.restartForm.modem_user.disabled = false;
1180		document.restartForm.modem_user.value = parent.QKform.modem_user.value;
1181		document.restartForm.modem_pass.disabled = false;
1182		document.restartForm.modem_pass.value = parent.QKform.modem_pass.value;
1183		document.restartForm.modem_ttlsid.disabled = false;
1184		document.restartForm.modem_ttlsid.value = parent.QKform.modem_ttlsid.value;
1185		document.restartForm.Dev3G.disabled = false;
1186		document.restartForm.Dev3G.value = parent.QKform.Dev3G.value;
1187	}
1188
1189	if(parent.sysReboot){
1190		document.restartForm.action_wait.value = parent.rebootTime;
1191		document.restartForm.action_script.value = "reboot";
1192		document.getElementById('loadingIcon').style.display = '';
1193	}
1194	else{
1195		if(parent.restartTime){
1196			document.restartForm.action_script.value = "restart_time";
1197		}
1198
1199		if(top.restartWireless){
1200			if(document.restartForm.productid.value == "RT-AC88U" || document.restartForm.productid.value == "RT-AC3100" || document.restartForm.productid.value == "RT-AC5300")
1201				document.restartForm.action_wait.value = 6;
1202			else
1203				document.restartForm.action_wait.value = 2;
1204				
1205			if(document.restartForm.action_script.value == "")
1206				document.restartForm.action_script.value = "restart_wireless";
1207			else
1208				document.restartForm.action_script.value += ";restart_wireless";
1209		}
1210		
1211		if(parent.restartTime){
1212			if(document.restartForm.productid.value == "RT-AC88U" || document.restartForm.productid.value == "RT-AC3100" || document.restartForm.productid.value == "RT-AC5300")
1213				document.restartForm.action_wait.value = 6;
1214			else
1215				document.restartForm.action_wait.value = 5;
1216		}	
1217	}	
1218
1219	/*if(document.restartForm.action_wait.value == 0){
1220		document.getElementById('loadingIcon').style.display = '';
1221	}
1222	else{
1223		document.getElementById("QISmain").style.display = "none";
1224		document.getElementById("liveUpdate_div").style.display = "none";
1225		document.getElementById('qisFinish_div').style.display = '';
1226	}*/
1227
1228	if(parent.based_modelid == "4G-AC55U" && wans_mode == "lb"){
1229		document.restartForm.wans_mode.disabled = false;
1230	}
1231
1232	document.restartForm.submit();
1233}
1234
1235function gotoAdvSetting(){
1236	parent.location = "/Advanced_Wireless_Content.asp";
1237}
1238
1239function startLiveDetect(){
1240	document.getElementById('loadingIcon').style.display = '';
1241	parent.detect_update();
1242}
1243
1244function redirect_index(){
1245	parent.document.getElementById("btn_gotoindex").onclick = "";
1246	parent.document.getElementById("btn_gotoindex").style.cursor = "";
1247	parent.document.getElementById("btn_gotoindex").className = "m_qis_r_blocked";	
1248	if(parent.new_FW){
1249		return checkIsNewFirmware();
1250	}
1251	else if(parent.sysReboot){
1252		return gotoNext();		
1253	}
1254	else{
1255		parent.location.href = "/index.asp";
1256	}
1257}
1258
1259function gotoNext(){
1260	if(parent.yadns_support && parent.yadns_stage == 1) {
1261		parent.yadns_stage++;
1262		return yadns_apply();
1263	}
1264	return checkIsNewFirmware();
1265}
1266
1267function addBookmarkForBrowser(sTitle){
1268	 sTitle = sTitle+" - "+reIP;
1269	 
1270   if(document.all)
1271      window.external.addFavorite('http://'+reIP, sTitle);
1272   else if(window.sidebar && window.sidebar.addPanel)
1273      window.sidebar.addPanel(sTitle, 'http://'+reIP, "");
1274   else{
1275			addBookmarkForBrowser = function(){
1276				alert("<#Browser_action_not_support_addfavorite#>");
1277			}
1278   }
1279}
1280
1281function translate_auth(flag){
1282	if(flag == "open")
1283		return "Open System";
1284	else if(flag == "shared")
1285		return "Shared Key";
1286	else if(flag == "psk")
1287		return "WPA-Personal";
1288	else if(flag == "psk2")
1289 		return "WPA2-Personal";
1290	else if(flag == "pskpsk2")
1291		return "WPA-Auto-Personal";
1292	else
1293		return "unknown Auth";
1294}
1295
1296function redirect_page(redirect_flag){
1297	document.redirectForm.action = "/qis/QIS_"+redirect_flag+".htm";
1298	document.redirectForm.submit();
1299}
1300
1301function submitenter(myfield,event){
1302	var keyPressed;
1303	keyPressed = event.keyCode ? event.keyCode : event.which;
1304	if (keyPressed == 13){
1305		gotoNext();
1306	}
1307	else
1308		return true;
1309}
1310
1311function set_timezone(){
1312	var systime = new Date();
1313	Date.prototype.stdTimezoneOffset_north = function() {
1314    var jan = new Date(this.getFullYear(), 0, 1);
1315    var jul = new Date(this.getFullYear(), 6, 1);
1316    return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());
1317	}
1318
1319	Date.prototype.stdTimezoneOffset_south = function() {
1320    var jan = new Date(this.getFullYear(), 0, 1);
1321    var jul = new Date(this.getFullYear(), 6, 1);
1322    return Math.min(jan.getTimezoneOffset(), jul.getTimezoneOffset());
1323	}
1324
1325	Date.prototype.dst = function() {
1326    return (this.getTimezoneOffset() < this.stdTimezoneOffset_north() || this.getTimezoneOffset() > this.stdTimezoneOffset_south());
1327	}	
1328	
1329	var system_timezone_dut = document.form.time_zone.value;
1330	var system_timezone = parseInt(document.form.time_zone_x.value.substring(3));	
1331	var client_timezone = systime.getTimezoneOffset();
1332
1333	if(parent.isFirst && (system_timezone*60 != client_timezone)){		//Tune DUT time while x_Setting=0
1334			systime_millsec += (-client_timezone*60000);			
1335	}
1336	
1337	if(typeof timezones[system_timezone_dut] != "undefined")
1338		document.getElementById('change_tz').innerHTML = timezones[system_timezone_dut];
1339
1340	if(system_timezone_dut.search("DST") >= 0){
1341		document.getElementById('dstzone').style.display = "";
1342		document.getElementById('dstzone').innerHTML = "<#General_x_SystemTime_dst#>";
1343	}
1344
1345	showclock();
1346}
1347function showclock(){
1348	JS_timeObj.setTime(systime_millsec);
1349	systime_millsec += 1000;
1350	JS_timeObj2 = JS_timeObj.toString();	
1351	JS_timeObj2 = JS_timeObj2.substring(0,3) + ", " +
1352	              JS_timeObj2.substring(4,10) + "  " +
1353				  parent.checkTime(JS_timeObj.getHours()) + ":" +
1354				  parent.checkTime(JS_timeObj.getMinutes()) + ":" +
1355				  parent.checkTime(JS_timeObj.getSeconds()) + "  " +
1356				  JS_timeObj.getFullYear();
1357	$("#system_time")[0].innerHTML = JS_timeObj2;
1358	setTimeout("showclock()", 1000);
1359}
1360
1361function chkRepeaterConState(){
1362	$.ajax({
1363		url: '/apscan.asp',
1364		dataType: 'script',
1365		timeout: 2000,
1366		error: function(xhr){
1367			setTimeout("chkRepeaterConState();", 1000);
1368		},
1369		success: function(response){
1370			if(wlc_state == 2) {
1371				$("#wlcstate")[0].innerHTML = "<#APSurvey_action_ConnectingStatus24#>";
1372			}
1373			else{
1374				$("#wlcstate")[0].innerHTML = "<span style='color:#FC0;text-decoration:underline;cursor:pointer;' onclick=\"javascript:parent.location.href=\'http://'+ theUrl +'/QIS_wizard.htm?flag=sitesurvey_rep\';\"><#APSurvey_action_ConnectingStatus0#></span>";
1375			}
1376		}
1377	});
1378}
1379function chkMBConState(){
1380	$.ajax({
1381		url: '/ajax_wlc_state.asp',
1382		dataType: 'script',
1383		timeout: 2000,
1384		error: function(xhr){
1385			setTimeout("chkMBConState();", 1000);
1386		},
1387		success: function(response){
1388			if(wlc_state == 1) {
1389				$("#wlcstate")[0].innerHTML = "<#APSurvey_action_ConnectingStatus24#>";
1390			}
1391			else{
1392				$("#wlcstate")[0].innerHTML = "<span style='color:#FC0;text-decoration:underline;cursor:pointer;' onclick=\"javascript:parent.location.href=\'http://'+ theUrl +'/QIS_wizard.htm?flag=sitesurvey_mb\';\"><#APSurvey_action_ConnectingStatus0#></span>";
1393			}
1394		}
1395	});
1396}
1397</script>
1398</head>
1399
1400<body onLoad="QKfinish_load_body();set_timezone();" onKeyPress="submitenter(this,event)">
1401<form method="post" name="redirectForm" action="" target="">
1402<input type="hidden" name="prev_page" value="">
1403<input type="hidden" name="current_page" value="/qis/QIS_fail.htm">
1404<input type="hidden" name="next_page" value="">
1405<input type="hidden" name="action_mode" value="">
1406<input type="hidden" name="action_script" value="">
1407<input type="hidden" name="action_wait" value="">
1408</form>
1409
1410<form method="post" name="form" action="" target="hidden_frame" onsubmit="goto_index();">
1411<input type="hidden" name="wl0_ssid2" value="<% nvram_char_to_ascii("WLANConfig11b", "wl0_ssid"); %>">
1412<input type="hidden" name="wl1_ssid2" value="<% nvram_char_to_ascii("WLANConfig11b", "wl1_ssid"); %>">
1413<input type="hidden" name="wl0_wpa_psk" value="<% nvram_char_to_ascii("WLANConfig11b", "wl0_wpa_psk"); %>">
1414<input type="hidden" name="wl1_wpa_psk" value="<% nvram_char_to_ascii("WLANConfig11b", "wl1_wpa_psk"); %>">
1415<input type="hidden" name="wl2_ssid2" value="<% nvram_char_to_ascii("WLANConfig11b", "wl2_ssid"); %>">
1416<input type="hidden" name="wl2_wpa_psk" value="<% nvram_char_to_ascii("WLANConfig11b", "wl2_wpa_psk"); %>">
1417<input type="hidden" name="time_zone_x" value="<% nvram_get("time_zone_x"); %>" disabled>
1418<input type="hidden" name="time_zone" value="<% nvram_get("time_zone"); %>" disabled>
1419<div class="QISmain" id="QISmain" style="display:none">
1420		<div id="descTltle">
1421			<table width="100%">
1422				<tr>
1423					<td align="left">
1424						<div class="description_down"><#qis_finish_title1#></div>
1425					</td>
1426					<td align="right">
1427						<!--img onclick="parent.gotoIndex();" style="cursor:pointer;" align="right" title="Go to Home" src="/images/backtohome.png" onMouseOver="this.src='/images/backtohomeclick.png'" onMouseOut="this.src='/images/backtohome.png'"-->
1428					</td>
1429				</tr>
1430			</table>
1431		</div>
1432		<div style="margin:5px;" id="splitLine"><img style="width: 720px; *width: 710px; height: 2px;" src="/images/New_ui/export/line_export.png"></div>
1433<br/>
1434
1435<p id="timeObject" class="QISGeneralFont" style="margin-top:-5px;"><#General_x_SystemTime_itemname#>: <span id="system_time" size="40" class="devicepin" style="font-size:12px;"></span>&nbsp&nbsp<span id="change_tz" style="font-family:Lucida Console;"></span>&nbsp<span id="dstzone" style="display:none;"></span></p>
1436<div id="svc_hint_div" style="margin-left:70px;display:none;"><span style="color:#FFCC00;"><#General_x_SystemTime_syncNTP#></span></div>
1437<br/>
1438
1439<table id="tblsetting_1" class="QISform_finish" width="400" border=0 align="center" cellpadding="5" cellspacing="0" style="margin-top:-10px;">
1440	<tr id="freqtitle">
1441		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><#menu5_1#></td>	
1442	</tr>
1443
1444	<!--2.4G  5G-->
1445	<tr id="band_block">
1446	  <th width="250"><#Interface#></th>
1447	  <td class="QISformtd" width="300px"><span style="white-space: pre;">2.4GHz</span></td>
1448	  <td class="QISformtd" width="300px"><span style="white-space: pre;">5GHz</span></td>
1449	</tr>
1450	<tr id="ssid_block">
1451	  <th><#QIS_finish_wireless_item1#></th>
1452	  <td class="QISformtd"><span id="ssid_2g" style="white-space: pre-wrap; word-break: break-all;"></span></td>
1453	  <td class="QISformtd"><span id="ssid_5g" style="white-space: pre-wrap; word-break: break-all;"></span></td>
1454	</tr>
1455	<tr id="key_block">
1456	  <th><#Network_key#></th>
1457	  <td class="QISformtd"><span id="key2g" style="word-break: break-all;"></span></td>
1458	  <td class="QISformtd"><span id="key5g" style="word-break: break-all;"></span></td>
1459	</tr>
1460	<tr id="security_block">
1461	  <th><#QIS_finish_wireless_item2#></th>
1462	  <td class="QISformtd"><span id="security2g"></span></td>
1463	  <td class="QISformtd"><span id="security5g"></span></td>
1464	</tr>
1465
1466	<!-- WL 2.4GHz -->
1467	<tr id="freqtitle2" class="wlItem">
1468		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><#menu5_1#> <span style="color:#5AD;" id="desc2g">(2.4GHz)</span></td>	
1469	</tr>
1470	<tr id="ssid2_block" class="wlItem">
1471	  <th width="180"><span id="ssid_2_item"></span></th>
1472	  <td class="QISformtd" width="300px">
1473			<span id="ssid_2" style="white-space: pre-wrap; word-break: break-all;"></span>
1474	  </td>
1475	</tr>
1476	<tr id="key2_block" class="wlItem">
1477	  <th width="180"><span id="key2_item"></span></th>
1478	  <td class="QISformtd">
1479			<span id="key2" style="word-break: break-all;"></span>
1480	  </td>
1481	</tr>
1482	<tr id="security2_block" class="wlItem">
1483	  <th width="180"><span id="security_item2"></span></th>
1484	  <td class="QISformtd">
1485			<span id="security2"></span>
1486	  </td>
1487	</tr>
1488
1489	<!-- WL 5GHz -->
1490	<tr id="freqtitle5" class="wlItem">
1491		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><#menu5_1#> <span id="band5g_desc" style="color:#5AD;">(5GHz)</span></td>	
1492	</tr>
1493	<tr id="ssid5_block" class="wlItem">
1494	  <th width="180"><span id="ssid_5_item"></span></th>
1495	  <td class="QISformtd">
1496			<span id="ssid_5" style="white-space: pre-wrap; word-break: break-all;"></span>
1497	  </td>
1498	</tr>
1499	<tr id="key5_block" class="wlItem">
1500	  <th width="180"><span id="key5_item"></span></th>
1501	  <td class="QISformtd">
1502			<span id="key5" style="word-break: break-all;"></span>
1503	  </td>
1504	</tr>
1505	<tr id="security5_block" class="wlItem">
1506	  <th width="180"><span id="security_item5"></span></th>
1507	  <td class="QISformtd">
1508			<span id="security5"></span>
1509	  </td>
1510	</tr>
1511
1512		<!-- WL 5GHz-2 -->
1513	<tr id="freqtitle5_2" class="wlItem">
1514		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><#menu5_1#> <span style="color:#5AD;">(5GHz-2)</span></td>	
1515	</tr>
1516	<tr id="ssid5_2_block" class="wlItem">
1517	  <th width="180"><span id="ssid_5_2_item"></span></th>
1518	  <td class="QISformtd">
1519			<span id="ssid_5_2" style="white-space: pre;"></span>
1520	  </td>
1521	</tr>
1522	<tr id="key5_2_block" class="wlItem">
1523	  <th width="180"><span id="key5_2_item"></span></th>
1524	  <td class="QISformtd">
1525			<span id="key5_2"></span>
1526	  </td>
1527	</tr>
1528	<tr id="security5_2_block" class="wlItem">
1529	  <th width="180"><span id="security_item5_2"></span></th>
1530	  <td class="QISformtd">
1531			<span id="security5_2"></span>
1532	  </td>
1533	</tr>
1534
1535	<!-- WAN -->
1536	<tr class="reItem wanItem">
1537		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><div id="wan_hd1"><#menu5_3#></div></td>	
1538	</tr>
1539	<tr class="reItem wanItem">
1540	  <th width="180"><span id="wantype_item"></span></th>
1541	  <td class="QISformtd"><span id="wantype"></span></td>
1542	  <td class="QISformtd"><span id="wantype2" style="display: none;"></span></td>
1543	</tr>
1544	<tr class="reItem wanItem" id="wanstatus_tr1">
1545	  <th width="180"><#Status_Str#> </th>
1546	  <td class="QISformtd"><span id="wanstatus1"></span></td>
1547	  <td class="QISformtd"><span id="wanstatus2" style="display: none;"></span></td>
1548	</tr>
1549	<tr class="reItem wanItem" id="wanip_tr">
1550	  <th width="180"><span id="wanip_item"></span></th>
1551	  <td class="QISformtd"><span id="wanip"></span></td>
1552	  <td class="QISformtd"><span id="wanip2" style="display: none;"></span></td>
1553	</tr>
1554
1555	<!-- LAN -->
1556	<tr class="reItem">
1557		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><#menu5_2#></td>	
1558	</tr>
1559	<tr class="reItem">
1560	  <th width="180"><span id="lanip_item"></span></th>
1561	  <td class="QISformtd">
1562			<span id="lanip"></span>
1563	  </td>
1564	</tr>
1565
1566	<tr class="reItem">
1567	  <th width="180"><span id="mac_item"></span></th>
1568	  <td class="QISformtd">
1569			<span id="mac"></span>
1570	  </td>
1571	</tr>
1572
1573	<tr style="display:none;">
1574	  <th width="180"><span id="account_item"></span></th>
1575	  <td class="QISformtd">
1576			<span id="account"></span>
1577	  </td>
1578	</tr>
1579
1580	<tr style="display:none;">
1581	  <th width="180"><span id="password_item"></span></th>
1582	  <td class="QISformtd">
1583			<span id="password"></span>
1584	  </td>
1585	</tr>
1586
1587	<tr class="yadnsItem" style="display:none;">
1588		<td align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"><#YandexDNS#></td>
1589	<tr>
1590	<tr class="yadnsItem" style="display:none;">
1591	  <td class="QISformtd" colspan="4">
1592		<#YandexDNS_desc1#><br>
1593		<input type="checkbox" id="yadns_enable" colspan="4" onchange="yadns_change(true);" <% nvram_match("yadns_enable_x", "1", "checked"); %>><#YandexDNS_qis_lua#><br>
1594		<input type="checkbox" id="yadns_defmode" colspan="4" onchange="yadns_change(true);" <% nvram_match("yadns_mode", "1", "checked"); %>><#YandexDNS_qis_default#>
1595	  </td>
1596	</tr>
1597
1598	<!-- WLC -->
1599	<tr class="wlcItem">
1600		<td id="tdWlcItem" align="left" colspan="4" style="color:#5AD;font-size:16px; border-bottom:1px dashed #AAA;"></td>	
1601	</tr>
1602	<tr class="wlcItem">
1603	  <th width="180"><span id="wlcssid_item"><#QIS_finish_wireless_item1#> (<#remote#>)</span></th>
1604	  <td class="QISformtd">
1605			<span id="wlcssid"></span>
1606	  </td>
1607	</tr>
1608
1609	<tr class="wlcItem">
1610	  <th width="180"><span id="wlcstate_item"><#statusTitle_AP#></span></th>
1611	  <td class="QISformtd">
1612			<span id="wlcstate"></span>
1613	  </td>
1614	</tr>
1615
1616	<tr class="wlcItem">
1617	  <th width="180"><span id="wlcip_item"><#QIS_internet_success_item1#></span></th>
1618	  <td class="QISformtd">
1619			<span id="wlcip"></span>
1620	  </td>
1621	</tr>
1622</table>
1623
1624<div id="mainDiv_finish" style="display:none;margin-top:-40px;">
1625	<div class="itemTitle"><#menu5_3#></div>
1626	<fieldset>
1627		<div class="row">
1628			<label><#WAN_IP#></label>
1629			<div id="wanip_m"></div>
1630		</div>
1631		<div class="row_end">
1632			<label><#wan_type#></label>
1633			<div id="wantype_m"></div>
1634		</div>
1635	</fieldset>
1636	<br />
1637	<div class="itemTitle"><#menu5_2#></div>
1638	<fieldset>
1639		<div class="row">
1640			<label><#LAN IP#></label>
1641			<div id="lanip_m"></div>
1642		</div>
1643		<div class="row_end">
1644			<label><#MAC_Address#></label>
1645			<div id="mac_m"></div>
1646		</div>
1647	</fieldset>
1648	<br />
1649	
1650	<fieldset>
1651		<div class="row_end"><a class="iuiA" onclick="parent.location.href='/index.asp';"><#menu5#></a></div>
1652	</fieldset>
1653	<br />
1654	<fieldset>
1655		<div class="row_end"><a class="iuiA" onclick="parent.location.href='/Logout.asp';"><#t1Logout#></a></div>
1656	</fieldset>
1657
1658	<!-- support Live update -->
1659	<!--fieldset class="theFieldset">
1660		<div class="row_end"><a class="iuiA" onclick="">check FW</a></div>
1661	</fieldset-->
1662</div>
1663
1664<div id="applyBtn" class="apply_gen" style="margin-top:30px">
1665	<!--input type="button" id="nextButton" value="<#CTL_finish#>" onclick="gotoNext();" class="button_gen"-->
1666	<input type="button" id="nextButton" value="<#CTL_finish#>" onclick="redirect_index();" class="button_gen">
1667	<img id="loadingIcon" style="display:none;" src="/images/InternetScan.gif"></span>
1668</div>
1669</div>
1670<div id="liveUpdate_div" style="display:none">
1671	<div id="liveUpdateTitle">
1672		<div>
1673			<table width="100%">
1674				<tr>
1675					<td align="left">
1676						<div class="description_down"><#menu5_6_3#></div>
1677					</td>
1678					<td align="right">
1679					</td>
1680				</tr>
1681			</table>
1682		</div>
1683		<div style="margin:5px;"><img style="width: 720px; *width: 710px; height: 2px;" src="/images/New_ui/export/line_export.png"></div>
1684		<br>
1685		<br>
1686	</div>
1687
1688	<div id="newFWDetected">
1689		<div class="QISGeneralFont" style="margin-top:5px;text-align:center;line-height:180%;font-size:18px;">
1690			<div style="text-align:left;" id="showLiveUpdateResult_div">
1691			<#exist_new#><br><br><#Main_alert_proceeding_desc5#>
1692			<br>
1693			<br>
1694			<div id="current_fw_div" style="display:none;"><#ADSL_FW_item1#> : <span style="font-family:Segoe UI, Arial, sans-serif;" id="currentFW"></span></div>
1695			<br>
1696			<br>
1697				<div id="Latest_fw_div" style="display:none;"><#ADSL_FW_item3#> : <span style="font-family:Segoe UI, Arial, sans-serif;" id="latestFW"></span></div>	
1698			</div>
1699		</div>
1700		<br>
1701		<br>
1702		<div class="apply_gen" style="margin-top:5px">
1703			<input type="button" value="<#CTL_Cancel#>" onclick="showCancel();" class="button_gen">
1704			<input type="button" value="<#checkbox_Yes#>" onclick="doLiveUpdate(true);" class="button_gen">
1705		</div>
1706	</div>
1707		
1708	<div id="newFWCancel" style="display:none;">
1709		<div class="QISGeneralFont" style="margin-top:5px;text-align:center;line-height: 180%;font-size:18px;">
1710			<div id="newFWCancelDesc" style="text-align:left;">
1711				<#newFW_cancel#>
1712			</div>
1713		</div>
1714		<br>
1715		<br>
1716		<div class="apply_gen" style="margin-top:5px">
1717			<input type="button" value="OK" onclick="doLiveUpdate(false);" class="button_gen">
1718			<img id="doRestartIcon" style="display:none" src="/images/InternetScan.gif">
1719		</div>
1720	</div>
1721
1722	<div id="progressBar" class="QISGeneralFont" style="margin-top:5px;text-align:center;display:none;*margin-left:70px;line-height: 180%;font-size:18px;">
1723		<div style="text-align:left;">
1724		<#FIRM_ok_desc#><br><#Main_alert_proceeding_desc5#>
1725		</div>
1726		<br>
1727		<div id="updateProgress_bg" style="text-align:left;*margin-left:-65px;">
1728			<div align="left">
1729				<style>
1730					#updateProgress_bg{
1731						margin-top:5px;
1732						width:90%;
1733						height:30px;
1734						background:url(/images/quotabar_bg_progress.gif);
1735						background-repeat: repeat-x;
1736					}
1737				</style>
1738				<span id="progress_bar_no" style="display:none;position:absolute;margin-left:285px;margin-top:7px;*margin-left:290px">0%</span>
1739				<img id="updateProgress" src="/images/quotabar.gif" style="width:0%" height="30px">
1740			</div>
1741		</div>
1742		<br>
1743		<br>
1744		<div style="text-align:left;line-height: 25px;display:none;">
1745			<#FW_n1#>
1746			<br>
1747		</div>
1748	</div>
1749	<br>
1750	<div id="newFWgraded" style="margin-top:5px;text-align:center;display:none;line-height: 180%;font-size:18px;">
1751		<div class="QISGeneralFont" style="margin-top:5px;text-align:center;">
1752			<div id="liveUpdateResult" style="text-align:left;color:#FC0;line-height: 25px;">
1753			<#is_latest#>
1754			</div>
1755		</div>
1756		<br>
1757		<div class="apply_gen" style="margin-top:5px">
1758			<input type="button" value="<#CTL_next#>" onclick="doLiveUpdate(false);" class="button_gen">
1759		</div>
1760	</div>
1761
1762	<div id="newFWgradedFail" style="margin-top:5px;text-align:center;display:none;line-height: 180%;font-size:18px;">
1763		<div class="QISGeneralFont" style="margin-top:5px;text-align:center;">
1764			<div style="text-align:left;color:#FC0">
1765			<#Firm_reboot_manually#>
1766			</div>
1767		</div>
1768	</div>
1769</div>
1770
1771<div id="qisFinish_div" style="display:none">
1772	<div>
1773		<div>
1774			<table width="100%">
1775				<tr>
1776					<td align="left">
1777						<div class="description_down"><#Main_alert_proceeding_desc1#></div>
1778					</td>
1779					<td align="right">
1780					</td>
1781				</tr>
1782			</table>
1783		</div>
1784		<div style="margin:5px;"><img style="width: 720px; *width: 710px; height: 2px;" src="/images/New_ui/export/line_export.png"></div>
1785		<br>
1786		<br>
1787	</div>
1788
1789	<div>
1790		<div class="QISGeneralFont" style="margin-top:5px;text-align:center;font-size:18px;">
1791			<div style="text-align:left;">
1792				<#CTL_apply1#>... &nbsp
1793				<img src="/images/InternetScan.gif">
1794			</div>
1795		</div>
1796	</div>
1797</div>
1798
1799</form>
1800
1801<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0"></iframe>
1802
1803<form method="post" name="start_update" action="/start_apply2.htm" target="hidden_frame">
1804<input type="hidden" name="productid" value="<% nvram_get("productid"); %>">
1805<input type="hidden" name="flag" value="upgrading">
1806<input type="hidden" name="current_page" value="">
1807<input type="hidden" name="next_page" value="">
1808<input type="hidden" name="action_mode" value="">
1809<input type="hidden" name="action_script" value="">
1810<input type="hidden" name="action_wait" value="">
1811</form>
1812
1813<form method="post" name="yadns_update" action="/start_apply2.htm" target="hidden_frame">
1814<input type="hidden" name="productid" value="<% nvram_get("productid"); %>">
1815<input type="hidden" name="flag" value="next">
1816<input type="hidden" name="current_page" value="">
1817<input type="hidden" name="next_page" value="">
1818<input type="hidden" name="action_mode" value="apply">
1819<input type="hidden" name="action_script" value="restart_yadns">
1820<input type="hidden" name="action_wait" value="1">
1821<input type="hidden" name="yadns_enable_x" value="<% nvram_get("yadns_enable_x"); %>">
1822<input type="hidden" name="yadns_mode" value="<% nvram_get("yadns_mode"); %>">
1823</form>
1824
1825<form method="post" name="restartForm" action="/start_apply2.htm" target="hidden_frame">
1826	<input type="hidden" name="productid" value="<% nvram_get("productid"); %>">
1827	<input type="hidden" name="flag" value="finishQIS">
1828	<input type="hidden" name="current_page" value="/index.asp">
1829	<input type="hidden" name="next_page" value="/index.asp">
1830	<input type="hidden" name="action_mode" value="apply">
1831	<input type="hidden" name="action_script" value="">
1832	<input type="hidden" name="action_wait" value="0">
1833	<input type="hidden" name="x_Setting" value="1">
1834	<input type="hidden" name="force_change" value="<% nvram_get("force_change"); %>">
1835	<input type="hidden" name="wans_mode" value="fo" disabled>
1836	<input type="hidden" name="wans_dualwan" value="<% nvram_get("wans_dualwan"); %>" disabled>
1837	<!--USB Modem-->
1838	<input type="hidden" name="modem_enable" value="<% nvram_get("modem_enable"); %>" disabled>
1839	<input type="hidden" name="modem_country" value="<% nvram_get("modem_country"); %>" disabled>
1840	<input type="hidden" name="modem_isp" value="<% nvram_get("modem_isp"); %>" disabled>
1841	<input type="hidden" name="modem_apn" value="<% nvram_get("modem_apn"); %>" disabled>
1842	<input type="hidden" name="modem_dialnum" value="<% nvram_get("modem_dialnum"); %>" disabled>
1843	<input type="hidden" name="modem_pincode" value="<% nvram_get("modem_pincode"); %>" disabled>
1844	<input type="hidden" name="modem_user" value="<% nvram_get("modem_user"); %>" disabled>
1845	<input type="hidden" name="modem_pass" value="<% nvram_get("modem_pass"); %>" disabled>
1846	<input type="hidden" name="modem_ttlsid" value="<% nvram_get("modem_ttlsid"); %>" disabled>
1847	<input type="hidden" name="Dev3G" value="<% nvram_get("Dev3G"); %>" disabled>
1848</form>
1849
1850</body>
1851</html>
1852