| 1 |
1 |
<script type="text/javascript" src="js/crypto-js.js"></script>
|
| 2 |
2 |
<script language="javascript">
|
| 3 |
3 |
|
| 4 |
|
#ifdef CONFIG_WLAN_MUMIMO
|
|
4 |
#ifdef CONFIG_WLAN_MUMIMO
|
| 5 |
5 |
var CONFIG_PARA = new Array(
|
| 6 |
6 |
"Enable",
|
| 7 |
7 |
"MUMIMOEnabled",
|
| ... | ... | |
| 160 |
160 |
var WEPKEY_PARA = new Array(
|
| 161 |
161 |
"WEPKey"
|
| 162 |
162 |
);
|
| 163 |
|
|
|
163 |
|
| 164 |
164 |
var WLANWAPI_PARA = new Array(
|
| 165 |
165 |
"WapiKeyMode",
|
| 166 |
166 |
"WapiKey",
|
| ... | ... | |
| 168 |
168 |
"ASIPAddress",
|
| 169 |
169 |
"CertificateType"
|
| 170 |
170 |
);
|
| 171 |
|
|
|
171 |
|
| 172 |
172 |
var b_rate = new Array(
|
| 173 |
173 |
"1",
|
| 174 |
174 |
"2",
|
| ... | ... | |
| 208 |
208 |
|
| 209 |
209 |
str[0] = new Array(101, "&?error_101;");
|
| 210 |
210 |
str[1] = new Array(102, "&?error_102;");
|
| 211 |
|
str[2] = new Array(103, "&?error_103;");
|
|
211 |
str[2] = new Array(103, "&?error_103;");
|
| 212 |
212 |
str[3] = new Array(113, "&?error_113;");
|
| 213 |
213 |
str[3] = new Array(114, "&?error_114;");
|
| 214 |
|
str[4] = new Array(115, "&?error_115;");
|
|
214 |
str[4] = new Array(115, "&?error_115;");
|
| 215 |
215 |
str[5] = new Array(116, "&?error_116;");
|
| 216 |
|
str[6] = new Array(117, "&?error_117;");
|
|
216 |
str[6] = new Array(117, "&?error_117;");
|
| 217 |
217 |
str[7] = new Array(118, "&?error_118;");
|
| 218 |
|
str[8] = new Array(119, "&?error_119;");
|
|
218 |
str[8] = new Array(119, "&?error_119;");
|
| 219 |
219 |
str[9] = new Array(120, "&?error_120;");
|
| 220 |
220 |
str[10] = new Array(121, "&?error_121;");
|
| 221 |
|
str[11] = new Array(122, "&?error_122;");
|
|
221 |
str[11] = new Array(122, "&?error_122;");
|
| 222 |
222 |
str[12] = new Array(108, "&?error_108;");
|
| 223 |
223 |
str[13] = new Array(141, "&?error_141;");
|
| 224 |
224 |
str[14] = new Array(300, "&?cmc_error_300;");
|
| ... | ... | |
| 236 |
236 |
setValue("Frm_DataRates", "b");
|
| 237 |
237 |
}
|
| 238 |
238 |
/* 11n调整增加 */
|
| 239 |
|
var datarates=getValue("Frm_DataRates");
|
|
239 |
var datarates=getValue("Frm_DataRates");
|
| 240 |
240 |
var i;
|
| 241 |
|
|
|
241 |
|
| 242 |
242 |
var rateobj=getObj("Frm_TxRate");
|
| 243 |
243 |
rateobj.options[0] = new Option("&?wan022;","Auto");
|
| 244 |
|
|
|
244 |
|
| 245 |
245 |
if(datarates == "b")
|
| 246 |
246 |
{
|
| 247 |
247 |
rateobj.length = b_rate.length+1;
|
| ... | ... | |
| 258 |
258 |
rateobj.options[i+1] = new Option(g_bg_rate[i]+"Mbps",g_bg_rate[i]);
|
| 259 |
259 |
}
|
| 260 |
260 |
}
|
| 261 |
|
|
|
261 |
|
| 262 |
262 |
if(datarates == "bg")
|
| 263 |
263 |
{
|
| 264 |
264 |
rateobj.length = bg_bg_rate.length+1;
|
| ... | ... | |
| 267 |
267 |
rateobj.options[i+1] = new Option(bg_bg_rate[i]+"Mbps",bg_bg_rate[i]);
|
| 268 |
268 |
}
|
| 269 |
269 |
}
|
| 270 |
|
|
|
270 |
|
| 271 |
271 |
if(datarates == "n")
|
| 272 |
272 |
{
|
| 273 |
|
rateobj.length =1;
|
|
273 |
rateobj.length =1;
|
| 274 |
274 |
}
|
| 275 |
|
|
|
275 |
|
| 276 |
276 |
if(datarates == "gn")
|
| 277 |
277 |
{
|
| 278 |
|
rateobj.length =1;
|
|
278 |
rateobj.length =1;
|
| 279 |
279 |
}
|
| 280 |
|
|
|
280 |
|
| 281 |
281 |
if(datarates == "bgn")
|
| 282 |
282 |
{
|
| 283 |
|
rateobj.length =1;
|
|
283 |
rateobj.length =1;
|
| 284 |
284 |
}
|
| 285 |
|
|
|
285 |
|
| 286 |
286 |
/* 11n调整增加 end*/
|
| 287 |
287 |
var sidebandobj = getObj("Frm_SideBand");
|
| 288 |
288 |
var channelobj = getObj("Frm_Channel");
|
| 289 |
289 |
var userClass;
|
| 290 |
290 |
var channel_list;
|
| 291 |
|
|
|
291 |
|
| 292 |
292 |
/* 根据Frm_CountryCode实时调整channel下拉框列表 */
|
| 293 |
293 |
var channel = getValue("Frm_Channel");
|
| 294 |
294 |
var value = getValue("IF_VIEWID");
|
| 295 |
|
value = value.charAt(value.length-1,1);
|
|
295 |
value = value.charAt(value.length-1,1);
|
| 296 |
296 |
if((value == "1") || (value == "2") || (value == "3") || (value == "4")){
|
| 297 |
297 |
if(getValue("Frm_CountryCode") == "caI" || getValue("Frm_CountryCode") == "usI")
|
| 298 |
298 |
{
|
| ... | ... | |
| 338 |
338 |
{
|
| 339 |
339 |
setValue("Frm_Channel", channel);
|
| 340 |
340 |
}
|
| 341 |
|
|
|
341 |
|
| 342 |
342 |
/* 根据Frm_CountryCode实时调整Frm_DataRates选项 */
|
| 343 |
343 |
//if the country choose brI,then datarates can choose IEEE 802.11b Only.
|
| 344 |
344 |
if (getValue("Frm_CountryCode") == "brI")
|
| 345 |
345 |
{
|
| 346 |
346 |
setValue("Frm_DataRates", "b");
|
| 347 |
347 |
}
|
| 348 |
|
|
|
348 |
|
| 349 |
349 |
/* 根据Frm_CountryCode和Frm_Channel实时调整sideband下拉框列表 */
|
| 350 |
350 |
var channel = getValue("Frm_Channel");
|
| 351 |
351 |
var sideband = getValue("Frm_SideBand");
|
| ... | ... | |
| 421 |
421 |
|
| 422 |
422 |
function UpdateMode()
|
| 423 |
423 |
{
|
| 424 |
|
var datarates=getValue("Frm_DataRates");
|
|
424 |
var datarates=getValue("Frm_DataRates");
|
| 425 |
425 |
var rateobj=getObj("Frm_TxRate");
|
| 426 |
426 |
var i;
|
| 427 |
427 |
|
| ... | ... | |
| 445 |
445 |
}
|
| 446 |
446 |
jslSetValue("Frm_TxRate","TxRate");
|
| 447 |
447 |
}
|
| 448 |
|
|
|
448 |
|
| 449 |
449 |
if(datarates == "bg")
|
| 450 |
450 |
{
|
| 451 |
451 |
rateobj.length = bg_bg_rate.length+1;
|
| ... | ... | |
| 455 |
455 |
}
|
| 456 |
456 |
jslSetValue("Frm_TxRate","TxRate");
|
| 457 |
457 |
}
|
| 458 |
|
|
|
458 |
|
| 459 |
459 |
if(datarates == "n")
|
| 460 |
460 |
{
|
| 461 |
|
setValue("Frm_TxRate", "Auto");
|
|
461 |
setValue("Frm_TxRate", "Auto");
|
| 462 |
462 |
}
|
| 463 |
|
|
|
463 |
|
| 464 |
464 |
if(datarates == "gn")
|
| 465 |
465 |
{
|
| 466 |
|
setValue("Frm_TxRate", "Auto");
|
|
466 |
setValue("Frm_TxRate", "Auto");
|
| 467 |
467 |
}
|
| 468 |
|
|
|
468 |
|
| 469 |
469 |
if(datarates == "bgn")
|
| 470 |
470 |
{
|
| 471 |
|
setValue("Frm_TxRate", "Auto");
|
| 472 |
|
}
|
| 473 |
|
|
|
471 |
setValue("Frm_TxRate", "Auto");
|
|
472 |
}
|
|
473 |
|
| 474 |
474 |
if(getValue("Frm_TxRate") == "")
|
| 475 |
475 |
{
|
| 476 |
476 |
setValue("Frm_TxRate", "Auto");
|
| ... | ... | |
| 479 |
479 |
|
| 480 |
480 |
/*获取SSID名称的参数属性,产品如果不需要该功能可将该部分代码去除,若保留不影响页面显示*/
|
| 481 |
481 |
function SSIDAttrInfo()
|
| 482 |
|
{
|
|
482 |
{
|
| 483 |
483 |
var attr = getValue("IF_SSIDATTR");
|
| 484 |
484 |
if(attr == "3")
|
| 485 |
485 |
{
|
| ... | ... | |
| 488 |
488 |
else
|
| 489 |
489 |
{
|
| 490 |
490 |
jslEnable("Frm_ESSID");
|
| 491 |
|
}
|
|
491 |
}
|
| 492 |
492 |
}
|
| 493 |
493 |
|
| 494 |
494 |
function Wireless_switch()
|
| ... | ... | |
| 496 |
496 |
if(getChecked("Frm_RadioStatus")==false)
|
| 497 |
497 |
{
|
| 498 |
498 |
DisableALL();
|
| 499 |
|
jslEnable("Frm_RadioStatus","Btn_Submit","Btn_Cancel", "help_button", "exit_button","Frm_SSID_SET");
|
|
499 |
jslEnable("Frm_RadioStatus","Btn_Submit","Btn_Cancel", "help_button", "exit_button","Frm_SSID_SET");
|
| 500 |
500 |
}
|
| 501 |
501 |
else
|
| 502 |
502 |
{
|
| ... | ... | |
| 505 |
505 |
jslEnable("Frm_QosType","Frm_RtsCts","Frm_DTIM","Frm_Fragment", "Frm_SSIDIsolationEnable");
|
| 506 |
506 |
jslEnable("Frm_Priority0","Frm_Priority1","Frm_Priority2","Frm_Priority3");
|
| 507 |
507 |
jslEnable("Frm_WapiKeyMode","Frm_WapiKey","Frm_ASIPAddress","Frm_CERTUpload");
|
| 508 |
|
|
|
508 |
|
| 509 |
509 |
jslEnable("Frm_SSID_SET","Frm_ESSIDHideEnable","Frm_Enable","Frm_ESSID","Frm_MaxUserNum");
|
| 510 |
510 |
ESSID_Enable();
|
| 511 |
511 |
SSIDAttrInfo();
|
| 512 |
|
|
|
512 |
|
| 513 |
513 |
var tem=getValue("Frm_Authentication");
|
| 514 |
514 |
if(tem=="Open System")
|
| 515 |
515 |
{
|
| ... | ... | |
| 518 |
518 |
jslEnable("Frm_WEPEncryptionLevel","Frm_WEPKeyIndex","Frm_WEPKey0",
|
| 519 |
519 |
"Frm_WEPKey1","Frm_WEPKey2","Frm_WEPKey3");
|
| 520 |
520 |
}
|
| 521 |
|
jslEnable("Frm_BeaconType");
|
|
521 |
jslEnable("Frm_BeaconType");
|
| 522 |
522 |
}
|
| 523 |
523 |
else if(tem=="Shared Key" || tem=="Both")
|
| 524 |
524 |
{
|
| ... | ... | |
| 534 |
534 |
jslEnable("Frm_WapiKeyMode","Frm_WapiKey","Frm_ASIPAddress","Frm_CERTUpload");
|
| 535 |
535 |
}
|
| 536 |
536 |
jslEnable("Frm_Authentication","Btn_Submit","Btn_Cancel");
|
| 537 |
|
|
|
537 |
|
| 538 |
538 |
PageAttrInfo();
|
| 539 |
539 |
}
|
| 540 |
540 |
}
|
| ... | ... | |
| 549 |
549 |
{
|
| 550 |
550 |
jslEnable("Frm_ESSIDHideEnable","Frm_ESSID","Frm_MaxUserNum");
|
| 551 |
551 |
SSIDAttrInfo();
|
| 552 |
|
}
|
|
552 |
}
|
| 553 |
553 |
EnableAttrInfo();
|
| 554 |
554 |
}
|
| 555 |
555 |
|
| ... | ... | |
| 595 |
595 |
var tem=getValue("Frm_Authentication");
|
| 596 |
596 |
var keyobj=getObj("Frm_BeaconType");
|
| 597 |
597 |
var i;
|
| 598 |
|
|
|
598 |
|
| 599 |
599 |
if(tem=="Open System")
|
| 600 |
600 |
{
|
| 601 |
601 |
keyobj.length = 2;
|
| 602 |
602 |
keyobj.options[0] = new Option("&?wlan028;", "None");
|
| 603 |
603 |
keyobj.options[1] = new Option("&?vs02;", "Basic");
|
| 604 |
|
|
|
604 |
|
| 605 |
605 |
jslDiDisplay("wpa","shared","wapi_psk", "wapi_cert");
|
| 606 |
606 |
jslEnDisplay("t_wep");
|
| 607 |
|
|
|
607 |
|
| 608 |
608 |
/* 如果当前认证模式是“混合类型”、“共享密钥”,操作切换到“开放模式”,应该让WEP加密置为使能。
|
| 609 |
609 |
因为前两个类型,WEP加密必然是使能的,也就是说当前的BeaconType是“Basic”,
|
| 610 |
610 |
从用户使用角度来看最好不要将WEP给关了。
|
| ... | ... | |
| 655 |
655 |
addSelectOption("Frm_WPAEncryptType", "AESEncryption", "AES");
|
| 656 |
656 |
addSelectOption("Frm_WPAEncryptType", "TKIPandAESEncryption", "TKIP+AES");
|
| 657 |
657 |
}
|
| 658 |
|
}
|
|
658 |
}
|
| 659 |
659 |
else if (tem == "WAPI-PSK")
|
| 660 |
660 |
{
|
| 661 |
661 |
jslDiDisplay("shared","t_wep", "wpa", "wapi_cert");
|
| ... | ... | |
| 665 |
665 |
{
|
| 666 |
666 |
jslDiDisplay("shared","t_wep", "wpa", "wapi_psk");
|
| 667 |
667 |
jslEnDisplay("wapi_cert");
|
| 668 |
|
}
|
|
668 |
}
|
| 669 |
669 |
}
|
| 670 |
670 |
|
| 671 |
671 |
/* get之后更新使用,需要根据get到的数据来判断 */
|
| ... | ... | |
| 675 |
675 |
var tem=getValue("Frm_Authentication");
|
| 676 |
676 |
var keyobj=getObj("Frm_BeaconType");
|
| 677 |
677 |
var i;
|
| 678 |
|
|
|
678 |
|
| 679 |
679 |
if(tem=="Open System")
|
| 680 |
680 |
{
|
| 681 |
681 |
keyobj.length = 2;
|
| 682 |
682 |
keyobj.options[0] = new Option("&?wlan028;", "None");
|
| 683 |
683 |
keyobj.options[1] = new Option("&?vs02;", "Basic");
|
| 684 |
|
|
|
684 |
|
| 685 |
685 |
jslSetValue("Frm_BeaconType","BeaconType");
|
| 686 |
686 |
key=getValue("Frm_BeaconType");
|
| 687 |
|
|
|
687 |
|
| 688 |
688 |
if(key=="Basic")
|
| 689 |
689 |
{
|
| 690 |
690 |
jslEnDisplay("shared");
|
| ... | ... | |
| 693 |
693 |
{
|
| 694 |
694 |
jslDiDisplay("shared");
|
| 695 |
695 |
}
|
| 696 |
|
|
|
696 |
|
| 697 |
697 |
jslEnDisplay("t_wep");
|
| 698 |
698 |
jslDiDisplay("wpa","wapi_psk", "wapi_cert");
|
| 699 |
|
|
|
699 |
|
| 700 |
700 |
}
|
| 701 |
701 |
else if(tem=="Shared Key" || tem=="Both")
|
| 702 |
702 |
{
|
| 703 |
703 |
keyobj.length = 1;
|
| 704 |
704 |
keyobj.options[0] = new Option("&?vs02;", "Basic");
|
| 705 |
|
|
|
705 |
|
| 706 |
706 |
jslSetValue("Frm_BeaconType","BeaconType");
|
| 707 |
707 |
key=getValue("Frm_BeaconType");
|
| 708 |
|
|
|
708 |
|
| 709 |
709 |
jslDiDisplay("wpa","wapi_psk", "wapi_cert");
|
| 710 |
710 |
jslEnDisplay("shared","t_wep");
|
| 711 |
711 |
}
|
| ... | ... | |
| 726 |
726 |
addSelectOption("Frm_WPAEncryptType", "TKIPandAESEncryption", "TKIP+AES");
|
| 727 |
727 |
}
|
| 728 |
728 |
setValue("Frm_WPAEncryptType",tt);
|
| 729 |
|
}
|
|
729 |
}
|
| 730 |
730 |
else if (tem == "WAPI-PSK")
|
| 731 |
731 |
{
|
| 732 |
732 |
jslDiDisplay("shared","t_wep", "wpa", "wapi_cert");
|
| ... | ... | |
| 743 |
743 |
{
|
| 744 |
744 |
var Level = getValue("Frm_WEPEncryptionLevel");
|
| 745 |
745 |
var MaxLen;
|
| 746 |
|
|
|
746 |
|
| 747 |
747 |
if (Level == "104-bit") /* 128 bit */
|
| 748 |
748 |
{
|
| 749 |
749 |
MaxLen = 26;
|
| ... | ... | |
| 752 |
752 |
{
|
| 753 |
753 |
MaxLen = 10;
|
| 754 |
754 |
}
|
| 755 |
|
|
|
755 |
|
| 756 |
756 |
for (var i = 0; i < 4; i ++)
|
| 757 |
757 |
{
|
| 758 |
758 |
getObj("Frm_WEPKey"+i).maxlength = MaxLen;
|
| 759 |
|
}
|
|
759 |
}
|
| 760 |
760 |
}
|
| 761 |
761 |
|
| 762 |
762 |
function WEP_Key()
|
| 763 |
763 |
{
|
| 764 |
764 |
var tem=getValue("Frm_Authentication");
|
| 765 |
765 |
var key=getValue("Frm_BeaconType");
|
| 766 |
|
|
|
766 |
|
| 767 |
767 |
if(tem=="Open System")
|
| 768 |
768 |
{
|
| 769 |
769 |
if(key=="Basic")
|
| ... | ... | |
| 783 |
783 |
var userClass;
|
| 784 |
784 |
var channel_list;
|
| 785 |
785 |
var value = getValue("IF_VIEWID");
|
| 786 |
|
value = value.charAt(value.length-1,1);
|
|
786 |
value = value.charAt(value.length-1,1);
|
| 787 |
787 |
if((value == "1") || (value == "2") || (value == "3") || (value == "4")){
|
| 788 |
788 |
if(country == "caI" || country == "usI")
|
| 789 |
789 |
{
|
| ... | ... | |
| 808 |
808 |
{
|
| 809 |
809 |
userClass[i] = parts[i];
|
| 810 |
810 |
}
|
| 811 |
|
|
|
811 |
|
| 812 |
812 |
var rateobj=getObj("Frm_Channel");
|
| 813 |
813 |
rateobj.length = parts.length+1;
|
| 814 |
814 |
rateobj.options[0] = new Option("&?wan022;","Auto");
|
| ... | ... | |
| 816 |
816 |
{
|
| 817 |
817 |
rateobj.options[i+1] = new Option(userClass[i],userClass[i]);
|
| 818 |
818 |
}
|
| 819 |
|
|
| 820 |
|
if((getValue("AutoChannelEnabled") == "1")
|
| 821 |
|
|| (getValue("Channel") == "")
|
|
819 |
|
|
820 |
if((getValue("AutoChannelEnabled") == "1")
|
|
821 |
|| (getValue("Channel") == "")
|
| 822 |
822 |
|| (getValue("Channel") == "0"))
|
| 823 |
823 |
{
|
| 824 |
824 |
setValue("Frm_Channel", "Auto");
|
| ... | ... | |
| 827 |
827 |
{
|
| 828 |
828 |
jslSetValue("Frm_Channel","Channel");
|
| 829 |
829 |
}
|
| 830 |
|
|
|
830 |
|
| 831 |
831 |
if(getValue("Frm_Channel") == "")
|
| 832 |
832 |
{
|
| 833 |
833 |
setValue("Frm_Channel", "Auto");
|
| 834 |
834 |
}
|
| 835 |
|
|
|
835 |
|
| 836 |
836 |
//if the country choose brI,then datarates can choose IEEE 802.11b Only.
|
| 837 |
837 |
var temp_mode;
|
| 838 |
838 |
temp_mode = getValue("Frm_DataRates");
|
| ... | ... | |
| 845 |
845 |
{
|
| 846 |
846 |
setValue("Frm_DataRates", temp_mode);
|
| 847 |
847 |
UpdateMode();
|
| 848 |
|
}
|
| 849 |
|
}
|
|
848 |
}
|
|
849 |
}
|
| 850 |
850 |
function BeaconIntervalCheck()
|
| 851 |
851 |
{
|
| 852 |
852 |
var check;
|
| 853 |
|
|
|
853 |
|
| 854 |
854 |
//check Frm_BeaconInterval
|
| 855 |
855 |
check = checkIntegerRange(getValue("Frm_BeaconInterval"), 20, 1000);
|
| 856 |
856 |
if (check == -1)
|
| ... | ... | |
| 871 |
871 |
ShowErrorForCom("Frm_BeaconInterval","Fnt_BeaconInterval",msg);
|
| 872 |
872 |
return false;
|
| 873 |
873 |
}
|
| 874 |
|
|
|
874 |
|
| 875 |
875 |
return true;
|
| 876 |
876 |
}
|
| 877 |
877 |
|
| 878 |
878 |
function RtsCtsCheck()
|
| 879 |
879 |
{
|
| 880 |
880 |
var check;
|
| 881 |
|
|
|
881 |
|
| 882 |
882 |
//check Frm_RtsCts
|
| 883 |
883 |
check = checkIntegerRange(getValue("Frm_RtsCts"), 0, 2347);
|
| 884 |
884 |
if (check == -1)
|
| ... | ... | |
| 899 |
899 |
ShowErrorForCom("Frm_RtsCts","Fnt_RtsCts",msg);
|
| 900 |
900 |
return false;
|
| 901 |
901 |
}
|
| 902 |
|
|
|
902 |
|
| 903 |
903 |
return true;
|
| 904 |
904 |
}
|
| 905 |
|
|
|
905 |
|
| 906 |
906 |
function DTIMCheck()
|
| 907 |
907 |
{
|
| 908 |
908 |
var check;
|
| 909 |
|
|
|
909 |
|
| 910 |
910 |
//check Frm_DTIM
|
| 911 |
911 |
check = checkIntegerRange(getValue("Frm_DTIM"), 1, 5);
|
| 912 |
912 |
if (check == -1)
|
| ... | ... | |
| 927 |
927 |
ShowErrorForCom("Frm_DTIM","Fnt_DTIM",msg);
|
| 928 |
928 |
return false;
|
| 929 |
929 |
}
|
| 930 |
|
|
|
930 |
|
| 931 |
931 |
return true;
|
| 932 |
932 |
}
|
| 933 |
933 |
|
| 934 |
934 |
function FragmentCheck()
|
| 935 |
935 |
{
|
| 936 |
936 |
var check;
|
| 937 |
|
|
|
937 |
|
| 938 |
938 |
//check Frm_Fragment
|
| 939 |
939 |
check = checkIntegerRange(getValue("Frm_Fragment"), 256, 2346);
|
| 940 |
940 |
if (check == -1)
|
| ... | ... | |
| 942 |
942 |
msg = getmsg(101);
|
| 943 |
943 |
ShowErrorForCom("Frm_Fragment","Fnt_Fragment",msg);
|
| 944 |
944 |
return false;
|
| 945 |
|
}
|
|
945 |
}
|
| 946 |
946 |
if (check == -2)
|
| 947 |
947 |
{
|
| 948 |
948 |
msg = getmsg(115);
|
| ... | ... | |
| 954 |
954 |
msg = getmsg(116,256,2346);
|
| 955 |
955 |
ShowErrorForCom("Frm_Fragment","Fnt_Fragment",msg);
|
| 956 |
956 |
return false;
|
| 957 |
|
}
|
| 958 |
|
|
|
957 |
}
|
|
958 |
|
| 959 |
959 |
return true;
|
| 960 |
960 |
}
|
| 961 |
961 |
|
| ... | ... | |
| 965 |
965 |
{
|
| 966 |
966 |
return false;
|
| 967 |
967 |
}
|
| 968 |
|
|
|
968 |
|
| 969 |
969 |
for (var j = 0 ;j < Key.length; j++)
|
| 970 |
970 |
{
|
| 971 |
971 |
var ch = Key.charCodeAt(j);
|
| ... | ... | |
| 975 |
975 |
return false;
|
| 976 |
976 |
}
|
| 977 |
977 |
}
|
| 978 |
|
|
|
978 |
|
| 979 |
979 |
return true;
|
| 980 |
980 |
}
|
| 981 |
981 |
|
| ... | ... | |
| 985 |
985 |
{
|
| 986 |
986 |
return false;
|
| 987 |
987 |
}
|
| 988 |
|
|
|
988 |
|
| 989 |
989 |
for (var j = 0 ;j < Key.length; j++)
|
| 990 |
990 |
{
|
| 991 |
991 |
var ch = Key.charCodeAt(j);
|
| ... | ... | |
| 996 |
996 |
return false;
|
| 997 |
997 |
}
|
| 998 |
998 |
}
|
| 999 |
|
|
|
999 |
|
| 1000 |
1000 |
return true;
|
| 1001 |
1001 |
}
|
| 1002 |
1002 |
|
| ... | ... | |
| 1006 |
1006 |
var AsciiLenLimit, HexLenLimit;
|
| 1007 |
1007 |
var i,j;
|
| 1008 |
1008 |
var check;
|
| 1009 |
|
|
|
1009 |
|
| 1010 |
1010 |
KeyLen = getValue("Frm_WEPEncryptionLevel");
|
| 1011 |
1011 |
KeyIndex = getValue("Frm_WEPKeyIndex");
|
| 1012 |
|
|
|
1012 |
|
| 1013 |
1013 |
if (getDisplay("shared") == false)
|
| 1014 |
1014 |
{
|
| 1015 |
1015 |
return true;/* 页面没有显示该参数,不需要校验 */
|
| 1016 |
1016 |
}
|
| 1017 |
|
|
|
1017 |
|
| 1018 |
1018 |
for (i = 0; i < 4; i++ )
|
| 1019 |
1019 |
{
|
| 1020 |
1020 |
Key = getValue("Frm_WEPKey"+i);
|
| ... | ... | |
| 1038 |
1038 |
continue;
|
| 1039 |
1039 |
}
|
| 1040 |
1040 |
}
|
| 1041 |
|
|
|
1041 |
|
| 1042 |
1042 |
if (KeyLen == "104-bit")/* 128 bit */
|
| 1043 |
1043 |
{
|
| 1044 |
1044 |
AsciiLenLimit = 13;
|
| ... | ... | |
| 1062 |
1062 |
}
|
| 1063 |
1063 |
}
|
| 1064 |
1064 |
}
|
| 1065 |
|
|
|
1065 |
|
| 1066 |
1066 |
return true;
|
| 1067 |
1067 |
}
|
| 1068 |
1068 |
|
| ... | ... | |
| 1072 |
1072 |
{
|
| 1073 |
1073 |
return true;/* 页面没有显示该参数,不需要校验 */
|
| 1074 |
1074 |
}
|
| 1075 |
|
|
|
1075 |
|
| 1076 |
1076 |
var value = getValue("Frm_KeyPassphrase");
|
| 1077 |
1077 |
if(value == "********")
|
| 1078 |
1078 |
{
|
| ... | ... | |
| 1090 |
1090 |
msg = getmsg(102,8,63);
|
| 1091 |
1091 |
ShowErrorForCom("Frm_KeyPassphrase","Fnt_KeyPassphrase",msg);
|
| 1092 |
1092 |
return false;
|
| 1093 |
|
}
|
| 1094 |
|
|
|
1093 |
}
|
|
1094 |
|
| 1095 |
1095 |
var strReapting = 0;
|
| 1096 |
1096 |
var strType = 0;
|
| 1097 |
1097 |
if(checkRepeatingCharacter(value))
|
| ... | ... | |
| 1117 |
1117 |
var msg = getmsg(015)+getmsg(016)+getmsg(017);
|
| 1118 |
1118 |
ShowNoteForCom("Frm_KeyPassphrase","Fnt_KeyPassphrase",msg);
|
| 1119 |
1119 |
}
|
| 1120 |
|
|
|
1120 |
|
| 1121 |
1121 |
return true;
|
| 1122 |
1122 |
}
|
| 1123 |
1123 |
|
| ... | ... | |
| 1144 |
1144 |
{
|
| 1145 |
1145 |
return false;
|
| 1146 |
1146 |
}
|
| 1147 |
|
|
|
1147 |
|
| 1148 |
1148 |
if (BeaconIntervalCheck() == false)
|
| 1149 |
1149 |
{
|
| 1150 |
1150 |
return false;
|
| ... | ... | |
| 1160 |
1160 |
if(KeyPassphraseCheck() == false)
|
| 1161 |
1161 |
{
|
| 1162 |
1162 |
return false;
|
| 1163 |
|
}
|
| 1164 |
|
|
|
1163 |
}
|
|
1164 |
|
| 1165 |
1165 |
#ifdef CONFIG_ZXIC_WLAN_WAPI
|
| 1166 |
1166 |
if (wapiPSKCheck() == false)
|
| 1167 |
1167 |
{
|
| ... | ... | |
| 1173 |
1173 |
return false;
|
| 1174 |
1174 |
}
|
| 1175 |
1175 |
#endif
|
| 1176 |
|
|
|
1176 |
|
| 1177 |
1177 |
return true;
|
| 1178 |
1178 |
}
|
| 1179 |
1179 |
|
| ... | ... | |
| 1195 |
1195 |
{
|
| 1196 |
1196 |
return -1;
|
| 1197 |
1197 |
}
|
| 1198 |
|
|
|
1198 |
|
| 1199 |
1199 |
if (Key.length < Limit1 || Key.length > Limit2)
|
| 1200 |
1200 |
{
|
| 1201 |
1201 |
return -3;
|
| 1202 |
1202 |
}
|
| 1203 |
|
|
|
1203 |
|
| 1204 |
1204 |
for (var j = 0 ;j < Key.length; j++)
|
| 1205 |
1205 |
{
|
| 1206 |
1206 |
var ch = Key.charCodeAt(j);
|
| ... | ... | |
| 1211 |
1211 |
return -4;
|
| 1212 |
1212 |
}
|
| 1213 |
1213 |
}
|
| 1214 |
|
|
|
1214 |
|
| 1215 |
1215 |
/* 对长度进行奇偶校验*/
|
| 1216 |
1216 |
var remainder = Key.length % 2;
|
| 1217 |
1217 |
if (remainder == 1)
|
| 1218 |
1218 |
{
|
| 1219 |
1219 |
return -5;
|
| 1220 |
1220 |
}
|
| 1221 |
|
|
|
1221 |
|
| 1222 |
1222 |
return true;
|
| 1223 |
|
}
|
|
1223 |
}
|
| 1224 |
1224 |
|
| 1225 |
1225 |
function wapiPSKCheck()
|
| 1226 |
1226 |
{
|
| 1227 |
1227 |
if (getDisplay("wapi_psk") == false)
|
| 1228 |
1228 |
{
|
| 1229 |
|
return true;
|
|
1229 |
return true;
|
| 1230 |
1230 |
}
|
| 1231 |
|
|
|
1231 |
|
| 1232 |
1232 |
/* 按照 wapikeymode 校验psk , 校验规则 鲁波 给出
|
| 1233 |
1233 |
ASCII: 长度:8-64,范围:ASCII码表中规定的可见字符
|
| 1234 |
1234 |
Hex: 长度:16-62,范围:0-9 a-f A-F (注:建议限制为偶数个,如为奇数个,最后一位会被丢弃)
|
| ... | ... | |
| 1249 |
1249 |
msg = getmsg(102,8,64);
|
| 1250 |
1250 |
ShowErrorForCom("Frm_WapiKey","Fnt_WapiKey",msg);
|
| 1251 |
1251 |
return false;
|
| 1252 |
|
}
|
| 1253 |
|
|
|
1252 |
}
|
|
1253 |
|
| 1254 |
1254 |
check = checkGenStringForASC(value);
|
| 1255 |
1255 |
if (check == false)
|
| 1256 |
1256 |
{
|
| ... | ... | |
| 1288 |
1288 |
return false;
|
| 1289 |
1289 |
}
|
| 1290 |
1290 |
}
|
| 1291 |
|
|
|
1291 |
|
| 1292 |
1292 |
return true;
|
| 1293 |
1293 |
}
|
| 1294 |
1294 |
|
| ... | ... | |
| 1297 |
1297 |
/* 校验IP */
|
| 1298 |
1298 |
if (getDisplay("wapi_cert") == false)
|
| 1299 |
1299 |
{
|
| 1300 |
|
return true;
|
|
1300 |
return true;
|
| 1301 |
1301 |
}
|
| 1302 |
1302 |
|
| 1303 |
1303 |
if(checkNull(getValue("Frm_ASIPAddress")) == false)
|
| ... | ... | |
| 1318 |
1318 |
msg = getmsg(141);
|
| 1319 |
1319 |
ShowErrorForCom("Frm_ASIPAddress","Fnt_ASIPAddress",msg);
|
| 1320 |
1320 |
return false;
|
| 1321 |
|
}
|
| 1322 |
|
|
|
1321 |
}
|
|
1322 |
|
| 1323 |
1323 |
return true;
|
| 1324 |
|
}
|
|
1324 |
}
|
| 1325 |
1325 |
|
| 1326 |
1326 |
function ESSIDCheck()
|
| 1327 |
1327 |
{
|
| ... | ... | |
| 1332 |
1332 |
{
|
| 1333 |
1333 |
return true;
|
| 1334 |
1334 |
}
|
| 1335 |
|
|
|
1335 |
|
| 1336 |
1336 |
//check Frm_ESSID
|
| 1337 |
1337 |
check = checkEssidNew(getValue("ESSIDPrefix")+getValue("Frm_ESSID"));
|
| 1338 |
1338 |
if (check == -1)
|
| ... | ... | |
| 1346 |
1346 |
msg = getmsg(102,1,32);
|
| 1347 |
1347 |
ShowErrorForCom("Frm_ESSID","Fnt_ESSID",msg);
|
| 1348 |
1348 |
return false;
|
| 1349 |
|
}
|
|
1349 |
}
|
| 1350 |
1350 |
if (check == false)
|
| 1351 |
1351 |
{
|
| 1352 |
1352 |
msg = getmsg(113);
|
| 1353 |
1353 |
ShowErrorForCom("Frm_ESSID","Fnt_ESSID",msg);
|
| 1354 |
1354 |
return false;
|
| 1355 |
|
}
|
| 1356 |
|
|
|
1355 |
}
|
|
1356 |
|
| 1357 |
1357 |
<%
|
| 1358 |
1358 |
/*江苏移动,用户通过配置页面在对SSID-1的名称进行配置时,不可将SSID-1设置成与SSID-2相同的名称*/
|
| 1359 |
|
//if( getenv("CountryCode") == "400")
|
|
1359 |
//if( getenv("CountryCode") == "400")
|
| 1360 |
1360 |
if( getenv("Right") == 2)
|
| 1361 |
1361 |
{
|
| 1362 |
1362 |
%>
|
| ... | ... | |
| 1371 |
1371 |
<%
|
| 1372 |
1372 |
}
|
| 1373 |
1373 |
%>
|
| 1374 |
|
|
|
1374 |
|
| 1375 |
1375 |
/*检查最大用户数,数值在1~40之间 移动集采*/
|
| 1376 |
1376 |
if(axmode == 1)
|
| 1377 |
1377 |
{
|
| ... | ... | |
| 1398 |
1398 |
}
|
| 1399 |
1399 |
|
| 1400 |
1400 |
function EnableAttrInfo()
|
| 1401 |
|
{
|
|
1401 |
{
|
| 1402 |
1402 |
var enableattr = getValue("IF_EnableATTR");
|
| 1403 |
1403 |
if(enableattr == "3")
|
| 1404 |
1404 |
{
|
| ... | ... | |
| 1407 |
1407 |
else
|
| 1408 |
1408 |
{
|
| 1409 |
1409 |
jslEnable("Frm_Enable");
|
| 1410 |
|
}
|
|
1410 |
}
|
| 1411 |
1411 |
}
|
| 1412 |
1412 |
|
| 1413 |
|
function pageLoad(url)
|
| 1414 |
|
{
|
|
1413 |
function pageLoad(url)
|
|
1414 |
{
|
| 1415 |
1415 |
moveErrLayer(580,95);
|
| 1416 |
|
|
|
1416 |
|
| 1417 |
1417 |
getObj("fSubmit").action = url;
|
| 1418 |
|
|
| 1419 |
|
var errstr= getValue("IF_ERRORSTR");
|
| 1420 |
|
var errpara = getValue("IF_ERRORPARAM");
|
| 1421 |
|
|
|
1418 |
|
|
1419 |
var errstr= getValue("IF_ERRORSTR");
|
|
1420 |
var errpara = getValue("IF_ERRORPARAM");
|
|
1421 |
|
| 1422 |
1422 |
/* 参数类错误需要先做参数适配 */
|
| 1423 |
1423 |
if (errstr != "SUCC" && errpara != "SUCC")
|
| 1424 |
1424 |
{
|
| 1425 |
1425 |
if((errpara == "BasicDataRates") || (errpara == "OpDataRates"))
|
| 1426 |
1426 |
{
|
| 1427 |
|
errpara = "DataRates";
|
|
1427 |
errpara = "DataRates";
|
| 1428 |
1428 |
}
|
| 1429 |
1429 |
if((errpara == "Channel") || (errpara == "AutoChannelEnabled"))
|
| 1430 |
1430 |
{
|
| 1431 |
|
errpara = "Channel";
|
|
1431 |
errpara = "Channel";
|
| 1432 |
1432 |
}
|
| 1433 |
|
if((errpara == "WEPAuthMod") || (errpara == "BeaconType")
|
|
1433 |
if((errpara == "WEPAuthMod") || (errpara == "BeaconType")
|
| 1434 |
1434 |
||(errpara == "WPAAuthMode") || (errpara == "11iAuthMode"))
|
| 1435 |
1435 |
{
|
| 1436 |
|
errpara = "Authentication";
|
|
1436 |
errpara = "Authentication";
|
| 1437 |
1437 |
}
|
| 1438 |
1438 |
}
|
| 1439 |
|
|
|
1439 |
|
| 1440 |
1440 |
/* 调用通用处理pmapi返回值得函数 */
|
| 1441 |
1441 |
ProcessRet(errstr, errpara);
|
| 1442 |
|
|
|
1442 |
|
| 1443 |
1443 |
pageGetValue();
|
| 1444 |
1444 |
}
|
| 1445 |
1445 |
|
| ... | ... | |
| 1478 |
1478 |
{
|
| 1479 |
1479 |
%>
|
| 1480 |
1480 |
jslEnDisplay("TR_Priority1","TR_Priority2","TR_Priority3","TR_Priority0");
|
| 1481 |
|
|
| 1482 |
|
jslDiDisplay("TR_Priority1","TR_Priority2","TR_Priority3");
|
|
1481 |
|
|
1482 |
jslDiDisplay("TR_Priority1","TR_Priority2","TR_Priority3");
|
| 1483 |
1483 |
<%
|
| 1484 |
1484 |
}
|
| 1485 |
1485 |
else
|
| 1486 |
1486 |
{
|
| 1487 |
1487 |
%>
|
| 1488 |
1488 |
jslEnDisplay("TR_Priority0");
|
| 1489 |
|
jslDiDisplay("TR_Priority1","TR_Priority2","TR_Priority3");
|
|
1489 |
jslDiDisplay("TR_Priority1","TR_Priority2","TR_Priority3");
|
| 1490 |
1490 |
<%
|
| 1491 |
1491 |
}
|
| 1492 |
|
%>
|
|
1492 |
%>
|
| 1493 |
1493 |
}
|
| 1494 |
1494 |
else
|
| 1495 |
1495 |
{
|
| ... | ... | |
| 1524 |
1524 |
else
|
| 1525 |
1525 |
{
|
| 1526 |
1526 |
setChecked("Frm_SSIDIsolationEnable", false);
|
| 1527 |
|
}
|
| 1528 |
|
|
|
1527 |
}
|
|
1528 |
|
| 1529 |
1529 |
jslSetValue("Frm_DataRates", "Standard");
|
| 1530 |
1530 |
/*
|
| 1531 |
1531 |
if(getValue("CountryCode") == "")
|
| ... | ... | |
| 1536 |
1536 |
{
|
| 1537 |
1537 |
jslSetValue("Frm_CountryCode","CountryCode");
|
| 1538 |
1538 |
}
|
| 1539 |
|
|
|
1539 |
|
| 1540 |
1540 |
if((getValue("AutoChannelEnabled") == "1") || (getValue("Channel") == "") || (getValue("Channel") == "0"))
|
| 1541 |
1541 |
{
|
| 1542 |
1542 |
setValue("Frm_Channel", "Auto");
|
| ... | ... | |
| 1547 |
1547 |
}
|
| 1548 |
1548 |
*/
|
| 1549 |
1549 |
jslSetValue("Frm_BandWidth","BandWidth");
|
| 1550 |
|
|
|
1550 |
|
| 1551 |
1551 |
jslSetValue("Frm_SideBand","SideBand");
|
| 1552 |
|
|
|
1552 |
|
| 1553 |
1553 |
if(getValue("SGIEnabled") == "1")
|
| 1554 |
1554 |
{
|
| 1555 |
1555 |
setChecked("Frm_SGIEnabled", true);
|
| ... | ... | |
| 1558 |
1558 |
{
|
| 1559 |
1559 |
setChecked("Frm_SGIEnabled", false);
|
| 1560 |
1560 |
}
|
| 1561 |
|
|
|
1561 |
|
| 1562 |
1562 |
if(getValue("CountryCode") == "")
|
| 1563 |
1563 |
{
|
| 1564 |
1564 |
setValue("Frm_CountryCode", "cnI");
|
| ... | ... | |
| 1567 |
1567 |
{
|
| 1568 |
1568 |
jslSetValue("Frm_CountryCode","CountryCode");
|
| 1569 |
1569 |
}
|
| 1570 |
|
|
|
1570 |
|
| 1571 |
1571 |
jslSetValue("Frm_BeaconInterval","BeaconInterval");
|
| 1572 |
|
|
|
1572 |
|
| 1573 |
1573 |
if(getValue("TxPower") == "")
|
| 1574 |
1574 |
{
|
| 1575 |
1575 |
setValue("Frm_TxPower", "100%");
|
| ... | ... | |
| 1578 |
1578 |
{
|
| 1579 |
1579 |
jslSetValue("Frm_TxPower","TxPower");
|
| 1580 |
1580 |
}
|
| 1581 |
|
|
|
1581 |
|
| 1582 |
1582 |
if(getValue("QosType") == "")
|
| 1583 |
1583 |
{
|
| 1584 |
1584 |
setValue("Frm_QosType", "Disabled");
|
| ... | ... | |
| 1587 |
1587 |
{
|
| 1588 |
1588 |
jslSetValue("Frm_QosType","QosType");
|
| 1589 |
1589 |
}
|
| 1590 |
|
|
| 1591 |
|
jslSetValue("Frm_RtsCts","RtsCts");
|
| 1592 |
|
jslSetValue("Frm_DTIM","DTIM");
|
|
1590 |
|
|
1591 |
jslSetValue("Frm_RtsCts","RtsCts");
|
|
1592 |
jslSetValue("Frm_DTIM","DTIM");
|
| 1593 |
1593 |
jslSetValue("Frm_Fragment","Fragment");
|
| 1594 |
|
|
|
1594 |
|
| 1595 |
1595 |
jslSetValue("Frm_SSID_SET","IF_VIEWID");
|
| 1596 |
|
#ifdef CONFIG_WLAN_MUMIMO
|
|
1596 |
#ifdef CONFIG_WLAN_MUMIMO
|
| 1597 |
1597 |
if(getValue("Frm_SSID_SET")=="IGD.LD1.WLAN1" || getValue("Frm_SSID_SET")=="IGD.LD1.WLAN2" || getValue("Frm_SSID_SET")=="IGD.LD1.WLAN3" || getValue("Frm_SSID_SET")=="IGD.LD1.WLAN4"){
|
| 1598 |
1598 |
jslDiDisplay("MUMIMO_Enabled");
|
| 1599 |
1599 |
}
|
| ... | ... | |
| 1616 |
1616 |
}
|
| 1617 |
1617 |
|
| 1618 |
1618 |
jslSetValue("Frm_MaxUserNum","MaxUserNum");
|
| 1619 |
|
|
|
1619 |
|
| 1620 |
1620 |
<%
|
| 1621 |
1621 |
if(getenv("CountryCode")==308)
|
| 1622 |
1622 |
{
|
| ... | ... | |
| 1627 |
1627 |
<%
|
| 1628 |
1628 |
}
|
| 1629 |
1629 |
%>
|
| 1630 |
|
|
|
1630 |
|
| 1631 |
1631 |
gp_ssidPre = getValue("ESSIDPrefix");
|
| 1632 |
1632 |
getObj("ssid_header").innerHTML = gp_ssidPre;
|
| 1633 |
|
|
|
1633 |
|
| 1634 |
1634 |
var tmplen = getValue("ESSIDPrefix").length;
|
| 1635 |
1635 |
var tmpvalue = getValue("ESSID");
|
| 1636 |
1636 |
var rangehtml = "&?essid_001;";
|
| ... | ... | |
| 1708 |
1708 |
setValue("Frm_Authentication", "WPA2-PSK");
|
| 1709 |
1709 |
jslSetValue("Frm_WPAEncryptType","11iEncryptType");
|
| 1710 |
1710 |
}
|
| 1711 |
|
if((getValue("BeaconType") == "WPAand11i") && (getValue("WPAAuthMode") == "PSKAuthentication")
|
|
1711 |
if((getValue("BeaconType") == "WPAand11i") && (getValue("WPAAuthMode") == "PSKAuthentication")
|
| 1712 |
1712 |
&& (getValue("11iAuthMode") == "PSKAuthentication"))
|
| 1713 |
1713 |
{
|
| 1714 |
1714 |
setValue("Frm_Authentication", "WPA/WPA2-PSK");
|
| ... | ... | |
| 1721 |
1721 |
/* 此处从WPAEncryptType或者11iEncryptType获得都一样,在WPA/WPA2-PSK方式下两者值应该相等的 */
|
| 1722 |
1722 |
jslSetValue("Frm_WPAEncryptType","WPA3SAEEncryptType");
|
| 1723 |
1723 |
}
|
| 1724 |
|
if((getValue("BeaconType") == "WPA3and11i") && (getValue("WPA3TAuthMode") == "PSKAuthentication")
|
|
1724 |
if((getValue("BeaconType") == "WPA3and11i") && (getValue("WPA3TAuthMode") == "PSKAuthentication")
|
| 1725 |
1725 |
&& (getValue("11iAuthMode") == "PSKAuthentication"))
|
| 1726 |
1726 |
{
|
| 1727 |
1727 |
setValue("Frm_Authentication", "WPA2-PSK/WPA3-PSK");
|
| ... | ... | |
| 1753 |
1753 |
setValue("Frm_WEPKey3","********");
|
| 1754 |
1754 |
setValue("Frm_KeyPassphrase", "********");
|
| 1755 |
1755 |
jslSetValue("Frm_WPAGroupRekey","WPAGroupRekey");
|
| 1756 |
|
|
|
1756 |
|
| 1757 |
1757 |
#ifdef CONFIG_ZXIC_WLAN_WAPI
|
| 1758 |
1758 |
/* WAPI-PSK 参数get */
|
| 1759 |
1759 |
jslSetValue("Frm_WapiKeyMode" ,"WapiKeyMode");
|
| ... | ... | |
| 1767 |
1767 |
ASIPAddress = "";
|
| 1768 |
1768 |
setValue("Frm_ASIPAddress", ASIPAddress);
|
| 1769 |
1769 |
#endif
|
| 1770 |
|
|
|
1770 |
|
| 1771 |
1771 |
Mode_switch();
|
| 1772 |
1772 |
Country_switch();
|
| 1773 |
1773 |
/*根据获取到的值动态更新菜单*/
|
| 1774 |
1774 |
WEPEncryptionLevel();
|
| 1775 |
|
UpdateAuthentication();
|
|
1775 |
UpdateAuthentication();
|
| 1776 |
1776 |
Wireless_switch();
|
| 1777 |
1777 |
ChangeType();
|
| 1778 |
1778 |
ChangeBandWidth();
|
| ... | ... | |
| 1795 |
1795 |
}
|
| 1796 |
1796 |
|
| 1797 |
1797 |
function PageAttrInfo()
|
| 1798 |
|
{
|
|
1798 |
{
|
| 1799 |
1799 |
var attr = getValue("IF_BeaconTypeATTR");
|
| 1800 |
1800 |
if(attr == "3")
|
| 1801 |
1801 |
{
|
| ... | ... | |
| 1821 |
1821 |
function pageSetValue()
|
| 1822 |
1822 |
{
|
| 1823 |
1823 |
// HiddenParaInit(CONFIG_PARA);
|
| 1824 |
|
|
|
1824 |
|
| 1825 |
1825 |
if(getChecked("Frm_RadioStatus") == true)
|
| 1826 |
1826 |
{
|
| 1827 |
1827 |
setValue("RadioStatus", "1");
|
| ... | ... | |
| 1848 |
1848 |
{
|
| 1849 |
1849 |
setValue("SSIDIsolationEnable", "0");
|
| 1850 |
1850 |
}
|
| 1851 |
|
|
|
1851 |
|
| 1852 |
1852 |
if(getValue("Frm_DataRates") == "b")
|
| 1853 |
1853 |
{
|
| 1854 |
1854 |
setValue("BasicDataRates", "1,2");
|
| ... | ... | |
| 1989 |
1989 |
setValue("11beMode","0");
|
| 1990 |
1990 |
#endif
|
| 1991 |
1991 |
setValue("GreenField", "0");
|
| 1992 |
|
}
|
|
1992 |
}
|
| 1993 |
1993 |
if(getValue("Frm_DataRates") == "ax")
|
| 1994 |
1994 |
{
|
| 1995 |
1995 |
setValue("BasicDataRates", "6,9,12,18,24,36,48,54");
|
| ... | ... | |
| 2006 |
2006 |
}
|
| 2007 |
2007 |
if(getValue("Frm_DataRates") == "anac")
|
| 2008 |
2008 |
{
|
| 2009 |
|
setValue("BasicDataRates", "6,9,12,18,24,36,48,54");
|
|
2009 |
setValue("BasicDataRates", "6,9,12,18,24,36,48,54");
|
| 2010 |
2010 |
setValue("11axMode", "0");
|
| 2011 |
2011 |
setValue("11acMode", "1");
|
| 2012 |
2012 |
setValue("11nMode", "1");
|
| ... | ... | |
| 2044 |
2044 |
setValue("GreenField", "0");
|
| 2045 |
2045 |
}
|
| 2046 |
2046 |
if(getValue("Frm_DataRates") == "bgnaxbe")
|
| 2047 |
|
{
|
|
2047 |
{
|
| 2048 |
2048 |
setValue("BasicDataRates", "1,2,5.5,11");
|
| 2049 |
|
setValue("OpDataRates", "1,2,5.5,11,6,9,12,18,24,36,48,54");
|
|
2049 |
setValue("OpDataRates", "1,2,5.5,11,6,9,12,18,24,36,48,54");
|
| 2050 |
2050 |
setValue("11axMode", "1");
|
| 2051 |
2051 |
setValue("11axOnly", "0");
|
| 2052 |
|
setValue("11nMode", "1");
|
|
2052 |
setValue("11nMode", "1");
|
| 2053 |
2053 |
#ifdef CONFIG_ZXIC_WLAN_BE
|
| 2054 |
2054 |
setValue("11beMode","1");
|
| 2055 |
|
#endif
|
|
2055 |
#endif
|
| 2056 |
2056 |
setValue("GreenField", "0");
|
| 2057 |
2057 |
}
|
| 2058 |
2058 |
|
| 2059 |
|
|
|
2059 |
|
| 2060 |
2060 |
jslSetValue("CountryCode","Frm_CountryCode");
|
| 2061 |
|
|
|
2061 |
|
| 2062 |
2062 |
if(getValue("Frm_Channel") == "Auto")
|
| 2063 |
2063 |
{
|
| 2064 |
2064 |
setValue("AutoChannelEnabled", "1");
|
| ... | ... | |
| 2068 |
2068 |
jslSetValue("Channel", "Frm_Channel");
|
| 2069 |
2069 |
setValue("AutoChannelEnabled", "0");
|
| 2070 |
2070 |
}
|
| 2071 |
|
|
|
2071 |
|
| 2072 |
2072 |
HiddenParaInit(BASE_PARA);
|
| 2073 |
2073 |
if(getValue("Frm_BandWidth") == "80Mhz")
|
| 2074 |
2074 |
{
|
| ... | ... | |
| 2084 |
2084 |
|| (getValue("Frm_DataRates") == "ax")|| (getValue("Frm_DataRates") == "bgnax")|| (getValue("Frm_DataRates") == "anacax")|| (getValue("Frm_DataRates") == "nac")
|
| 2085 |
2085 |
|| (getValue("Frm_DataRates") == "acax")||(getValue("Frm_DataRates") == "bgnaxbe"))
|
| 2086 |
2086 |
|
| 2087 |
|
{
|
|
2087 |
{
|
| 2088 |
2088 |
jslSetValue("BandWidth", "Frm_BandWidth");
|
| 2089 |
2089 |
if (getValue("Frm_BandWidth") == "20Mhz/40Mhz/80Mhz")
|
| 2090 |
2090 |
{
|
| 2091 |
2091 |
setValue("BandWidth", "80Mhz");
|
| 2092 |
2092 |
}
|
| 2093 |
|
|
|
2093 |
|
| 2094 |
2094 |
if(getChecked("Frm_SGIEnabled") == true)
|
| 2095 |
2095 |
{
|
| 2096 |
2096 |
setValue("SGIEnabled", "1");
|
| ... | ... | |
| 2105 |
2105 |
}
|
| 2106 |
2106 |
//setValue("TxRate","Auto");
|
| 2107 |
2107 |
}
|
| 2108 |
|
|
|
2108 |
|
| 2109 |
2109 |
jslSetValue("BeaconInterval","Frm_BeaconInterval");
|
| 2110 |
|
|
|
2110 |
|
| 2111 |
2111 |
jslSetValue("TxRate","Frm_TxRate");
|
| 2112 |
|
|
|
2112 |
|
| 2113 |
2113 |
jslSetValue("TxPower","Frm_TxPower");
|
| 2114 |
|
|
|
2114 |
|
| 2115 |
2115 |
jslSetValue("QosType","Frm_QosType");
|
| 2116 |
|
|
|
2116 |
|
| 2117 |
2117 |
jslSetValue("RtsCts","Frm_RtsCts");
|
| 2118 |
|
|
|
2118 |
|
| 2119 |
2119 |
jslSetValue("DTIM","Frm_DTIM");
|
| 2120 |
|
|
|
2120 |
|
| 2121 |
2121 |
/* 只在类型为SSID时,才设置四个SSID的优先级 */
|
| 2122 |
2122 |
var qosType = getValue("Frm_QosType");
|
| 2123 |
2123 |
if (qosType == "SSID")
|
| ... | ... | |
| 2126 |
2126 |
jslSetValue("Priority1","Frm_Priority1");
|
| 2127 |
2127 |
jslSetValue("Priority2","Frm_Priority2");
|
| 2128 |
2128 |
jslSetValue("Priority3","Frm_Priority3");
|
| 2129 |
|
}
|
|
2129 |
}
|
| 2130 |
2130 |
jslSetValue("Fragment","Frm_Fragment");
|
| 2131 |
|
|
|
2131 |
|
| 2132 |
2132 |
if(getChecked("Frm_Enable") == true)
|
| 2133 |
2133 |
{
|
| 2134 |
2134 |
setValue("Enable", "1");
|
| ... | ... | |
| 2144 |
2144 |
<%
|
| 2145 |
2145 |
if((getenv("CountryCode")==308) ||(getenv("CountryCode")==330) ||(getenv("CountryCode")==332) || (getenv("CountryCode")==316) || (getenv("CountryCode")==305) || (getenv("CountryCode")==307))
|
| 2146 |
2146 |
{
|
| 2147 |
|
%>
|
|
2147 |
%>
|
| 2148 |
2148 |
if(!getDisplay("ssid_header"))
|
| 2149 |
2149 |
{
|
| 2150 |
2150 |
jslSetValue("ESSID","Frm_ESSID");
|
| ... | ... | |
| 2161 |
2161 |
{
|
| 2162 |
2162 |
setValue("ESSIDHideEnable", "0");
|
| 2163 |
2163 |
}
|
| 2164 |
|
|
|
2164 |
|
| 2165 |
2165 |
jslSetValue("MaxUserNum","Frm_MaxUserNum");
|
| 2166 |
2166 |
}
|
| 2167 |
2167 |
else
|
| 2168 |
2168 |
{
|
| 2169 |
2169 |
setValue("Enable", "0");
|
| 2170 |
|
}
|
|
2170 |
}
|
| 2171 |
2171 |
//改动--begin
|
| 2172 |
2172 |
if(getValue("Frm_Authentication") == "Open System")
|
| 2173 |
2173 |
{
|
| 2174 |
|
jslSetValue("BeaconType","Frm_BeaconType");
|
|
2174 |
jslSetValue("BeaconType","Frm_BeaconType");
|
| 2175 |
2175 |
if (getValue("Frm_BeaconType") == "Basic")
|
| 2176 |
2176 |
{
|
| 2177 |
2177 |
setValue("WEPAuthMode", "None");
|
| ... | ... | |
| 2199 |
2199 |
if(getValue("Frm_Authentication") == "WPA-PSK")
|
| 2200 |
2200 |
{
|
| 2201 |
2201 |
HiddenParaInit(PSK_PARA);
|
| 2202 |
|
|
|
2202 |
|
| 2203 |
2203 |
setValue("BeaconType", "WPA");
|
| 2204 |
2204 |
setValue("WPAAuthMode", "PSKAuthentication");
|
| 2205 |
2205 |
jslSetValue("WPAEncryptType","Frm_WPAEncryptType");
|
| 2206 |
2206 |
jslSetValue("KeyPassphrase","Frm_KeyPassphrase");
|
| 2207 |
2207 |
jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
| 2208 |
|
|
|
2208 |
|
| 2209 |
2209 |
}
|
| 2210 |
2210 |
if(getValue("Frm_Authentication") == "WPA2-PSK")
|
| 2211 |
2211 |
{
|
| 2212 |
2212 |
HiddenParaInit(PSK_PARA);
|
| 2213 |
|
|
|
2213 |
|
| 2214 |
2214 |
setValue("BeaconType", "11i");
|
| 2215 |
2215 |
setValue("11iAuthMode", "PSKAuthentication");
|
| 2216 |
2216 |
jslSetValue("11iEncryptType","Frm_WPAEncryptType");
|
| 2217 |
2217 |
jslSetValue("KeyPassphrase","Frm_KeyPassphrase");
|
| 2218 |
|
jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
|
2218 |
jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
| 2219 |
2219 |
}
|
| 2220 |
2220 |
if(getValue("Frm_Authentication") == "WPA/WPA2-PSK")
|
| 2221 |
2221 |
{
|
| 2222 |
2222 |
HiddenParaInit(PSK_PARA);
|
| 2223 |
|
|
|
2223 |
|
| 2224 |
2224 |
setValue("BeaconType", "WPAand11i");
|
| 2225 |
2225 |
setValue("WPAAuthMode", "PSKAuthentication");
|
| 2226 |
2226 |
setValue("11iAuthMode", "PSKAuthentication");
|
| 2227 |
2227 |
jslSetValue("WPAEncryptType","Frm_WPAEncryptType");
|
| 2228 |
2228 |
jslSetValue("11iEncryptType","Frm_WPAEncryptType");
|
| 2229 |
2229 |
jslSetValue("KeyPassphrase","Frm_KeyPassphrase");
|
| 2230 |
|
jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
|
2230 |
jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
| 2231 |
2231 |
}
|
| 2232 |
2232 |
if(getValue("Frm_Authentication") == "WPA3-SAE")
|
| 2233 |
2233 |
{
|
| 2234 |
2234 |
HiddenParaInit(PSK_PARA);
|
| 2235 |
|
|
|
2235 |
|
| 2236 |
2236 |
setValue("BeaconType", "WPA3SAE");
|
| 2237 |
2237 |
setValue("WPA3SAEAuthMode", "PSKAuthentication");
|
| 2238 |
2238 |
jslSetValue("WPA3SAEEncryptType","Frm_WPAEncryptType");
|
| 2239 |
2239 |
jslSetValue("KeyPassphrase","Frm_KeyPassphrase");
|
| 2240 |
|
//jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
| 2241 |
|
}
|
|
2240 |
//jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
|
2241 |
}
|
| 2242 |
2242 |
if(getValue("Frm_Authentication") == "WPA2-PSK/WPA3-PSK")
|
| 2243 |
2243 |
{
|
| 2244 |
2244 |
HiddenParaInit(PSK_PARA);
|
| 2245 |
|
|
|
2245 |
|
| 2246 |
2246 |
setValue("BeaconType", "WPA3and11i");
|
| 2247 |
2247 |
setValue("WPA3TAuthMode", "PSKAuthentication");
|
| 2248 |
2248 |
setValue("11iAuthMode", "PSKAuthentication");
|
| 2249 |
2249 |
jslSetValue("WPA3TEncryptType","Frm_WPAEncryptType");
|
| 2250 |
2250 |
jslSetValue("11iEncryptType","Frm_WPAEncryptType");
|
| 2251 |
2251 |
jslSetValue("KeyPassphrase","Frm_KeyPassphrase");
|
| 2252 |
|
//jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
|
2252 |
//jslSetValue("WPAGroupRekey","Frm_WPAGroupRekey");
|
| 2253 |
2253 |
}
|
| 2254 |
|
|
|
2254 |
|
| 2255 |
2255 |
#ifdef CONFIG_ZXIC_WLAN_WAPI
|
| 2256 |
2256 |
if (getValue("Frm_Authentication") == "WAPI-PSK")
|
| 2257 |
2257 |
{
|
| 2258 |
2258 |
HiddenParaInit(WLANWAPI_PARA);
|
| 2259 |
|
|
|
2259 |
|
| 2260 |
2260 |
setValue("BeaconType", "WAPIPsk");
|
| 2261 |
2261 |
jslSetValue("WapiKeyMode", "Frm_WapiKeyMode");
|
| 2262 |
2262 |
jslSetValue("WapiKey", "Frm_WapiKey");
|
| ... | ... | |
| 2264 |
2264 |
else if (getValue("Frm_Authentication") == "WAPI-CERT")
|
| 2265 |
2265 |
{
|
| 2266 |
2266 |
HiddenParaInit(WLANWAPI_PARA);
|
| 2267 |
|
|
|
2267 |
|
| 2268 |
2268 |
setValue("BeaconType", "WAPICert");
|
| 2269 |
2269 |
jslSetValue("ASIPAddress", "Frm_ASIPAddress");
|
| 2270 |
2270 |
}
|
| 2271 |
2271 |
#endif
|
| 2272 |
|
|
|
2272 |
|
| 2273 |
2273 |
if (getDisplay("shared") == true)
|
| 2274 |
2274 |
{
|
| 2275 |
2275 |
for(var i=0; i<4; i++)
|
| ... | ... | |
| 2282 |
2282 |
val = WEPKEY_PARA[j];
|
| 2283 |
2283 |
WEPKEY_PARA[j] = "NULL";
|
| 2284 |
2284 |
}
|
| 2285 |
|
|
|
2285 |
|
| 2286 |
2286 |
jslSetValue("WEPEncryptionLevel","Frm_WEPEncryptionLevel");
|
| 2287 |
2287 |
jslSetValue("WEPKeyIndex","Frm_WEPKeyIndex");
|
| 2288 |
2288 |
for (var k = 0; k < 4; k++)
|
| ... | ... | |
| 2293 |
2293 |
jslSetValue("WEPKey","Frm_WEPKey"+k);
|
| 2294 |
2294 |
}
|
| 2295 |
2295 |
}
|
| 2296 |
|
}
|
|
2296 |
}
|
| 2297 |
2297 |
}
|
| 2298 |
2298 |
|
| 2299 |
2299 |
function xor_enc(str)
|
| 2300 |
2300 |
{
|
| 2301 |
2301 |
var crytxt = "";
|
| 2302 |
|
var key=new Array();
|
|
2302 |
var key=new Array();
|
| 2303 |
2303 |
for(var j=0; j<str.length; j++){
|
| 2304 |
2304 |
key.push(j+1);
|
| 2305 |
2305 |
}
|
| ... | ... | |
| 2346 |
2346 |
|
| 2347 |
2347 |
function getDAes(data)
|
| 2348 |
2348 |
{//解密
|
| 2349 |
|
var key = getValue("IF_KEY");
|
|
2349 |
var key = getValue("IF_KEY");
|
| 2350 |
2350 |
var iv = '0000000000000000';
|
| 2351 |
2351 |
var decryptedStr =getDAesString(data,key,iv);
|
| 2352 |
2352 |
return decryptedStr;
|
| ... | ... | |
| 2362 |
2362 |
ReSetValueRmZero("Frm_RtsCts");
|
| 2363 |
2363 |
ReSetValueRmZero("Frm_DTIM");
|
| 2364 |
2364 |
ReSetValueRmZero("Frm_Fragment");
|
| 2365 |
|
ReSetValueRmZero("Frm_WPAGroupRekey");
|
|
2365 |
ReSetValueRmZero("Frm_WPAGroupRekey");
|
| 2366 |
2366 |
DisableALL();
|
| 2367 |
2367 |
var passInput = document.getElementById("Frm_KeyPassphrase");
|
| 2368 |
2368 |
var keypass = getValue("Frm_KeyPassphrase");
|
| 2369 |
2369 |
if(keypass == "********")
|
| 2370 |
2370 |
{
|
| 2371 |
2371 |
passInput.value = getDAes(getValue("IF_CPWD"));
|
| 2372 |
|
}
|
|
2372 |
}
|
| 2373 |
2373 |
var temp = getAES(passInput.value);
|
| 2374 |
2374 |
passInput.value = temp;
|
| 2375 |
|
|
|
2375 |
|
| 2376 |
2376 |
for(var i = 0 ; i < 4 ; i++)
|
| 2377 |
2377 |
{
|
| 2378 |
2378 |
var keyInput = document.getElementById("Frm_WEPKey"+i);
|
| ... | ... | |
| 2383 |
2383 |
}
|
| 2384 |
2384 |
var weptemp = getAES(keyInput.value);
|
| 2385 |
2385 |
keyInput.value = weptemp;
|
| 2386 |
|
}
|
|
2386 |
}
|
| 2387 |
2387 |
pageSetValue();
|
| 2388 |
2388 |
setValue("IF_ACTION", "apply");
|
| 2389 |
2389 |
setValue("IF_CONFIGTAG", "Y");
|
| ... | ... | |
| 2417 |
2417 |
setValue("IF_VIEWID", getValue("Frm_SSID_SET"));
|
| 2418 |
2418 |
getObj("fSubmit").submit();
|
| 2419 |
2419 |
}
|
| 2420 |
|
}
|
|
2420 |
}
|
| 2421 |
2421 |
|
| 2422 |
2422 |
function pageCancel()
|
| 2423 |
2423 |
{
|
| ... | ... | |
| 2474 |
2474 |
{
|
| 2475 |
2475 |
deleteSelectOption("Frm_DataRates","nac");
|
| 2476 |
2476 |
deleteSelectOption("Frm_DataRates","acax");
|
| 2477 |
|
deleteSelectOption("Frm_DataRates","anacax");
|
|
2477 |
deleteSelectOption("Frm_DataRates","anacax");
|
| 2478 |
2478 |
}
|
| 2479 |
2479 |
|
| 2480 |
2480 |
}
|
| ... | ... | |
| 2482 |
2482 |
|
| 2483 |
2483 |
function Mode_switch_DataRates()
|
| 2484 |
2484 |
{
|
|
2485 |
|
| 2485 |
2486 |
if ((getValue("Frm_DataRates") == "n") || (getValue("Frm_DataRates") == "gn")
|
| 2486 |
2487 |
|| (getValue("Frm_DataRates") == "bgn") || (getValue("Frm_DataRates") == "na") || (getValue("Frm_DataRates") == "anac") || (getValue("Frm_DataRates") == "ac")
|
| 2487 |
2488 |
|| (getValue("Frm_DataRates") == "ax")|| (getValue("Frm_DataRates") == "bgnax")|| (getValue("Frm_DataRates") == "anacax")|| (getValue("Frm_DataRates") == "nac")
|
| ... | ... | |
| 2504 |
2505 |
jslEnDisplay("TR_TxRate");
|
| 2505 |
2506 |
}
|
| 2506 |
2507 |
|
|
2508 |
if ((getValue("Frm_DataRates") == "n") || (getValue("Frm_DataRates") == "ax") || (getValue("Frm_DataRates") == "bgnax")
|
|
2509 |
|| (getValue("Frm_DataRates") == "gn") || (getValue("Frm_DataRates") == "bgn") ||(getValue("Frm_DataRates") == "na")
|
|
2510 |
|| (getValue("Frm_DataRates") == "nac") || (getValue("Frm_DataRates") == "acax") || (getValue("Frm_DataRates") == "anacax")
|
|
2511 |
|| (getValue("Frm_DataRates") == "anac"))
|
|
2512 |
{
|
|
2513 |
let x = document.getElementsByClassName("WEP_hide");
|
|
2514 |
for (let i = 0; i < x.length; i++)
|
|
2515 |
{
|
|
2516 |
x[i].style.display = "none"
|
|
2517 |
}
|
|
2518 |
|
|
2519 |
let dom = document.getElementById("Frm_Authentication")
|
|
2520 |
dom.value = "WPA-PSK"
|
|
2521 |
|
|
2522 |
jslDiDisplay("shared","t_wep","wapi_psk", "wapi_cert");
|
|
2523 |
jslEnDisplay("wpa");
|
|
2524 |
}
|
|
2525 |
else
|
|
2526 |
{
|
|
2527 |
let x = document.getElementsByClassName("WEP_hide");
|
|
2528 |
for (let i = 0; i < x.length; i++) {
|
|
2529 |
x[i].style.display = "block"
|
|
2530 |
}
|
|
2531 |
}
|
|
2532 |
|
| 2507 |
2533 |
var value = getValue("IF_VIEWID");
|
| 2508 |
2534 |
value = value.charAt(value.length-1,1); //取最后一位
|
| 2509 |
2535 |
if((value == "1") || (value == "2") || (value == "3") || (value == "4"))
|
| ... | ... | |
| 2551 |
2577 |
var CurrentBandWidth = getValue("Frm_BandWidth");
|
| 2552 |
2578 |
var axmode = getValue("AxMode");
|
| 2553 |
2579 |
|
| 2554 |
|
if(getValue("Frm_DataRates") == "na")
|
|
2580 |
if(getValue("Frm_DataRates") == "na")
|
| 2555 |
2581 |
{
|
| 2556 |
2582 |
bandwidth_value_list = "20Mhz,40Mhz,Auto";
|
| 2557 |
2583 |
bandwidth_name_list = "20Mhz,40Mhz,20Mhz/40Mhz";
|
| ... | ... | |
| 2595 |
2621 |
{
|
| 2596 |
2622 |
bandwidthobj.options[i] = new Option(bandwidth_name_parts[i],bandwidth_value_parts[i]);
|
| 2597 |
2623 |
}
|
| 2598 |
|
|
| 2599 |
|
/*由于是重新构造下拉列表,可能会去掉80Mhz选项,因此去掉后恢复原先的选中项*/
|
| 2600 |
|
|
|
2624 |
|
|
2625 |
/*由于是重新构造下拉列表,可能会去掉80Mhz选项,因此去掉后恢复原先的选中项*/
|
|
2626 |
|
| 2601 |
2627 |
if(axmode == 1&&((getValue("Frm_DataRates") == "ax")|| (getValue("Frm_DataRates") == "acax")|| (getValue("Frm_DataRates") == "anacax")))
|
| 2602 |
2628 |
{
|
| 2603 |
2629 |
var all_options = document.getElementById("Frm_BandWidth").options;
|
| ... | ... | |
| 2614 |
2640 |
}
|
| 2615 |
2641 |
}
|
| 2616 |
2642 |
else
|
| 2617 |
|
{
|
|
2643 |
{
|
| 2618 |
2644 |
var all_options = document.getElementById("Frm_BandWidth").options;
|
| 2619 |
2645 |
for (var i=0; i<all_options.length; i++)
|
| 2620 |
2646 |
{
|
| ... | ... | |
| 2628 |
2654 |
}
|
| 2629 |
2655 |
}
|
| 2630 |
2656 |
}
|
| 2631 |
|
}
|
|
2657 |
}
|
| 2632 |
2658 |
}
|
| 2633 |
2659 |
|
| 2634 |
2660 |
</SCRIPT>
|