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="shortcut icon" href="images/favicon.png"> 8<link rel="icon" href="images/favicon.png"> 9<title></title> 10<link href="/NM_style.css" rel="stylesheet" type="text/css" /> 11<link href="/form_style.css" rel="stylesheet" type="text/css" /> 12<script type="text/javascript" src="/general.js"></script> 13<script type="text/javascript" src="/state.js"></script> 14<script type="text/javascript" src="/help.js"></script> 15<script type="text/javascript" src="/js/jquery.js"></script> 16<script type="text/javascript" src="/validator.js"></script> 17<script type="text/javascript" src="/switcherplugin/jquery.iphone-switch.js"></script> 18<script> 19if(parent.location.pathname !== "/index.asp" && parent.location.pathname !== "/") top.location.href = "../index.asp"; 20 21<% wl_get_parameter(); %> 22var flag = '<% get_parameter("flag"); %>'; 23var smart_connect_flag_t; 24 25if(yadns_support){ 26 var yadns_enable = '<% nvram_get("yadns_enable_x"); %>'; 27 var yadns_mode = '<% nvram_get("yadns_mode"); %>'; 28 var yadns_clients = [ <% yadns_clients(); %> ]; 29} 30 31function initial(){ 32 var wl_subunit = '<% nvram_get("wl_subunit"); %>'; 33 34 if(band5g_support){ 35 document.getElementById("t0").style.display = ""; 36 document.getElementById("t1").style.display = ""; 37 if(wl_info.band5g_2_support){ 38 document.getElementById("t2").style.display = ""; 39 tab_reset(0); 40 } 41 42 // disallow to use the other band as a wireless AP 43 if(parent.sw_mode == 4 && !localAP_support){ 44 for(var x=0; x<wl_info.wl_if_total;x++){ 45 if(x != '<% nvram_get("wlc_band"); %>') 46 document.getElementById('t'+parseInt(x)).style.display = 'none'; 47 } 48 } 49 } 50 else{ 51 document.getElementById("t0").style.display = ""; 52 } 53 54 if(parent.sw_mode == 2){ 55 if(parent.wlc_express != 0){ 56 if(parent.wlc_express == 1){ 57 document.getElementById("t0").style.display = "none"; 58 if(wl_subunit != '1' || '<% nvram_get("wl_unit"); %>' != 1){ 59 tabclickhandler(1); 60 } 61 } 62 else if(parent.wlc_express == 2){ 63 document.getElementById("t1").style.display = "none"; 64 if(wl_subunit != '1' || '<% nvram_get("wl_unit"); %>' != 0){ 65 tabclickhandler(0); 66 } 67 } 68 } 69 else{ 70 if(!parent.concurrep_support){ 71 if('<% nvram_get("wl_unit"); %>' == '<% nvram_get("wlc_band"); %>' && wl_subunit != '1'){ 72 tabclickhandler('<% nvram_get("wl_unit"); %>'); 73 } 74 else if('<% nvram_get("wl_unit"); %>' != '<% nvram_get("wlc_band"); %>' && wl_subunit == '1'){ 75 tabclickhandler('<% nvram_get("wl_unit"); %>'); 76 } 77 } 78 else{ 79 if(wl_subunit != '1') tabclickhandler('<% nvram_get("wl_unit"); %>'); 80 } 81 } 82 } 83 else if(parent.sw_mode == 4){ 84 if('<% nvram_get("wl_unit"); %>' != '<% nvram_get("wlc_band"); %>'){ 85 tabclickhandler('<% nvram_get("wlc_band"); %>'); 86 } 87 88 document.getElementById("WLnetworkmap").style.display = "none"; 89 document.getElementById("applySecurity").style.display = "none"; 90 document.getElementById("WLnetworkmap_re").style.display = ""; 91 } 92 else{ 93 if(wl_subunit != "-1"){ 94 tabclickhandler(0); 95 } 96 } 97 98 // modify wlX.1_ssid(SSID to end clients) under repeater mode 99 if((parent.sw_mode == 2 || parent.sw_mode == 4) && '<% nvram_get("wlc_band"); %>' == '<% nvram_get("wl_unit"); %>') 100 document.form.wl_subunit.value = 1; 101 else 102 document.form.wl_subunit.value = -1; 103 104 // modify wlX.1_ssid(SSID to end clients) under concurrent repeater mode 105 if(parent.sw_mode == 2 && parent.concurrep_support) 106 document.form.wl_subunit.value = 1; 107 108 if(smart_connect_support){ 109 if(based_modelid == "RT-AC5300"){ 110 if('<% nvram_get("smart_connect_x"); %>' !=0) 111 document.getElementById("smart_connect_field").style.display = ''; 112 }else{ 113 document.getElementById("smartcon_enable_field").style.display = ''; 114 document.getElementById("smartcon_enable_line").style.display = ''; 115 } 116 } 117 118 change_tabclick(); 119 if(document.getElementById("t1").className == "tabclick_NW" && parent.Rawifi_support) //no exist Rawifi 120 document.getElementById("wl_txbf_tr").style.display = ""; //Viz Add 2011.12 for RT-N56U Ralink 121 122 document.form.wl_ssid.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_ssid"); %>'); 123 document.form.wl_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_wpa_psk"); %>'); 124 document.form.wl_key1.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key1"); %>'); 125 document.form.wl_key2.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key2"); %>'); 126 document.form.wl_key3.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key3"); %>'); 127 document.form.wl_key4.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key4"); %>'); 128 129 /* Viz banned 2012.06 130 if(document.form.wl_wpa_psk.value.length <= 0) 131 document.form.wl_wpa_psk.value = "<#wireless_psk_fillin#>"; 132 */ 133 134 limit_auth_method(); 135 wl_auth_mode_change(1); 136 show_LAN_info(); 137 138 if(smart_connect_support && parent.sw_mode != 4){ 139 140 if(flag == '') 141 smart_connect_flag_t = '<% nvram_get("smart_connect_x"); %>'; 142 else 143 smart_connect_flag_t = flag; 144 145 document.form.smart_connect_x.value = smart_connect_flag_t; 146 change_smart_connect(smart_connect_flag_t); 147 } 148 149 if(parent.sw_mode == 4){ 150 var wlc_auth_mode = '<% nvram_get("wlc_auth_mode"); %>'; 151 if(wlc_auth_mode == "") wlc_auth_mode = '<% nvram_get("wlc0_auth_mode"); %>'; 152 if(wlc_auth_mode == "") wlc_auth_mode = '<% nvram_get("wlc1_auth_mode"); %>'; 153 if(wlc_auth_mode == "") wlc_auth_mode = 'unknown'; 154 155 parent.show_middle_status(wlc_auth_mode, 0); 156 } 157 else 158 parent.show_middle_status(document.form.wl_auth_mode_x.value, parseInt(document.form.wl_wep_x.value)); 159 160 flash_button(); 161 162 if(history.pushState != undefined) history.pushState("", document.title, window.location.pathname); 163} 164 165function change_tabclick(){ 166 switch('<% nvram_get("wl_unit"); %>'){ 167 case '0': document.getElementById("t0").className = "tabclick_NW"; 168 break; 169 case '1': document.getElementById("t1").className = "tabclick_NW"; 170 break; 171 case '2': document.getElementById("t2").className = "tabclick_NW"; 172 break; 173 } 174} 175 176function tabclickhandler(wl_unit){ 177 if(wl_unit == 3){ 178 location.href = "router_status.asp"; 179 } 180 else{ 181 if(parent.sw_mode == 2 && parent.wlc_express != 0){ 182 document.form.wl_subunit.value = 1; 183 } 184 else if((parent.sw_mode == 2 || parent.sw_mode == 4) && '<% nvram_get("wlc_band"); %>' == wl_unit){ 185 document.form.wl_subunit.value = 1; 186 } 187 else{ 188 document.form.wl_subunit.value = -1; 189 } 190 191 document.form.wl_unit.value = wl_unit; 192 193 if(smart_connect_support){ 194 var smart_connect_flag = document.form.smart_connect_x.value; 195 document.form.current_page.value = "device-map/router.asp?flag=" + smart_connect_flag; 196 }else 197 document.form.current_page.value = "device-map/router.asp"; 198 FormActions("/apply.cgi", "change_wl_unit", "", ""); 199 document.form.target = "hidden_frame"; 200 document.form.submit(); 201 } 202} 203 204function disableAdvFn(){ 205 for(var i=8; i>=1; i--) 206 document.getElementById("WLnetworkmap").deleteRow(i); 207} 208 209function UIunderRepeater(){ 210 document.form.wl_auth_mode_x.disabled = true; 211 document.form.wl_wep_x.disabled = true; 212 document.form.wl_key.disabled = true; 213 document.form.wl_asuskey1.disabled = true; 214 document.form.wl_wpa_psk.disabled = true; 215 document.form.wl_crypto.disabled = true; 216 217 var ssidObj=document.getElementById("wl_ssid"); 218 ssidObj.name="wlc_ure_ssid"; 219} 220 221function wl_auth_mode_change(isload){ 222 var mode = document.form.wl_auth_mode_x.value; 223 224 change_wep_type(mode); 225 change_wpa_type(mode); 226} 227 228function change_wpa_type(mode){ 229 var opts = document.form.wl_auth_mode_x.options; 230 var new_array; 231 var cur_crypto; 232 /* enable/disable crypto algorithm */ 233 if(mode == "wpa" || mode == "wpa2" || mode == "wpawpa2" || mode == "psk" || mode == "psk2" || mode == "pskpsk2") 234 inputCtrl(document.form.wl_crypto, 1); 235 else 236 inputCtrl(document.form.wl_crypto, 0); 237 238 /* enable/disable psk passphrase */ 239 if(mode == "psk" || mode == "psk2" || mode == "pskpsk2") 240 inputCtrl(document.form.wl_wpa_psk, 1); 241 else 242 inputCtrl(document.form.wl_wpa_psk, 0); 243 244 /* update wl_crypto */ 245 for(var i = 0; i < document.form.wl_crypto.length; ++i) 246 if(document.form.wl_crypto[i].selected){ 247 cur_crypto = document.form.wl_crypto[i].value; 248 break; 249 } 250 251 /* Reconstruct algorithm array from new crypto algorithms */ 252 if(mode == "psk" || mode == "psk2" || mode == "pskpsk2" || mode == "wpa" || mode == "wpa2" || mode == "wpawpa2"){ 253 /* Save current crypto algorithm */ 254 if(opts[opts.selectedIndex].text == "WPA-Personal" || opts[opts.selectedIndex].text == "WPA-Enterprise") 255 new_array = new Array("TKIP"); 256 else if(opts[opts.selectedIndex].text == "WPA2-Personal" || opts[opts.selectedIndex].text == "WPA2-Enterprise") 257 new_array = new Array("AES"); 258 else 259 new_array = new Array("AES", "TKIP+AES"); 260 261 free_options(document.form.wl_crypto); 262 for(var i = 0; i < new_array.length; i++){ 263 document.form.wl_crypto[i] = new Option(new_array[i], new_array[i].toLowerCase()); 264 document.form.wl_crypto[i].value = new_array[i].toLowerCase(); 265 if(new_array[i].toLowerCase() == cur_crypto) 266 document.form.wl_crypto[i].selected = true; 267 } 268 } 269} 270 271function change_wep_type(mode){ 272 273 var cur_wep = document.form.wl_wep_x.value; 274 var wep_type_array; 275 var value_array; 276 var show_wep_x = 0; 277 278 free_options(document.form.wl_wep_x); 279 280 //if(mode == "shared" || mode == "radius"){ //2009.03 magic 281 if(mode == "shared"){ //2009.03 magic 282 wep_type_array = new Array("WEP-64bits", "WEP-128bits"); 283 value_array = new Array("1", "2"); 284 show_wep_x = 1; 285 } 286 else if(mode == "open" && (document.form.wl_nmode_x.value == 2 || sw_mode == 2)){ 287 wep_type_array = new Array("None", "WEP-64bits", "WEP-128bits"); 288 value_array = new Array("0", "1", "2"); 289 show_wep_x = 1; 290 } 291 else { 292 wep_type_array = new Array("None"); 293 value_array = new Array("0"); 294 cur_wep = "0"; 295 } 296 297 add_options_x2(document.form.wl_wep_x, wep_type_array, value_array, cur_wep); 298 inputCtrl(document.form.wl_wep_x, show_wep_x); 299 300 301 change_wlweptype(document.form.wl_wep_x); 302} 303 304function change_wlweptype(wep_type_obj){ 305 if(wep_type_obj.value == "0"){ //2009.03 magic 306 inputCtrl(document.form.wl_key, 0); 307 inputCtrl(document.form.wl_asuskey1, 0); 308 } 309 else{ 310 inputCtrl(document.form.wl_key, 1); 311 inputCtrl(document.form.wl_asuskey1, 1); 312 } 313 314 wl_wep_change(); 315} 316 317function wl_wep_change(){ 318 var mode = document.form.wl_auth_mode_x.value; 319 var wep = document.form.wl_wep_x.value; 320 if ((mode == "shared" || mode == "open") && wep != "0") 321 show_key(); 322} 323 324function show_key(){ 325 switchType(document.form.wl_asuskey1,true); 326 327 var wep_type = document.form.wl_wep_x.value; 328 var keyindex = document.form.wl_key.value; 329 var cur_key_obj = eval("document.form.wl_key"+keyindex); 330 var cur_key_length = cur_key_obj.value.length; 331 332 if(wep_type == 1){ 333 if(cur_key_length == 5 || cur_key_length == 10) 334 document.form.wl_asuskey1.value = cur_key_obj.value; 335 else 336 document.form.wl_asuskey1.value = ""; //0000000000 337 } 338 else if(wep_type == 2){ 339 if(cur_key_length == 13 || cur_key_length == 26) 340 document.form.wl_asuskey1.value = cur_key_obj.value; 341 else 342 document.form.wl_asuskey1.value = ""; //00000000000000000000000000 343 } 344 else 345 document.form.wl_asuskey1.value = ""; 346 347} 348 349function show_LAN_info(v){ 350 var lan_ipaddr_t = '<% nvram_get("lan_ipaddr_t"); %>'; 351 if(lan_ipaddr_t != '') 352 showtext(document.getElementById("LANIP"), lan_ipaddr_t); 353 else 354 showtext(document.getElementById("LANIP"), '<% nvram_get("lan_ipaddr"); %>'); 355 356 if(yadns_support){ 357 var mode = (yadns_enable != 0) ? yadns_mode : -1; 358 showtext(document.getElementById("yadns_mode"), get_yadns_modedesc(mode)); 359 for(var i = 0; i < 3; i++){ 360 var visible = (yadns_enable != 0 && i != mode && yadns_clients[i]) ? true : false; 361 var modedesc = visible ? get_yadns_modedesc(i) + ": <#Full_Clients#> " + yadns_clients[i] : ""; 362 showtext2(document.getElementById("yadns_mode" + i), modedesc, visible); 363 } 364 if (!yadns_hideqis || yadns_enable != 0) 365 document.getElementById("yadns_status").style.display = ""; 366 } 367 368 showtext(document.getElementById("PINCode"), '<% nvram_get("secret_code"); %>'); 369 showtext(document.getElementById("MAC"), '<% nvram_get("lan_hwaddr"); %>'); 370 showtext(document.getElementById("MAC_wl2"), '<% nvram_get("wl0_hwaddr"); %>'); 371 if(document.form.wl_unit.value == 1) 372 showtext(document.getElementById("MAC_wl5"), '<% nvram_get("wl1_hwaddr"); %>'); 373 else if(document.form.wl_unit.value == 2) 374 showtext(document.getElementById("MAC_wl5_2"), '<% nvram_get("wl2_hwaddr"); %>'); 375 376 if(document.form.wl_unit.value == 0){ 377 document.getElementById("macaddr_wl5").style.display = "none"; 378 if(wl_info.band5g_2_support) 379 document.getElementById("macaddr_wl5_2").style.display = "none"; 380 if(!band5g_support) 381 document.getElementById("macaddr_wl2_title").style.display = "none"; 382 } 383 else if (document.form.wl_unit.value == 1){ 384 document.getElementById("macaddr_wl2").style.display = "none"; 385 document.getElementById("macaddr_wl5_2").style.display = "none"; 386 if(wl_info.band5g_2_support) 387 document.getElementById("macaddr_wl5_title").innerHTML = "5GHz-1 "; 388 389 } 390 else if (document.form.wl_unit.value == 2){ 391 document.getElementById("macaddr_wl2").style.display = "none"; 392 document.getElementById("macaddr_wl5").style.display = "none"; 393 document.getElementById("macaddr_wl5_2").style.display = ""; 394 } 395 if(smart_connect_support){ 396 if(v == '1'){ 397 showtext(document.getElementById("MAC_wl2"), '<% nvram_get("wl0_hwaddr"); %>'); 398 showtext(document.getElementById("MAC_wl5"), '<% nvram_get("wl1_hwaddr"); %>'); 399 showtext(document.getElementById("MAC_wl5_2"), '<% nvram_get("wl2_hwaddr"); %>'); 400 document.getElementById("macaddr_wl5_title").innerHTML = "5GHz-1 "; 401 document.getElementById("macaddr_wl2").style.display = ""; 402 document.getElementById("macaddr_wl5").style.display = ""; 403 document.getElementById("macaddr_wl5_2").style.display = ""; 404 parent.document.getElementById("statusframe").height = 760; 405 }else if(document.form.wl_unit.value != 0 && v == '2'){ 406 document.getElementById("macaddr_wl2").style.display = "none"; 407 showtext(document.getElementById("MAC_wl5"), '<% nvram_get("wl1_hwaddr"); %>'); 408 showtext(document.getElementById("MAC_wl5_2"), '<% nvram_get("wl2_hwaddr"); %>'); 409 document.getElementById("macaddr_wl5_title").innerHTML = "5GHz-1 "; 410 document.getElementById("macaddr_wl5").style.display = ""; 411 document.getElementById("macaddr_wl5_2").style.display = ""; 412 }else{ 413 parent.document.getElementById("statusframe").height = 735; 414 } 415 } 416} 417 418var secs; 419var timerID = null; 420var timerRunning = false; 421var timeout = 1000; 422var delay = 500; 423var stopFlag=0; 424 425function detect_qtn_ready(){ 426 if(parent.qtn_state_t != "1") 427 setTimeout('detect_qtn_ready();', 1000); 428 else 429 document.form.submit(); 430} 431 432function submitForm(){ 433 var auth_mode = document.form.wl_auth_mode_x.value; 434 435 if(document.form.wl_wpa_psk.value == "<#wireless_psk_fillin#>") 436 document.form.wl_wpa_psk.value = ""; 437 438 if(!validator.stringSSID(document.form.wl_ssid)) 439 return false; 440 441 stopFlag = 1; 442 document.form.current_page.value = "/index.asp"; 443 document.form.next_page.value = "/index.asp"; 444 445 if(auth_mode == "psk" || auth_mode == "psk2" || auth_mode == "pskpsk2"){ 446 if(is_KR_sku){ 447 if(!validator.psk_KR(document.form.wl_wpa_psk)) 448 return false; 449 } 450 else{ 451 if(!validator.psk(document.form.wl_wpa_psk)) 452 return false; 453 } 454 455 //confirm common string combination #JS_common_passwd# 456 var is_common_string = check_common_string(document.form.wl_wpa_psk.value, "wpa_key"); 457 if(is_common_string){ 458 if(confirm("<#JS_common_passwd#>")){ 459 document.form.wl_wpa_psk.focus(); 460 document.form.wl_wpa_psk.select(); 461 return false; 462 } 463 } 464 } 465 else if(auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "wpawpa2" || auth_mode == "radius"){ 466 document.form.target = ""; 467 document.form.next_page.value = "/Advanced_WSecurity_Content.asp"; 468 } 469 else{ 470 if(!validator.wlKey(document.form.wl_asuskey1)) 471 return false; 472 } 473 474 var wep11 = eval('document.form.wl_key'+document.form.wl_key.value); 475 wep11.value = document.form.wl_asuskey1.value; 476 477 if((auth_mode == "shared" || auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "wpawpa2" || auth_mode == "radius") 478 && document.form.wps_enable.value == "1"){ 479 document.form.wps_enable.value = "0"; 480 } 481 document.form.wsc_config_state.value = "1"; 482 483 parent.showLoading(); 484 if(based_modelid == "RT-AC87U" && "<% nvram_get("wl_unit"); %>" == "1"){ 485 parent.stopFlag = '0'; 486 detect_qtn_ready(); 487 }else { 488 document.form.fakepasswordremembered.disabled = true; 489 document.form.submit(); 490 } 491 492 return true; 493} 494 495function clean_input(obj){ 496 if(obj.value == "<#wireless_psk_fillin#>") 497 obj.value = ""; 498} 499 500function gotoSiteSurvey(){ 501 if(sw_mode == 2) 502 parent.location.href = '/QIS_wizard.htm?flag=sitesurvey_rep&band='+'<% nvram_get("wl_unit"); %>'; 503 else 504 parent.location.href = '/QIS_wizard.htm?flag=sitesurvey_mb'; 505} 506 507function startPBCmethod(){ 508 return 0; 509} 510 511function wpsPBC(obj){ 512 return 0; 513} 514 515function manualSetup(){ 516 return 0; 517} 518 519function tab_reset(v){ 520 var tab_array1 = document.getElementsByClassName("tab_NW"); 521 var tab_array2 = document.getElementsByClassName("tabclick_NW"); 522 523 var tab_width = Math.floor(270/(wl_info.wl_if_total+1)); 524 var i = 0; 525 while(i < tab_array1.length){ 526 tab_array1[i].style.width=tab_width+'px'; 527 tab_array1[i].style.display = ""; 528 i++; 529 } 530 if(typeof tab_array2[0] != "undefined"){ 531 tab_array2[0].style.width=tab_width+'px'; 532 tab_array2[0].style.display = ""; 533 } 534 if(v == 0){ 535 document.getElementById("span0").innerHTML = "2.4GHz"; 536 if(wl_info.band5g_2_support){ 537 document.getElementById("span1").innerHTML = "5GHz-1"; 538 document.getElementById("span2").innerHTML = "5GHz-2"; 539 }else{ 540 document.getElementById("span1").innerHTML = "5GHz"; 541 document.getElementById("t2").style.display = "none"; 542 } 543 }else if(v == 1){ //Smart Connect 544 if(based_modelid == "RT-AC5300") 545 document.getElementById("span0").innerHTML = "2.4GHz, 5GHz-1 and 5GHz-2"; 546 else 547 document.getElementById("span0").innerHTML = "Tri-band Smart Connect"; 548 document.getElementById("t1").style.display = "none"; 549 document.getElementById("t2").style.display = "none"; 550 document.getElementById("t0").style.width = (tab_width*wl_info.wl_if_total+10) +'px'; 551 } 552 else if(v == 2){ //5GHz Smart Connect 553 document.getElementById("span0").innerHTML = "2.4GHz"; 554 document.getElementById("span1").innerHTML = "5GHz-1 and 5GHz-2"; 555 document.getElementById("t2").style.display = "none"; 556 document.getElementById("t1").style.width = "148px"; 557 document.getElementById("span1").style.padding = "5px 4px 5px 9px"; 558 } 559} 560 561function change_smart_connect(v){ 562 document.form.smart_connect_x.value = v; 563 564 if(based_modelid=="RT-AC5300") 565 document.form.smart_connect_t.value = v; 566 567 show_LAN_info(v); 568 switch(v){ 569 case '0': 570 tab_reset(0); 571 break; 572 case '1': 573 if('<% nvram_get("wl_unit"); %>' != 0) 574 tabclickhandler(0); 575 else 576 tab_reset(1); 577 break; 578 case '2': 579 if(!('<% nvram_get("wl_unit"); %>' == 0 || '<% nvram_get("wl_unit"); %>' == 1)) 580 tabclickhandler(1); 581 else 582 tab_reset(2); 583 break; 584 } 585} 586</script> 587</head> 588<body class="statusbody" onload="initial();"> 589<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0"></iframe> 590<form method="post" name="form" id="form" action="/start_apply2.htm"> 591<input type="hidden" name="current_page" value="device-map/router.asp"> 592<input type="hidden" name="next_page" value=""> 593<input type="hidden" name="action_mode" value="apply_new"> 594<input type="hidden" name="action_script" value="restart_wireless"> 595<input type="hidden" name="action_wait" value="8"> 596<input type="hidden" name="productid" value="<% nvram_get("productid"); %>"> 597<input type="hidden" name="wps_enable" value="<% nvram_get("wps_enable"); %>"> 598<input type="hidden" name="wsc_config_state" value="<% nvram_get("wsc_config_state"); %>"> 599<input type="hidden" name="wl_key1" value=""> 600<input type="hidden" name="wl_key2" value=""> 601<input type="hidden" name="wl_key3" value=""> 602<input type="hidden" name="wl_key4" value=""> 603<input type="hidden" name="wl_ssid_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_ssid"); %>"> 604<input type="hidden" name="wlc_ure_ssid_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wlc_ure_ssid"); %>" disabled> 605<input type="hidden" name="wl_wpa_psk_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_wpa_psk"); %>"> 606<input type="hidden" name="wl_auth_mode_orig" value="<% nvram_get("wl_auth_mode_x"); %>"> 607<input type="hidden" name="wl_wep_x_orig" value="<% nvram_get("wl_wep_x"); %>"> 608<input type="hidden" name="wl_key_type" value="<% nvram_get("wl_key_type"); %>"><!--Lock Add 1125 for ralink platform--> 609<input type="hidden" name="wl_key_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key"); %>"> 610<input type="hidden" name="wl_key1_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key1"); %>"> 611<input type="hidden" name="wl_key2_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key2"); %>"> 612<input type="hidden" name="wl_key3_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key3"); %>"> 613<input type="hidden" name="wl_key4_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key4"); %>"> 614<input type="hidden" name="wl_nmode_x" value="<% nvram_get("wl_nmode_x"); %>"><!--Lock Add 20091210 for n only--> 615<input type="hidden" name="wps_band" value="<% nvram_get("wps_band"); %>"> 616<input type="hidden" name="wl_unit" value="<% nvram_get("wl_unit"); %>"> 617<input type="hidden" name="wl_subunit" value="-1"> 618<input type="hidden" name="wl_radio" value="<% nvram_get("wl_radio"); %>"> 619<input type="hidden" name="wl_txbf" value="<% nvram_get("wl_txbf"); %>"> 620<input type="hidden" name="smart_connect_x" value="<% nvram_get("smart_connect_x"); %>"> 621 622<table border="0" cellpadding="0" cellspacing="0"> 623<tr> 624 <td> 625 <table width="100px" border="0" align="left" style="margin-left:8px;" cellpadding="0" cellspacing="0"> 626 <td> 627 <div id="t0" class="tab_NW" align="center" style="font-weight: bolder;display:none; margin-right:2px; width:90px;" onclick="tabclickhandler(0)"> 628 <span id="span0" style="cursor:pointer;font-weight: bolder;">2.4GHz</span> 629 </div> 630 </td> 631 <td> 632 <div id="t1" class="tab_NW" align="center" style="font-weight: bolder;display:none; margin-right:2px; width:90px;" onclick="tabclickhandler(1)"> 633 <span id="span1" style="cursor:pointer;font-weight: bolder;">5GHz</span> 634 </div> 635 </td> 636 <td> 637 <div id="t2" class="tab_NW" align="center" style="font-weight: bolder;display:none; margin-right:2px; width:90px;" onclick="tabclickhandler(2)"> 638 <span id="span2" style="cursor:pointer;font-weight: bolder;">5GHz-2</span> 639 </div> 640 </td> 641 <td> 642 <div id="t3" class="tab_NW" align="center" style="font-weight: bolder; margin-right:2px; width:90px;" onclick="tabclickhandler(3)"> 643 <span id="span3" style="cursor:pointer;font-weight: bolder;">Status</span> 644 </div> 645 </td> 646 </table> 647 </td> 648</tr> 649 650<tr> 651 <td> 652 <table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" class="table1px" id="WLnetworkmap_re" style="display:none"> 653 <tr> 654 <td height="50" style="padding:10px 15px 0px 15px;"> 655 <p class="formfonttitle_nwm" style="float:left;"><#APSurvey_action_search_again_hint2#></p> 656 <br /> 657 <input type="button" class="button_gen" onclick="gotoSiteSurvey();" value="<#QIS_rescan#>" style="float:right;"> 658 <!--input type="button" class="button_gen" onclick="manualSetup();" value="<#Manual_Setting_btn#>" style="float:right;"--> 659 <img style="margin-top:5px; *margin-top:-10px; visibility:hidden;" src="/images/New_ui/networkmap/linetwo2.png"> 660 </td> 661 </tr> 662 </table> 663 664 <table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" class="table1px" id="WLnetworkmap"> 665 <tr id="smart_connect_field" style="display:none"> 666 <td style="padding:5px 10px 0px 10px; *padding:1px 10px 0px 10px;"> 667 <p class="formfonttitle_nwm" >Smart Connect</p> 668 <select style="*margin-top:-7px;" name="smart_connect_t" class="input_option" onchange="change_smart_connect(this.value);"> 669 <option value="0" <% nvram_match("smart_connect_x", "0", "selected"); %>>none</option> 670 <option value="1" <% nvram_match("smart_connect_x", "1", "selected"); %>>Tri-band Smart Connect</option> 671 <option value="2" <% nvram_match("smart_connect_x", "2", "selected"); %>>5GHz Smart Connect</option> 672 </select> 673 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 674 </td> 675 </tr> 676 <tr id="smartcon_enable_field" style="display:none"> 677 <td> 678 <div><table><tr> 679 <td style="padding:8px 5px 0px 0px;"> 680 <p class="formfonttitle_nwm" >Smart Connect: </p> 681 </td> 682 <td> 683 <div id="smartcon_enable_block" style="display:none;"> 684 <span style="color:#FFF;" id="smart_connect_enable_word"> </span> 685 <input type="button" name="enableSmartConbtn" id="enableSmartConbtn" value="" class="button_gen" onClick="change_smart_connect();"> 686 <br> 687 </div> 688 <div class="left" style="width: 94px;" id="radio_smartcon_enable"></div> 689 <div class="clear"></div> 690 <script type="text/javascript"> 691 var flag = '<% get_parameter("flag"); %>'; 692 693 if(flag == '') 694 smart_connect_flag_t = '<% nvram_get("smart_connect_x"); %>'; 695 else 696 smart_connect_flag_t = flag; 697 698 $('#radio_smartcon_enable').iphoneSwitch(smart_connect_flag_t>0, 699 function() { 700 change_smart_connect('1'); 701 }, 702 function() { 703 change_smart_connect('0'); 704 } 705 ); 706 </script> 707 </td> 708 </tr></table></div> 709 </td> 710 </tr> 711 <tr id="smartcon_enable_line" style="display:none"><td><img style="margin-top:-2px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"></td></tr> 712 <tr> 713 <td style="padding:5px 10px 0px 10px; "> 714 <p class="formfonttitle_nwm" ><#QIS_finish_wireless_item1#></p> 715 <input style="*margin-top:-7px; width:260px;" id="wl_ssid" type="text" name="wl_ssid" value="<% nvram_get("wl_ssid"); %>" maxlength="32" size="22" class="input_25_table" autocomplete="off" autocorrect="off" autocapitalize="off"> 716 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 717 </td> 718 </tr> 719 <tr> 720 <td style="padding:5px 10px 0px 10px; *padding:1px 10px 0px 10px;"> 721 <p class="formfonttitle_nwm" ><#WLANConfig11b_AuthenticationMethod_itemname#></p> 722 <select style="*margin-top:-7px;" name="wl_auth_mode_x" class="input_option" onChange="authentication_method_change(this);"> 723 <option value="open" <% nvram_match("wl_auth_mode_x", "open", "selected"); %>>Open System</option> 724 <option value="shared" <% nvram_match("wl_auth_mode_x", "shared", "selected"); %>>Shared Key</option> 725 <option value="psk" <% nvram_match("wl_auth_mode_x", "psk", "selected"); %>>WPA-Personal</option> 726 <option value="psk2" <% nvram_match("wl_auth_mode_x", "psk2", "selected"); %>>WPA2-Personal</option> 727 <option value="pskpsk2" <% nvram_match("wl_auth_mode_x", "pskpsk2","selected"); %>>WPA-Auto-Personal</option> 728 <option value="wpa" <% nvram_match("wl_auth_mode_x", "wpa", "selected"); %>>WPA-Enterprise</option> 729 <option value="wpa2" <% nvram_match("wl_auth_mode_x", "wpa2", "selected"); %>>WPA2-Enterprise</option> 730 <option value="wpawpa2" <% nvram_match("wl_auth_mode_x", "wpawpa2","selected"); %>>WPA-Auto-Enterprise</option> 731 <option value="radius" <% nvram_match("wl_auth_mode_x", "radius", "selected"); %>>Radius with 802.1x</option> 732 </select> 733 <img style="display:none;margin-top:-30px;margin-left:185px;cursor:pointer;" id="wl_nmode_x_hint" src="/images/alertImg.png" width="30px" onClick="parent.overlib(parent.helpcontent[0][24], parent.FIXX, 870, parent.FIXY, 350);" onMouseOut="parent.nd();"> 734 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 735 </td> 736 </tr> 737 <tr id='all_related_wep' style='display:none;'> 738 <td style="padding:5px 10px 0px 10px; *padding:1px 10px 0px 10px;"> 739 <p class="formfonttitle_nwm" ><#WLANConfig11b_WEPType_itemname#></p> 740 <select style="*margin-top:-7px;" name="wl_wep_x" id="wl_wep_x" class="input_option" onchange="change_wlweptype(this);"> 741 <option value="0" <% nvram_match("wl_wep_x", "0", "selected"); %>><#wl_securitylevel_0#></option> 742 <option value="1" <% nvram_match("wl_wep_x", "1", "selected"); %>>WEP-64bits</option> 743 <option value="2" <% nvram_match("wl_wep_x", "2", "selected"); %>>WEP-128bits</option> 744 </select> 745 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 746 </td> 747 </tr> 748 <tr id='all_wep_key' style='display:none;'> 749 <td style="padding:5px 10px 0px 10px; *padding:1px 10px 0px 10px;"> 750 <p class="formfonttitle_nwm" ><#WLANConfig11b_WEPDefaultKey_itemname#></p> 751 <select style="*margin-top:-7px;" name="wl_key" class="input_option" onchange="show_key();"> 752 <option value="1" <% nvram_match("wl_key", "1", "selected"); %>>1</option> 753 <option value="2" <% nvram_match("wl_key", "2", "selected"); %>>2</option> 754 <option value="3" <% nvram_match("wl_key", "3", "selected"); %>>3</option> 755 <option value="4" <% nvram_match("wl_key", "4", "selected"); %>>4</option> 756 </select> 757 <img style="margin-top:5px; *margin-top:-10px;" src="/images/New_ui/networkmap/linetwo2.png"> 758 </td> 759 </tr> 760 <tr id='asus_wep_key'> 761 <td style="padding:5px 10px 0px 10px; "> 762 <p class="formfonttitle_nwm" ><#WLANConfig11b_WEPKey_itemname#> 763 </p> 764 <input id="wl_asuskey1" name="wl_asuskey1" style="width:260px;*margin-top:-7px;" type="password" onBlur="switchType(this, false);" onFocus="switchType(this, true);" onKeyUp="return change_wlkey(this, 'WLANConfig11b');" value="" maxlength="27" class="input_25_table" autocorrect="off" autocapitalize="off"> 765 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 766 </td> 767 </tr> 768 <tr id='wl_crypto' style='display:none;'> 769 <td style="padding:5px 10px 0px 10px; *padding:1px 10px 0px 10px;"> 770 <p class="formfonttitle_nwm" ><#WLANConfig11b_WPAType_itemname#></p> 771 <select style="*margin-top:-7px;" name="wl_crypto" class="input_option" onchange="wl_auth_mode_change(0);"> 772 <!--option value="tkip" <% nvram_match("wl_crypto", "tkip", "selected"); %>>TKIP</option--> 773 <option value="aes" <% nvram_match("wl_crypto", "aes", "selected"); %>>AES</option> 774 <option value="tkip+aes" <% nvram_match("wl_crypto", "tkip+aes", "selected"); %>>TKIP+AES</option> 775 </select> 776 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 777 </td> 778 </tr> 779 <tr id='wl_wpa_psk_tr' style='display:none'> 780 <td style="padding:5px 10px 0px 10px;"> 781 <p class="formfonttitle_nwm" ><#WPA-PSKKey#> 782 </p> 783 <input id="wl_wpa_psk" name="wl_wpa_psk" style="width:260px;*margin-top:-7px;" type="password" onBlur="switchType(this, false);" onFocus="switchType(this, true);" value="" maxlength="64" class="input_25_table" autocomplete="off" autocorrect="off" autocapitalize="off"/> 784 <!-- fake fields are a workaround for chrome autofill getting the wrong fields --> 785 <input style="display:none" type="password" name="fakepasswordremembered"/> 786 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 787 </td> 788 </tr> 789 790 <tr id="wl_radio_tr" style="display:none"> 791 <td style="padding:5px 10px 0px 10px;"> 792 <p class="formfonttitle_nwm" style="float:left;"><#Wireless_Radio#></p> 793 <div class="left" style="width:94px; float:right;" id="radio_wl_radio"></div> 794 <div class="clear"></div> 795 <script type="text/javascript"> 796 // 797 $('#radio_wl_radio').iphoneSwitch('<% nvram_get("wl_radio"); %>', 798 function() { 799 document.form.wl_radio.value = "1"; 800 }, 801 function() { 802 document.form.wl_radio.value = "0"; 803 } 804 ); 805 </script> 806 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 807 </td> 808 </tr> 809 <!-- Viz add 2011.12 for RT-N56U Ralink start {{ --> 810 <tr id="wl_txbf_tr" style="display:none"> 811 <td style="padding:5px 10px 0px 10px;"> 812 <p class="formfonttitle_nwm" style="float:left;">AiRadar</p> 813 <div class="left" style="width:94px; float:right;" id="radio_wl_txbf"></div> 814 <div class="clear"></div> 815 <script type="text/javascript"> 816 817 $('#radio_wl_txbf').iphoneSwitch('<% nvram_get("wl_txbf"); %>', 818 function() { 819 document.form.wl_txbf.value = "1"; 820 return true; 821 }, 822 function() { 823 document.form.wl_txbf.value = "0"; 824 return true; 825 } 826 ); 827 </script> 828 <img style="margin-top:5px; *margin-top:-10px;"src="/images/New_ui/networkmap/linetwo2.png"> 829 </td> 830 </tr> 831 <!-- Viz add 2011.12 for RT-N56U Ralink end }} --> 832 </table> 833 </td> 834</tr> 835 836<tr> 837 <td> 838 <table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" class="table1px"> 839 <tr id="apply_tr"> 840 <td style="border-bottom:5px #2A3539 solid;padding:5px 10px 5px 10px;"> 841 <input id="applySecurity" type="button" class="button_gen" value="<#CTL_apply#>" onclick="submitForm();" style="margin-left:90px;"> 842 </td> 843 </tr> 844 <tr> 845 <td style="padding:10px 10px 0px 10px;"> 846 <p class="formfonttitle_nwm" ><#LAN_IP#></p> 847 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; margin-right:10px; background-color:#444f53; line-height:20px;" id="LANIP"></p> 848 <img style="margin-top:5px; *margin-top:-10px;" src="/images/New_ui/networkmap/linetwo2.png"> 849 </td> 850 </tr> 851 <tr> 852 <td style="padding:5px 10px 0px 10px;"> 853 <p class="formfonttitle_nwm" ><#PIN_code#></p> 854 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; margin-right:10px; background-color:#444f53; line-height:20px;" id="PINCode"></p> 855 <img style="margin-top:5px; *margin-top:-10px;" src="/images/New_ui/networkmap/linetwo2.png"> 856 </td> 857 </tr> 858 <tr id="yadns_status" style="display:none;"> 859 <td style="padding:5px 10px 0px 10px;"> 860 <p class="formfonttitle_nwm" ><#YandexDNS#></p> 861 <a href="/YandexDNS.asp" target="_parent"> 862 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; margin-right:10px; background-color:#444f53; line-height:20px;" id="yadns_mode"></p> 863 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; margin-right:10px; background-color:#444f53; line-height:20px;" id="yadns_mode0"></p> 864 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; margin-right:10px; background-color:#444f53; line-height:20px;" id="yadns_mode1"></p> 865 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; margin-right:10px; background-color:#444f53; line-height:20px;" id="yadns_mode2"></p> 866 </a> 867 <img style="margin-top:5px; *margin-top:-10px;" src="/images/New_ui/networkmap/linetwo2.png"> 868 </td> 869 </tr> 870 <tr> 871 <td style="padding:5px 10px 0px 10px;"> 872 <p class="formfonttitle_nwm" >LAN <#MAC_Address#></p> 873 <p style="padding-left:10px; margin-top:3px; *margin-top:-5px; padding-bottom:3px; margin-right:10px; background-color:#444f53; line-height:20px;" id="MAC"></p> 874 <img style="margin-top:5px; *margin-top:-10px;" src="/images/New_ui/networkmap/linetwo2.png"> 875 </td> 876 </tr> 877 <tr id="macaddr_wl2"> 878 <td style="padding:5px 10px 0px 10px;"> 879 <p class="formfonttitle_nwm" >Wireless <span id="macaddr_wl2_title">2.4GHz </span><#MAC_Address#></p> 880 <p style="padding-left:10px; margin-bottom:5px; margin-top:3px; *margin-top:-5px; padding-bottom:3px; margin-right:10px; background-color:#444f53; line-height:20px;" id="MAC_wl2"></p> 881 </td> 882 </tr> 883 <tr id="macaddr_wl5"> 884 <td style="padding:5px 10px 0px 10px;"> 885 <p class="formfonttitle_nwm" >Wireless <span id="macaddr_wl5_title">5GHz </span><#MAC_Address#></p> 886 <p style="padding-left:10px; margin-bottom:5px; margin-top:3px; *margin-top:-5px; padding-bottom:3px; margin-right:10px; background-color:#444f53; line-height:20px;" id="MAC_wl5"></p> 887 </td> 888 </tr> 889 <tr id="macaddr_wl5_2" style="display:none;"> 890 <td style="padding:5px 10px 0px 10px;"> 891 <p class="formfonttitle_nwm" >Wireless <span id="macaddr_wl5_2_title">5GHz-2 </span><#MAC_Address#></p> 892 <p style="padding-left:10px; margin-bottom:5px; margin-top:3px; *margin-top:-5px; padding-bottom:3px; margin-right:10px; background-color:#444f53; line-height:20px;" id="MAC_wl5_2"></p> 893 </td> 894 </tr> 895 </table> 896 </td> 897</tr> 898</table> 899</form> 900<form method="post" name="WPSForm" id="WPSForm" action="/stawl_apply.htm"> 901<input type="hidden" name="current_page" value=""> 902<input type="hidden" name="action_script" value=""> 903<input type="hidden" name="flag" value=""> 904</form> 905 906<form method="post" name="stopPINForm" id="stopPINForm" action="/start_apply.htm" target="hidden_frame"> 907<input type="hidden" name="current_page" value=""> 908<input type="hidden" name="group_id" value=""> 909<input type="hidden" name="action_mode" value=""> 910<input type="hidden" name="wsc_config_command" value="<% nvram_get("wsc_config_command"); %>"> 911</form> 912</body> 913</html> 914