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<title>Untitled Document</title> 8<link href="/NM_style.css" rel="stylesheet" type="text/css" /> 9<link href="/form_style.css" rel="stylesheet" type="text/css" /> 10 11<script type="text/javascript" src="/state.js"></script> 12<script type="text/javascript" src="/general.js"></script> 13<script type="text/javascript" src="formcontrol.js"></script> 14<script type="text/javascript" src="/ajax.js"></script> 15<script> 16var had_wrong_wep_key = false; 17 18var wsc_mode = '<% nvram_get_x("WLANConfig11b", "wsc_mode"); %>'; 19var wsc_method = '<% nvram_get_x("WLANConfig11b", "wsc_method"); %>'; 20var wsc_proc_status = '<% nvram_get_x("WLANConfig11b", "wsc_proc_status"); %>'; 21var wsc_config_state = '<% nvram_get_x("WLANConfig11b", "wsc_config_state"); %>'; 22var wsc_waiting = '<% nvram_get_x("WLANConfig11b", "wsc_waiting"); %>'; 23var wsc_timer_start = '<% nvram_get_x("WLANConfig11b", "wsc_timer_start"); %>'; 24var ID_of_startPBC = null; 25 26var wl_wpa_psk_org = '<% nvram_char_to_ascii("WLANConfig11b", "wl_wpa_psk"); %>'; 27var wl_key1_org = '<% nvram_char_to_ascii("WLANConfig11b", "wl_key1"); %>'; 28var wl_key2_org = '<% nvram_char_to_ascii("WLANConfig11b", "wl_key2"); %>'; 29var wl_key3_org = '<% nvram_char_to_ascii("WLANConfig11b", "wl_key3"); %>'; 30var wl_key4_org = '<% nvram_char_to_ascii("WLANConfig11b", "wl_key4"); %>'; 31 32var secs; 33var timerID = null; 34var timerRunning = false; 35var timeout = 1000; 36var delay = 500; 37var stopFlag = 0; 38 39function initial(){ 40 flash_button(); 41 loadXML(); 42 43 document.form.wl_ssid.value = decodeURIComponent(document.form.wl_ssid2.value); 44 document.form.wl_wpa_psk.value = decodeURIComponent(wl_wpa_psk_org); 45 document.form.wl_key1.value = decodeURIComponent(wl_key1_org); 46 document.form.wl_key2.value = decodeURIComponent(wl_key2_org); 47 document.form.wl_key3.value = decodeURIComponent(wl_key3_org); 48 document.form.wl_key4.value = decodeURIComponent(wl_key4_org); 49 50 if(document.form.wl_wpa_psk.value.length <= 0) 51 document.form.wl_wpa_psk.value = "Please type Password"; 52 53 if(isModel() == "SnapAP" || isCard() == 'ralink') 54 wl_auth_mode_reconf(); 55 56 wl_auth_mode_change(1); 57 show_LAN_info(); 58 domore_create(); 59 60 if(wsc_proc_status == "1" && wsc_mode == "enabled"){ 61 PBC_shining(); 62 } 63} 64 65function PBC_shining(){ 66 $("wpsPBC_button").src = "/images/EZSetup_button_s.gif"; 67 $("wpsPBC_button").onmousedown = function(){}; 68} 69 70function PBC_normal(){ 71 $("wpsPBC_button").src = "/images/EZSetup_button.gif"; 72 $("wpsPBC_button").onmousedown = function(){ 73 $("wpsPBC_button").src = "/images/EZSetup_button_0.gif"; 74 }; 75} 76 77function domore_create(){ 78 var option_AP = new Array(); 79 option_AP[0] = document.createElement("option"); 80 option_AP[0].text = "<#menu5_7_4#>"; 81 option_AP[0].value = "../Main_WStatus_Content.asp" 82 83 if(parent.wan_route_x == "IP_Bridged"){ 84 $("Router_domore").remove(6); 85 $("Router_domore").remove(5); 86 $("Router_domore").remove(4); 87 $("Router_domore").options[3].value="../Advanced_APLAN_Content.asp"; 88 try{ 89 $("Router_domore").add(option_AP[0],null);; // standards compliant 90 } 91 catch(ex){ 92 $("Router_domore").add(option_AP[0],4); // IE only 93 } 94 } 95} 96 97function wl_auth_mode_change(isload){ 98 var mode = document.form.wl_auth_mode.value; 99 var opts = document.form.wl_auth_mode.options; 100 var new_array; 101 var cur_crypto; 102 var cur_key_index, cur_key_obj; 103 104 if(mode == "open" || mode == "shared"){ 105 blocking("all_related_wep", 1); 106 107 change_wep_type(mode); 108 } 109 else{ 110 if(mode == "radius") 111 change_wep_type(mode); 112 113 blocking("all_related_wep", 0); 114 } 115 116 /* enable/disable crypto algorithm */ 117 if(mode == "wpa" || mode == "wpa2" || mode == "psk") 118 blocking("wl_crypto", 1); 119 else 120 blocking("wl_crypto", 0); 121 122 /* enable/disable psk passphrase */ 123 if(mode == "psk") 124 blocking("wl_wpa_psk", 1); 125 else 126 blocking("wl_wpa_psk", 0); 127 128 /* update wl_crypto */ 129 for(var i = 0; i < document.form.wl_crypto.length; ++i) 130 if(document.form.wl_crypto[i].selected){ 131 cur_crypto = document.form.wl_crypto[i].value; 132 break; 133 } 134 135 /* Reconstruct algorithm array from new crypto algorithms */ 136 if(mode == "psk"){ 137 /* Save current crypto algorithm */ 138 if(isModel() == "SnapAP" || isBand() == 'b') 139 new_array = new Array("TKIP"); 140 else{ 141 if(opts[opts.selectedIndex].text == "WPA-Personal") 142 new_array = new Array("TKIP"); 143 else if(opts[opts.selectedIndex].text == "WPA2-Personal") 144 new_array = new Array("AES"); 145 else 146 new_array = new Array("TKIP", "AES", "TKIP+AES"); 147 } 148 149 free_options(document.form.wl_crypto); 150 for(var i in new_array){ 151 document.form.wl_crypto[i] = new Option(new_array[i], new_array[i].toLowerCase()); 152 document.form.wl_crypto[i].value = new_array[i].toLowerCase(); 153 if(new_array[i].toLowerCase() == cur_crypto) 154 document.form.wl_crypto[i].selected = true; 155 } 156 } 157 else if(mode == "wpa"){ 158 if(opts[opts.selectedIndex].text == "WPA-Enterprise") 159 new_array = new Array("TKIP"); 160 else 161 new_array = new Array("TKIP", "AES", "TKIP+AES"); 162 163 free_options(document.form.wl_crypto); 164 for(var i in new_array){ 165 document.form.wl_crypto[i] = new Option(new_array[i], new_array[i].toLowerCase()); 166 document.form.wl_crypto[i].value = new_array[i].toLowerCase(); 167 if(new_array[i].toLowerCase() == cur_crypto) 168 document.form.wl_crypto[i].selected = true; 169 } 170 } 171 else if(mode == "wpa2"){ 172 new_array = new Array("AES"); 173 174 free_options(document.form.wl_crypto); 175 for(var i in new_array){ 176 document.form.wl_crypto[i] = new Option(new_array[i], new_array[i].toLowerCase()); 177 document.form.wl_crypto[i].value = new_array[i].toLowerCase(); 178 if(new_array[i].toLowerCase() == cur_crypto) 179 document.form.wl_crypto[i].selected = true; 180 } 181 } 182 183 /* Save current network key index */ 184 for(var i = 0; i < document.form.wl_key.length; ++i) 185 if(document.form.wl_key[i].selected){ 186 cur_key_index = document.form.wl_key[i].value; 187 break; 188 } 189 190 /* Define new network key indices */ 191 if(mode == "psk" || mode == "wpa" || mode == "wpa2") 192 new_array = new Array("2", "3"); 193 else{ 194 new_array = new Array("1", "2", "3", "4"); 195 196 if(!isload) 197 cur_key_index = "1"; 198 } 199 200 /* Reconstruct network key indices array from new network key indices */ 201 free_options(document.form.wl_key); 202 for(var i in new_array){ 203 document.form.wl_key[i] = new Option(new_array[i], new_array[i]); 204 document.form.wl_key[i].value = new_array[i]; 205 if(new_array[i] == cur_key_index) 206 document.form.wl_key[i].selected = true; 207 } 208 209 wl_wep_change(); 210} 211 212function change_wep_type(mode){ 213 var cur_wep = document.form.wl_wep_x.value; 214 var wep_type_array; 215 var value_array; 216 217 free_options(document.form.wl_wep_x); 218 219 if(mode == "shared" || mode == "radius"){ 220 wep_type_array = new Array("WEP-64bits", "WEP-128bits"); 221 value_array = new Array("1", "2"); 222 } 223 else{ 224 wep_type_array = new Array("None", "WEP-64bits", "WEP-128bits"); 225 value_array = new Array("0", "1", "2"); 226 } 227 228 add_options_x2(document.form.wl_wep_x, wep_type_array, value_array, cur_wep); 229 230 if(mode == "psk" || mode == "wpa" || mode == "wpa2") 231 document.form.wl_wep_x.value = "0"; 232 233 change_wlweptype(document.form.wl_wep_x); 234} 235 236function change_wlweptype(wep_type_obj){ 237 if(wep_type_obj.value == "0") 238 blocking("all_wep_key", 0); 239 else 240 blocking("all_wep_key", 1); 241 242 wl_wep_change(); 243} 244 245function wl_wep_change(){ 246 var mode = document.form.wl_auth_mode.value; 247 var wep = document.form.wl_wep_x.value; 248 249 blocking("wl_crypto", 0); 250 blocking("wl_wpa_psk", 0); 251 252 if(mode == "psk" || mode == "wpa" || mode == "wpa2" || mode == "radius"){ 253 if(mode != "radius") 254 blocking("wl_crypto", 1); 255 256 if(mode == "psk") 257 blocking("wl_wpa_psk", 1); 258 259 blocking("all_related_wep", 0); 260 } 261 else{ 262 blocking("all_related_wep", 1); 263 264 if(wep == "0") 265 blocking("all_wep_key", 0); 266 else{ 267 blocking("all_wep_key", 1); 268 269 show_key(); 270 } 271 } 272 273 change_key_des(); 274} 275 276function change_key_des(){ 277 var objs = getElementsByName_iefix("span", "key_des"); 278 var wep_type = document.form.wl_wep_x.value; 279 var str = ""; 280 281 if(wep_type == "1") 282 str = " (<#WLANConfig11b_WEPKey_itemtype1#>)"; 283 else if(wep_type == "2") 284 str = " (<#WLANConfig11b_WEPKey_itemtype2#>)"; 285 286 str += ":"; 287 288 for(var i = 0; i < objs.length; ++i) 289 showtext(objs[i], str); 290} 291 292function change_auth_mode(auth_mode_obj){ 293 wl_auth_mode_change(0); 294 295 if(auth_mode_obj.value == "psk" || auth_mode_obj.value == "wpa"){ 296 var opts = document.form.wl_auth_mode.options; 297 298 if(opts[opts.selectedIndex].text == "WPA-Personal") 299 document.form.wl_wpa_mode.value = "1"; 300 else if(opts[opts.selectedIndex].text == "WPA2-Personal") 301 document.form.wl_wpa_mode.value="2"; 302 else if(opts[opts.selectedIndex].text == "WPA-Auto-Personal") 303 document.form.wl_wpa_mode.value="0"; 304 else if(opts[opts.selectedIndex].text == "WPA-Enterprise") 305 document.form.wl_wpa_mode.value="3"; 306 else if(opts[opts.selectedIndex].text == "WPA-Auto-Enterprise") 307 document.form.wl_wpa_mode.value = "4"; 308 309 if(auth_mode_obj.value == "psk"){ 310 document.form.wl_wpa_psk.focus(); 311 document.form.wl_wpa_psk.select(); 312 } 313 } 314 else if(auth_mode_obj.value == "shared") 315 show_key(); 316} 317 318function show_key(){ 319 var wep_type = document.form.wl_wep_x.value; 320 var keyindex = document.form.wl_key.value; 321 var cur_key_obj = eval("document.form.wl_key"+keyindex); 322 var cur_key_length = cur_key_obj.value.length; 323 324 if(wep_type == 1){ 325 if(cur_key_length == 5 || cur_key_length == 10) 326 document.form.wl_asuskey1.value = cur_key_obj.value; 327 else 328 document.form.wl_asuskey1.value = "0000000000"; 329 } 330 else if(wep_type == 2){ 331 if(cur_key_length == 13 || cur_key_length == 26) 332 document.form.wl_asuskey1.value = cur_key_obj.value; 333 else 334 document.form.wl_asuskey1.value = "00000000000000000000000000"; 335 } 336 else 337 document.form.wl_asuskey1.value = ""; 338 339 document.form.wl_asuskey1.focus(); 340 document.form.wl_asuskey1.select(); 341} 342 343function submitForm(){ 344 var auth_mode = document.form.wl_auth_mode.value; 345 346 if(!validate_string_ssid(document.form.wl_ssid)) 347 return false; 348 document.form.wl_ssid2.value = encodeURIComponent(document.form.wl_ssid.value); 349 350 if(auth_mode == "psk" || auth_mode == "wpa" || auth_mode == "wpa2"){ 351 if(!validate_psk(document.form.wl_wpa_psk)) 352 return false; 353 } 354 else{ 355 if(auth_mode != "radius" && !validate_wlkey(document.form.wl_asuskey1)) 356 return false; 357 } 358 359 stopFlag = 1; 360 361 document.form.current_page.value = ""; 362 document.form.next_page.value = "/"; 363 document.form.action_mode.value = " Apply "; 364 365 var wep11 = eval('document.form.wl_key'+document.form.wl_key.value); 366 wep11.value = document.form.wl_asuskey1.value; 367 368 document.form.wsc_config_state.value = "1"; 369 370 if((auth_mode == "shared" || auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "radius") 371 && document.form.wsc_mode.value == "enabled") 372 document.form.wsc_mode.value = "disabled"; 373 374 if(auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "radius"){ 375 document.form.target = ""; 376 document.form.next_page.value = "/Advanced_WSecurity_Content.asp"; 377 } 378 379 parent.showLoading(); 380 document.form.submit(); 381 382 return true; 383} 384 385function show_LAN_info(){ 386 showtext($("LANIP"), '<% nvram_get_x("LANHostConfig", "lan_ipaddr_t"); %>'); 387 showtext($("PINCode"), '<% nvram_get_x("", "secret_code"); %>'); 388 showtext($("MAC"), '<% nvram_get_x("", "il0macaddr"); %>'); 389} 390 391function startPBCmethod(){ 392 stopFlag = 1; 393 //clearTimeout(ID_of_startPBC); 394 document.WPSForm.wsc_method.value = "2"; 395 document.WPSForm.wsc_pbc_force.value = "1"; 396 document.WPSForm.action_mode.value = "Update"; 397 document.WPSForm.current_page.value = "/"; 398 document.WPSForm.submit(); 399} 400 401function wpsPBC(obj){ 402 obj.src = "/images/EZSetup_button_0.gif"; 403 404 if(wsc_mode == "enabled"){ 405 if(wsc_method == 1){ //If in unconfigured PIN mode 406 if(wsc_waiting == 1 && wsc_timer_start == 1){ // If in proceeding 407 stopFlag = 1; 408 parent.showLoading(); 409 document.stopPINForm.wsc_config_command.value = "2"; //Interrupt PIN method 410 document.stopPINForm.action_mode.value = "Update"; 411 document.stopPINForm.submit(); 412 clearTimeout(ID_of_startPBC); 413 ID_of_startPBC = setTimeout("startPBCmethod();", 2000); // start the process of PIN mode after 2secs. 414 } 415 else{ 416 parent.showLoading(1); 417 //startPBCmethod(); 418 clearTimeout(ID_of_startPBC); 419 ID_of_startPBC = setTimeout("startPBCmethod();", 1);//*/ 420 } 421 } 422 else{ 423 document.WPSForm.pbc_overlap.value = "1"; 424 if(wsc_waiting == 1 && wsc_timer_start == 1){ // If in proceeding 425 stopFlag = 1; 426 parent.showLoading(1); 427 //startPBCmethod(); 428 clearTimeout(ID_of_startPBC); 429 ID_of_startPBC = setTimeout("startPBCmethod();", 1);//*/ 430 } 431 else{ 432 stopFlag = 1; 433 parent.showLoading(8); 434 //setTimeout("startPBCmethod();", 7000); 435 clearTimeout(ID_of_startPBC); 436 ID_of_startPBC = setTimeout("startPBCmethod();", 7000);//*/ 437 } 438 } 439 } 440 else{ 441 $("wpsPBC_button").src = "/images/EZSetup_button.gif"; 442 //$("WPS_PBCbutton_hint_span").innerHTML = "<a href='../Advanced_WWPS_Content.asp' target='_parent'><#WPS_PBCbutton_hint_notEnable#></a>"; 443 return false; 444 } 445} 446 447function resetTimer(){ 448 if(stopFlag == 1){ 449 stopFlag = 0; 450 InitializeTimer(); 451 } 452} 453 454function InitializeTimer() 455{ 456 if(document.form.wl_auth_mode.value == "shared" 457 || document.form.wl_auth_mode.value == "wpa" 458 || document.form.wl_auth_mode.value == "wpa2" 459 || document.form.wl_auth_mode.value == "radius") 460 return; 461 462 msecs = timeout; 463 StopTheClock(); 464 StartTheTimer(); 465} 466 467function StopTheClock() 468{ 469 if(timerRunning) 470 clearTimeout(timerID); 471 timerRunning = false; 472} 473 474function StartTheTimer(){ 475 if(msecs == 0){ 476 StopTheClock(); 477 478 if(stopFlag == 1) 479 return; 480 481 updateWPS(); 482 msecs = timeout; 483 StartTheTimer(); 484 } 485 else{ 486 msecs = msecs-500; 487 timerRunning = true; 488 timerID = setTimeout("StartTheTimer();", delay); 489 } 490} 491 492function updateWPS() 493{ 494 var ie = window.ActiveXObject; 495 496 if (ie) 497 makeRequest_ie('/WPS_info.asp'); 498 else 499 makeRequest('/WPS_info.asp'); 500} 501 502function loadXML() 503{ 504 updateWPS(); 505 InitializeTimer(); 506} 507 508function refresh_wpsinfo(xmldoc) 509{ 510 var wpss=xmldoc.getElementsByTagName("wps"); 511 if(wpss == null || wpss[0] == null){ 512 stopFlag = 1; 513 return; 514 } 515 516 var wps_infos=wpss[0].getElementsByTagName("wps_info"); 517 518 if(wsc_mode == "disabled"){ 519 document.getElementById("WPS_PBCbutton_hint_span").innerHTML = "<a href='../Advanced_WWPS_Content.asp' target='_parent'><#WPS_PBCbutton_hint_notEnable#></a>" 520 $("wpsPBC_button").title = "<#WPS_PBCbutton_hint_notEnable#>"; 521 } 522 else{ 523 if (wps_infos[2].firstChild.nodeValue == "1"){ 524 document.getElementById("WPS_PBCbutton_hint_span").innerHTML = "<#WPS_PBCbutton_hint_waiting#>"; 525 if($("wpsPBC_button").src != "/images/EZSetup_button_s.gif") 526 $("wpsPBC_button").src = "/images/EZSetup_button_s.gif"; 527 } 528 else if (wps_infos[2].firstChild.nodeValue == "2"){ 529 document.getElementById("WPS_PBCbutton_hint_span").innerHTML = "<#WPS_PBCbutton_hint_success#>"; 530 PBC_normal(); 531 } 532 else{ 533 $("WPS_PBCbutton_hint_span").innerHTML = "<#WPS_PBCbutton_hint_timeout#>"; 534 PBC_normal(); 535 } 536 } 537} 538 539function show_wepkey_help(){ 540 if(document.form.wl_wep_x.value == 1) 541 parent.showHelpofDrSurf(0, 12); 542 else if(document.form.wl_wep_x.value == 2) 543 parent.showHelpofDrSurf(0, 13); 544} 545</script> 546</head> 547 548<body class="statusbody" onload="initial();"> 549<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0"></iframe> 550<form method="post" name="form" id="form" action="/start_apply2.htm"> 551<input type="hidden" name="current_page" value=""> 552<input type="hidden" name="next_page" value=""> 553<input type="hidden" name="sid_list" value="WLANConfig11b;"> 554<input type="hidden" name="group_id" value=""> 555<input type="hidden" name="action_mode" value=""> 556<input type="hidden" name="productid" value="<% nvram_get_x("", "productid"); %>"> 557 558<input type="hidden" name="wsc_mode" value="<% nvram_get_x("WLANConfig11b", "wsc_mode"); %>"> 559<input type="hidden" name="wsc_config_state" value="<% nvram_get_x("WLANConfig11b", "wsc_config_state"); %>"> 560<input type="hidden" name="wl_wpa_mode" value="<% nvram_get_x("WLANConfig11b", "wl_wpa_mode"); %>"> 561<input type="hidden" name="wl_key1" value=""> 562<input type="hidden" name="wl_key2" value=""> 563<input type="hidden" name="wl_key3" value=""> 564<input type="hidden" name="wl_key4" value=""> 565 566<input type="hidden" name="wl_ssid2" value="<% nvram_get_x("WLANConfig11b", "wl_ssid2"); %>"> 567 568<table width="270" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px"> 569 <tr> 570 <th width="95"><#Wireless_name#> (SSID)</th> 571 <td> 572 <input type="text" name="wl_ssid" onfocus="parent.showHelpofDrSurf(0, 1);" value="<% nvram_get_x("WLANConfig11b", "wl_ssid"); %>" maxlength="32" size="22" class="input"/> 573 </td> 574 </tr> 575 <tr> 576 <th width="95"><!--#WLANConfig11b_AuthenticationMethod_itemname#--><#Security_Level#></th> 577 <td> 578 <select name="wl_auth_mode" class="input" onfocus="parent.showHelpofDrSurf(0, 5);" onchange="change_auth_mode(this);"> 579 <option value="open" <% nvram_match_x("WLANConfig11b","wl_auth_mode", "open","selected"); %>>Open System</option> 580 <option value="shared" <% nvram_match_x("WLANConfig11b","wl_auth_mode", "shared","selected"); %>>Shared Key</option> 581 <option value="psk" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "psk", "WLANConfig11b", "wl_wpa_mode", "1", "selected"); %>>WPA-Personal</option> 582 <option value="psk" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "psk", "WLANConfig11b", "wl_wpa_mode", "2", "selected"); %>>WPA2-Personal</option> 583 <option value="psk" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "psk", "WLANConfig11b", "wl_wpa_mode", "0", "selected"); %>>WPA-Auto-Personal</option> 584 <option value="wpa" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "wpa", "WLANConfig11b", "wl_wpa_mode", "3", "selected"); %>>WPA-Enterprise</option> 585 <option value="wpa2" <% nvram_match_x("WLANConfig11b", "wl_auth_mode", "wpa2", "selected"); %>>WPA2-Enterprise</option> 586 <option value="wpa" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "wpa", "WLANConfig11b", "wl_wpa_mode", "4", "selected"); %>>WPA-Auto-Enterprise</option> 587 <option value="radius" <% nvram_match_x("WLANConfig11b","wl_auth_mode", "radius","selected"); %>>Radius with 802.1x</option> 588 </select> 589 </td> 590 </tr> 591</table> 592 593<div id='all_related_wep' style='display:none;'> 594<table width="270" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px"> 595 <tr> 596 <th width="95"><#WLANConfig11b_WEPType_itemname#></th> 597 <td> 598 <select name="wl_wep_x" id="wl_wep_x" class="input" onfocus="parent.showHelpofDrSurf(0, 9);" onchange="change_wlweptype(this);"> 599 <option value="0" <% nvram_match_x("WLANConfig11b", "wl_wep_x", "0", "selected"); %>>None</option> 600 <option value="1" <% nvram_match_x("WLANConfig11b", "wl_wep_x", "1", "selected"); %>>WEP-64bits</option> 601 <option value="2" <% nvram_match_x("WLANConfig11b", "wl_wep_x", "2", "selected"); %>>WEP-128bits</option> 602 </select> 603 </td> 604 </tr> 605</table> 606 607<div id='all_wep_key' style='display:none;'> 608<table width="270" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px"> 609 <tr> 610 <th width="95"><#WLANConfig11b_WEPDefaultKey_itemname#></th> 611 <td> 612 <select name="wl_key" class="input" onfocus="parent.showHelpofDrSurf(0, 10);" onchange="show_key();"> 613 <option value="1" <% nvram_match_x("WLANConfig11b", "wl_key", "1", "selected"); %>>Key1</option> 614 <option value="2" <% nvram_match_x("WLANConfig11b", "wl_key", "2", "selected"); %>>Key2</option> 615 <option value="3" <% nvram_match_x("WLANConfig11b", "wl_key", "3", "selected"); %>>Key3</option> 616 <option value="4" <% nvram_match_x("WLANConfig11b", "wl_key", "4", "selected"); %>>Key4</option> 617 </select> 618 </td> 619 </tr> 620 <tr> 621 <th width="95"><#WLANConfig11b_WEPKey_itemname#></th> 622 <td> 623 <input type="text" name="wl_asuskey1" onfocus="show_wepkey_help();" onKeyUp="return change_wlkey(this, 'WLANConfig11b');" value="" size="22" class="input"/> 624 </td> 625 </tr> 626</table> 627</div> 628</div> 629 630<div id='wl_crypto' style='display:none;'> 631<table width="270" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px"> 632 <tr> 633 <th width="95"><#WLANConfig11b_WPAType_itemname#></th> 634 <td> 635 <select name="wl_crypto" class="input" onfocus="parent.showHelpofDrSurf(0, 6);" onchange="wl_auth_mode_change(0);"> 636 <option value="tkip" <% nvram_match_x("WLANConfig11b", "wl_crypto", "tkip", "selected"); %>>TKIP</option> 637 <option value="aes" <% nvram_match_x("WLANConfig11b", "wl_crypto", "aes", "selected"); %>>AES</option> 638 <option value="tkip+aes" <% nvram_match_x("WLANConfig11b", "wl_crypto", "tkip+aes", "selected"); %>>TKIP+AES</option> 639 </select> 640 </td> 641 </tr> 642</table> 643</div> 644 645<div id='wl_wpa_psk' style='display:none'> 646<table width="270" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px"> 647 <tr> 648 <th width="95"><#WPA-PSKKey#></th> 649 <td> 650 <input type="text" name="wl_wpa_psk" onfocus="parent.showHelpofDrSurf(0, 7);" value="" size="22" maxlength="64" class="input"/> 651 </td> 652 </tr> 653</table> 654</div> 655 656<table width="270" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px"> 657 <tr> 658 <th width="95"><#Wireless_Radio#></th> 659 <td> 660 <input type="radio" name="wl_radio_x" value="1" <% nvram_match_x("WLANConfig11b", "wl_radio_x", "1", "checked"); %>>on 661 <input type="radio" name="wl_radio_x" value="0" <% nvram_match_x("WLANConfig11b", "wl_radio_x", "0", "checked"); %>>off 662 </td> 663 </tr> 664 <tr> 665 <td colspan="2"><input id="applySecurity" type="button" class="button" value="<#CTL_apply#>" onclick="submitForm();" style="margin-left:110px;"></td> 666 <tr> 667 <th width="95"><#LAN_IP#></th> 668 <td id="LANIP"></td> 669 </tr> 670 <tr> 671 <th width="95"><#PIN_code#></th> 672 <td id="PINCode"></td> 673 </tr> 674 <tr> 675 <th width="95"><#MAC_Address#></th> 676 <td id="MAC"></td> 677 </tr> 678 <tr> 679 <th width="95">EZSetup</th> 680 <td> 681 <img src="/images/EZSetup_button.gif" style="cursor:pointer;" align="absmiddle" title="<#WPS_PBCbutton_hint#>" id="wpsPBC_button" onClick="wpsPBC(this);"> 682 <span id="WPS_PBCbutton_hint_span"></span> 683 </td> 684 </tr> 685</table> 686</form> 687 688<select id="Router_domore" class="domore" onchange="domore_link(this);"> 689 <option><#MoreConfig#>...</option> 690 <option value="../Advanced_Wireless_Content.asp"><#menu5_1#>-<#menu5_1_1#></option> 691 <option value="../Advanced_WWPS_Content.asp"><#menu5_1_2#></option> 692 <option value="../Advanced_LAN_Content.asp"><#menu5_2_1#></option> 693 <option value="../Advanced_DHCP_Content.asp"><#menu5_2_2#></option> 694 <option value="../Advanced_GWStaticRoute_Content.asp"><#menu5_2_3#></option> 695 <option value="../Main_LogStatus_Content.asp"><#menu5_7_2#></option> 696</select> 697 698<form method="post" name="WPSForm" id="WPSForm" action="/start_apply.htm"> 699 <input type="hidden" name="current_page" value=""> 700 <input type="hidden" name="next_page" value=""> 701 <input type="hidden" name="sid_list" value="WLANConfig11b;"> 702 <input type="hidden" name="group_id" value=""> 703 <input type="hidden" name="action_mode" value=""> 704 <input type="hidden" name="action_script" value=""> 705 <input type="hidden" name="wsc_method" value="<% nvram_get_x("WLANConfig11b", "wsc_method"); %>"> 706 <input type="hidden" name="wsc_pbc_force" value="<% nvram_get_x("WLANConfig11b", "wsc_pbc_force"); %>"> 707 <input type="hidden" name="pbc_overlap" value="<% nvram_get_x("WLANConfig11b", "pbc_overlap"); %>"> 708</form> 709 710<form method="post" name="stopPINForm" id="stopPINForm" action="/start_apply.htm" target="hidden_frame"> 711 <input type="hidden" name="current_page" value=""> 712 <input type="hidden" name="sid_list" value="WLANConfig11b;"> 713 <input type="hidden" name="group_id" value=""> 714 <input type="hidden" name="action_mode" value=""> 715 <input type="hidden" name="wsc_config_command" value="<% nvram_get_x("WLANConfig11b", "wsc_config_command"); %>"> 716</form> 717</body> 718</html> 719