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<html xmlns:v> 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> 7<meta HTTP-EQUIV="Expires" CONTENT="-1"> 8<title>ASUS Wireless Router <#Web_Title#> - <#menu5_3_1#></title> 9<link rel="stylesheet" type="text/css" href="index_style.css"> 10<link rel="stylesheet" type="text/css" href="form_style.css"> 11 12<script type="text/javascript" src="/state.js"></script> 13<script type="text/javascript" src="/general.js"></script> 14<script type="text/javascript" src="/popup.js"></script> 15<script type="text/javascript" src="/help.js"></script> 16<script type="text/javascript" src="/detect.js"></script> 17<script> 18wan_route_x = '<% nvram_get_x("IPConnection", "wan_route_x"); %>'; 19wan_nat_x = '<% nvram_get_x("IPConnection", "wan_nat_x"); %>'; 20wan_proto = '<% nvram_get_x("Layer3Forwarding", "wan_proto"); %>'; 21 22<% login_state_hook(); %> 23var wireless = [<% wl_auth_list(); %>]; // [[MAC, associated, authorized], ...] 24 25var original_wan_type = wan_proto; 26var original_wan_dhcpenable = parseInt('<% nvram_get_x("Layer3Forwarding", "x_DHCPClient"); %>'); 27var original_dnsenable = parseInt('<% nvram_get_x("IPConnection", "wan_dnsenable_x"); %>'); 28 29function initial(){ 30 show_banner(1); 31 show_menu(5,3,1); 32 show_footer(); 33 34 enable_auto_hint(7, 19); 35 36 change_wan_type(document.form.wan_proto.value, 0); 37 fixed_change_wan_type(document.form.wan_proto.value); 38 39 if(document.form.wan_pppoe_txonly_x.value == "1") 40 document.form.wan_pppoe_idletime_check.checked = true; 41} 42 43function applyRule(){ 44 if(validForm()){ 45 showLoading(); 46 47 inputCtrl(document.form.x_DHCPClient[0], 1); 48 inputCtrl(document.form.x_DHCPClient[1], 1); 49 if(!document.form.x_DHCPClient[0].checked){ 50 inputCtrl(document.form.wan_ipaddr, 1); 51 inputCtrl(document.form.wan_netmask, 1); 52 inputCtrl(document.form.wan_gateway, 1); 53 } 54 55 inputCtrl(document.form.wan_dnsenable_x[0], 1); 56 inputCtrl(document.form.wan_dnsenable_x[1], 1); 57 if(!document.form.wan_dnsenable_x[0].checked){ 58 inputCtrl(document.form.wan_dns1_x, 1); 59 inputCtrl(document.form.wan_dns2_x, 1); 60 } 61 62 document.form.action_mode.value = " Apply "; 63 document.form.current_page.value = "/as.asp"; 64 document.form.next_page.value = ""; 65 66 document.form.submit(); 67 } 68} 69 70function validForm(){ 71 if(!document.form.x_DHCPClient[0].checked){ 72 if(!validate_ipaddr_final(document.form.wan_ipaddr, 'wan_ipaddr') 73 || !validate_ipaddr_final(document.form.wan_netmask, 'wan_netmask') 74 || !validate_ipaddr_final(document.form.wan_gateway, 'wan_gateway') 75 ) 76 return false; 77 78 if(document.form.wan_gateway.value == document.form.wan_ipaddr.value){ 79 alert("<#IPConnection_warning_WANIPEQUALGatewayIP#>"); 80 document.form.wan_gateway.select(); 81 document.form.wan_gateway.focus(); 82 return false; 83 } 84 85 if(!wan_netmask_check(document.form.wan_netmask)) 86 return false; 87 } 88 89 if(!document.form.wan_dnsenable_x[0].checked){ 90 if(document.form.wan_dns1_x.value.length <= 0 && document.form.wan_dns2_x.value.length <= 0){ 91 alert("<#JS_fieldblank#>"); 92 document.form.wan_dns1_x.focus(); 93 document.form.scrollIntoView("true"); 94 95 return false; 96 } 97 98 if(!validate_ipaddr_final(document.form.wan_dns1_x, 'wan_dns1_x')){ 99 document.form.wan_dns1_x.select(); 100 document.form.wan_dns1_x.focus(); 101 102 return false; 103 } 104 if(!validate_ipaddr_final(document.form.wan_dns2_x, 'wan_dns2_x')){ 105 document.form.wan_dns2_x.select(); 106 document.form.wan_dns2_x.focus(); 107 108 return false; 109 } 110 } 111 112 if(document.form.wan_proto.value == "pppoe" 113 || document.form.wan_proto.value == "pptp" 114 || document.form.wan_proto.value == "l2tp" 115 ){ 116 if(!validate_string(document.form.wan_pppoe_username) 117 || !validate_string(document.form.wan_pppoe_passwd) 118 ) 119 return false; 120 121 if(!validate_range(document.form.wan_pppoe_idletime, 0, 4294967295)) 122 return false; 123 } 124 125 if(document.form.wan_proto.value == "pppoe"){ 126 if(!validate_range(document.form.wan_pppoe_mtu, 576, 1492) 127 || !validate_range(document.form.wan_pppoe_mru, 576, 1492)) 128 return false; 129 130 if(!validate_string(document.form.wan_pppoe_service) 131 || !validate_string(document.form.wan_pppoe_ac)) 132 return false; 133 } 134 135 if(document.form.wan_hostname.value.length > 0) 136 if(!validate_string(document.form.wan_hostname)) 137 return false; 138 139 if(document.form.wan_hwaddr_x.value.length > 0) 140 if(!validate_hwaddr(document.form.wan_hwaddr_x)) 141 return false; 142 143 if(document.form.wan_heartbeat_x.value.length > 0) 144 if(!validate_string(document.form.wan_heartbeat_x)) 145 return false; 146 147 return true; 148} 149 150function done_validating(action){ 151 refreshpage(); 152} 153 154function change_wan_type(wan_type, flag){ 155 if(typeof(flag) != "undefined") 156 change_wan_dhcp_enable(flag); 157 else 158 change_wan_dhcp_enable(1); 159 160 if(wan_type == "pppoe"){ 161 inputCtrl(document.form.wan_dnsenable_x[0], 1); 162 inputCtrl(document.form.wan_dnsenable_x[1], 1); 163 164 inputCtrl(document.form.wan_pppoe_username, 1); 165 inputCtrl(document.form.wan_pppoe_passwd, 1); 166 inputCtrl(document.form.wan_pppoe_idletime, 1); 167 inputCtrl(document.form.wan_pppoe_idletime_check, 1); 168 inputCtrl(document.form.wan_pppoe_mtu, 1); 169 inputCtrl(document.form.wan_pppoe_mru, 1); 170 inputCtrl(document.form.wan_pppoe_service, 1); 171 inputCtrl(document.form.wan_pppoe_ac, 1); 172 173 // 2008.03 James. patch for Oleg's patch. { 174 inputCtrl(document.form.wan_pppoe_options_x, 1); 175 inputCtrl(document.form.wan_pptp_options_x, 0); 176 // 2008.03 James. patch for Oleg's patch. } 177 178 if(isModel3() != 'WL550gE') 179 inputRCtrl1(document.form.wan_pppoe_relay_x, 1); 180 } 181 else if(wan_type == "pptp"){ 182 inputCtrl(document.form.wan_dnsenable_x[0], 1); 183 inputCtrl(document.form.wan_dnsenable_x[1], 1); 184 185 inputCtrl(document.form.wan_pppoe_username, 1); 186 inputCtrl(document.form.wan_pppoe_passwd, 1); 187 inputCtrl(document.form.wan_pppoe_idletime, 1); 188 inputCtrl(document.form.wan_pppoe_idletime_check, 1); 189 inputCtrl(document.form.wan_pppoe_mtu, 0); 190 inputCtrl(document.form.wan_pppoe_mru, 0); 191 inputCtrl(document.form.wan_pppoe_service, 0); 192 inputCtrl(document.form.wan_pppoe_ac, 0); 193 194 // 2008.03 James. patch for Oleg's patch. { 195 inputCtrl(document.form.wan_pppoe_options_x, 1); 196 inputCtrl(document.form.wan_pptp_options_x, 1); 197 // 2008.03 James. patch for Oleg's patch. } 198 199 if(isModel3() != 'WL550gE') 200 inputRCtrl1(document.form.wan_pppoe_relay_x, 1); 201 } 202 else if(wan_type == "l2tp"){ 203 inputCtrl(document.form.wan_dnsenable_x[0], 1); 204 inputCtrl(document.form.wan_dnsenable_x[1], 1); 205 206 inputCtrl(document.form.wan_pppoe_username, 1); 207 inputCtrl(document.form.wan_pppoe_passwd, 1); 208 inputCtrl(document.form.wan_pppoe_idletime, 0); 209 inputCtrl(document.form.wan_pppoe_idletime_check, 0); 210 inputCtrl(document.form.wan_pppoe_mtu, 0); 211 inputCtrl(document.form.wan_pppoe_mru, 0); 212 inputCtrl(document.form.wan_pppoe_service, 0); 213 inputCtrl(document.form.wan_pppoe_ac, 0); 214 215 // 2008.03 James. patch for Oleg's patch. { 216 inputCtrl(document.form.wan_pppoe_options_x, 1); 217 inputCtrl(document.form.wan_pptp_options_x, 0); 218 // 2008.03 James. patch for Oleg's patch. } 219 220 if(isModel3() != 'WL550gE') 221 inputRCtrl1(document.form.wan_pppoe_relay_x, 1); 222 } 223 else if(wan_type == "static"){ 224 inputCtrl(document.form.wan_dnsenable_x[0], 0); 225 inputCtrl(document.form.wan_dnsenable_x[1], 0); 226 227 inputCtrl(document.form.wan_pppoe_username, 0); 228 inputCtrl(document.form.wan_pppoe_passwd, 0); 229 inputCtrl(document.form.wan_pppoe_idletime, 0); 230 inputCtrl(document.form.wan_pppoe_idletime_check, 0); 231 inputCtrl(document.form.wan_pppoe_mtu, 0); 232 inputCtrl(document.form.wan_pppoe_mru, 0); 233 inputCtrl(document.form.wan_pppoe_service, 0); 234 inputCtrl(document.form.wan_pppoe_ac, 0); 235 236 // 2008.03 James. patch for Oleg's patch. { 237 inputCtrl(document.form.wan_pppoe_options_x, 0); 238 inputCtrl(document.form.wan_pptp_options_x, 0); 239 // 2008.03 James. patch for Oleg's patch. } 240 241 if(isModel3() != 'WL550gE') 242 inputRCtrl1(document.form.wan_pppoe_relay_x, 1); 243 } 244 else{ // Automatic IP 245 inputCtrl(document.form.wan_dnsenable_x[0], 1); 246 inputCtrl(document.form.wan_dnsenable_x[1], 1); 247 248 inputCtrl(document.form.wan_pppoe_username, 0); 249 inputCtrl(document.form.wan_pppoe_passwd, 0); 250 inputCtrl(document.form.wan_pppoe_idletime, 0); 251 inputCtrl(document.form.wan_pppoe_idletime_check, 0); 252 inputCtrl(document.form.wan_pppoe_mtu, 0); 253 inputCtrl(document.form.wan_pppoe_mru, 0); 254 inputCtrl(document.form.wan_pppoe_service, 0); 255 inputCtrl(document.form.wan_pppoe_ac, 0); 256 257 // 2008.03 James. patch for Oleg's patch. { 258 inputCtrl(document.form.wan_pppoe_options_x, 0); 259 inputCtrl(document.form.wan_pptp_options_x, 0); 260 // 2008.03 James. patch for Oleg's patch. } 261 262 if(isModel3() != 'WL550gE') 263 inputRCtrl1(document.form.wan_pppoe_relay_x, 1); 264 } 265} 266 267function fixed_change_wan_type(wan_type){ 268 var flag = false; 269 270 if(!document.form.x_DHCPClient[0].checked){ 271 if(document.form.wan_ipaddr.value.length == 0) 272 document.form.wan_ipaddr.focus(); 273 else if(document.form.wan_netmask.value.length == 0) 274 document.form.wan_netmask.focus(); 275 else if(document.form.wan_gateway.value.length == 0) 276 document.form.wan_gateway.focus(); 277 else 278 flag = true; 279 } 280 else 281 flag = true; 282 283 if(wan_type == "pppoe"){ 284 if(wan_type == original_wan_type){ 285 document.form.wan_dnsenable_x[0].checked = original_dnsenable; 286 document.form.wan_dnsenable_x[1].checked = !original_dnsenable; 287 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', original_dnsenable); 288 289 if(flag == true && document.form.wan_dns1_x.value.length == 0) 290 document.form.wan_dns1_x.focus(); 291 } 292 else{ 293 document.form.wan_dnsenable_x[0].checked = 1; 294 document.form.wan_dnsenable_x[1].checked = 0; 295 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', 0); 296 297 inputCtrl(document.form.wan_dns1_x, 0); 298 inputCtrl(document.form.wan_dns2_x, 0); 299 } 300 } 301 else if(wan_type == "pptp" 302 || wan_type == "l2tp" 303 ){ 304 if(wan_type == original_wan_type){ 305 document.form.wan_dnsenable_x[0].checked = original_dnsenable; 306 document.form.wan_dnsenable_x[1].checked = !original_dnsenable; 307 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', original_dnsenable); 308 309 if(flag == true && document.form.wan_dns1_x.value.length == 0) 310 document.form.wan_dns1_x.focus(); 311 } 312 else{ 313 document.form.wan_dnsenable_x[0].checked = 0; 314 document.form.wan_dnsenable_x[1].checked = 1; 315 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', 0); 316 317 inputCtrl(document.form.wan_dnsenable_x[0], 0); 318 inputCtrl(document.form.wan_dnsenable_x[1], 0); 319 } 320 } 321 else if(wan_type == "static"){ 322 document.form.wan_dnsenable_x[0].checked = 0; 323 document.form.wan_dnsenable_x[1].checked = 1; 324 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', 0); 325 326 if(flag == true && document.form.wan_dns1_x.value.length == 0) 327 document.form.wan_dns1_x.focus(); 328 } 329 else{ // wan_type == "dhcp" 330 if(wan_type == original_wan_type){ 331 document.form.wan_dnsenable_x[0].checked = original_dnsenable; 332 document.form.wan_dnsenable_x[1].checked = !original_dnsenable; 333 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', original_dnsenable); 334 335 if(flag == true && document.form.wan_dns1_x.value.length == 0) 336 document.form.wan_dns1_x.focus(); 337 } 338 else{ 339 document.form.wan_dnsenable_x[0].checked = 1; 340 document.form.wan_dnsenable_x[1].checked = 0; 341 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', 0); 342 343 inputCtrl(document.form.wan_dns1_x, 0); 344 inputCtrl(document.form.wan_dns2_x, 0); 345 } 346 } 347} 348 349function change_wan_dhcp_enable(flag){ 350 var wan_type = document.form.wan_proto.value; 351 352 // 2008.03 James. patch for Oleg's patch. { 353 if(wan_type == "pppoe"){ 354 if(flag == 1){ 355 if(wan_type == original_wan_type){ 356 document.form.x_DHCPClient[0].checked = original_wan_dhcpenable; 357 document.form.x_DHCPClient[1].checked = !original_wan_dhcpenable; 358 } 359 else{ 360 document.form.x_DHCPClient[0].checked = 1; 361 document.form.x_DHCPClient[1].checked = 0; 362 } 363 } 364 365 inputCtrl(document.form.x_DHCPClient[0], 1); 366 inputCtrl(document.form.x_DHCPClient[1], 1); 367 368 var wan_dhcpenable = document.form.x_DHCPClient[0].checked; 369 370 inputCtrl(document.form.wan_ipaddr, !wan_dhcpenable); 371 inputCtrl(document.form.wan_netmask, !wan_dhcpenable); 372 inputCtrl(document.form.wan_gateway, !wan_dhcpenable); 373 } 374 // 2008.03 James. patch for Oleg's patch. } 375 else if(wan_type == "pptp" 376 || wan_type == "l2tp" 377 ){ 378 if(flag == 1){ 379 if(wan_type == original_wan_type){ 380 document.form.x_DHCPClient[0].checked = original_wan_dhcpenable; 381 document.form.x_DHCPClient[1].checked = !original_wan_dhcpenable; 382 } 383 else{ 384 document.form.x_DHCPClient[0].checked = 0; 385 document.form.x_DHCPClient[1].checked = 1; 386 } 387 } 388 389 inputCtrl(document.form.x_DHCPClient[0], 1); 390 inputCtrl(document.form.x_DHCPClient[1], 1); 391 392 var wan_dhcpenable = document.form.x_DHCPClient[0].checked; 393 394 inputCtrl(document.form.wan_ipaddr, !wan_dhcpenable); 395 inputCtrl(document.form.wan_netmask, !wan_dhcpenable); 396 inputCtrl(document.form.wan_gateway, !wan_dhcpenable); 397 } 398 else if(wan_type == "static"){ 399 document.form.x_DHCPClient[0].checked = 0; 400 document.form.x_DHCPClient[1].checked = 1; 401 402 inputCtrl(document.form.x_DHCPClient[0], 0); 403 inputCtrl(document.form.x_DHCPClient[1], 0); 404 405 inputCtrl(document.form.wan_ipaddr, 1); 406 inputCtrl(document.form.wan_netmask, 1); 407 inputCtrl(document.form.wan_gateway, 1); 408 } 409 else{ // wan_type == "dhcp" && "pppoe" 410 document.form.x_DHCPClient[0].checked = 1; 411 document.form.x_DHCPClient[1].checked = 0; 412 413 inputCtrl(document.form.x_DHCPClient[0], 0); 414 inputCtrl(document.form.x_DHCPClient[1], 0); 415 416 inputCtrl(document.form.wan_ipaddr, 0); 417 inputCtrl(document.form.wan_netmask, 0); 418 inputCtrl(document.form.wan_gateway, 0); 419 } 420 421 if(document.form.x_DHCPClient[0].checked){ 422 inputCtrl(document.form.wan_dnsenable_x[0], 1); 423 inputCtrl(document.form.wan_dnsenable_x[1], 1); 424 } 425 else{ 426 document.form.wan_dnsenable_x[0].checked = 0; 427 document.form.wan_dnsenable_x[1].checked = 1; 428 change_common_radio(document.form.wan_dnsenable_x, 'IPConnection', 'wan_dnsenable_x', 0); 429 430 inputCtrl(document.form.wan_dnsenable_x[0], 0); 431 inputCtrl(document.form.wan_dnsenable_x[1], 0); 432 } 433} 434</script> 435</head> 436 437<body onload="initial();" onunLoad="disable_auto_hint(7, 19);return unload_body();"> 438<div id="TopBanner"></div> 439 440<div id="Loading" class="popup_bg"></div> 441 442<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe> 443 444<form method="post" name="form" id="ruleForm" action="/start_apply.htm" target="hidden_frame"> 445<input type="hidden" name="productid" value="<% nvram_get_f("general.log", "productid"); %>"> 446<input type="hidden" name="support_cdma" value="<% nvram_get_x("IPConnection", "support_cdma"); %>"> 447 448<input type="hidden" name="current_page" value="Advanced_WAN_Content.asp"> 449<input type="hidden" name="next_page" value=""> 450<input type="hidden" name="next_host" value=""> 451<input type="hidden" name="sid_list" value="Layer3Forwarding;LANHostConfig;IPConnection;PPPConnection;"> 452<input type="hidden" name="group_id" value=""> 453<input type="hidden" name="modified" value="0"> 454<input type="hidden" name="action_mode" value=""> 455<input type="hidden" name="first_time" value=""> 456<input type="hidden" name="action_script" value=""> 457<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get_x("LANGUAGE", "preferred_lang"); %>"> 458<input type="hidden" name="wl_ssid2" value="<% nvram_get_x("WLANConfig11b", "wl_ssid2"); %>"> 459<input type="hidden" name="firmver" value="<% nvram_get_x("", "firmver"); %>"> 460 461<input type="hidden" name="wan_pppoe_txonly_x" value="<% nvram_get_x("PPPConnection","wan_pppoe_txonly_x"); %>" /> 462 463<input type="hidden" name="lan_ipaddr" value="<% nvram_get_x("LANHostConfig", "lan_ipaddr"); %>" /> 464<input type="hidden" name="lan_netmask" value="<% nvram_get_x("LANHostConfig", "lan_netmask"); %>" /> 465 466<table border="0" class="content" align="center" cellpadding="0" cellspacing="0"> 467 <tr> 468 <td width="23"> </td> 469 470 <!--=====Beginning of Main Menu=====--> 471 <td valign="top" width="202"> 472 <div id="mainMenu"></div> 473 <div id="subMenu"></div> 474 </td> 475 476 <td height="430" valign="top"> 477 <div id="tabMenu" class="submenuBlock"></div><br> 478 479 <!--===================================Beginning of Main Content===========================================--> 480<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> 481 <tr> 482 <td align="left" valign="top"> 483 <table width="98%" border="0" align="center" cellpadding="5" cellspacing="0" class="FormTitle"> 484 <thead> 485 <tr> 486 <td><#menu5_3#> - <#menu5_3_1#></td> 487 </tr> 488 </thead> 489 490 <tbody> 491 <tr> 492 <td bgcolor="#FFFFFF"><#Layer3Forwarding_x_ConnectionType_sectiondesc#></td> 493 </tr> 494 </tbody> 495 496 <tr> 497 <td bgcolor="#FFFFFF"> 498 <table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable"> 499 <tr> 500 <th width="200"><#Layer3Forwarding_x_ConnectionType_itemname#></th> 501 <td> 502 <select class="input" name="wan_proto" onchange="change_wan_type(this.value);fixed_change_wan_type(this.value);"> 503 <option value="dhcp" <% nvram_match_x("Layer3Forwarding", "wan_proto", "dhcp", "selected"); %>><#BOP_ctype_title1#></option> 504 <option value="pppoe" <% nvram_match_x("Layer3Forwarding", "wan_proto", "pppoe", "selected"); %>>PPPoE</option> 505 <option value="pptp" <% nvram_match_x("Layer3Forwarding", "wan_proto", "pptp", "selected"); %>>PPTP</option> 506 <option value="l2tp" <% nvram_match_x("Layer3Forwarding", "wan_proto", "l2tp", "selected"); %>>L2TP</option> 507 <option value="static" <% nvram_match_x("Layer3Forwarding", "wan_proto", "static", "selected"); %>><#BOP_ctype_title5#></option> 508 </select> 509 </td> 510 </tr> 511 512 <!-- 2008.03 James. patch for Oleg's patch. { --> 513 <tr> 514 <th width="200"><#Layer3Forwarding_x_STB_itemname#></th> 515 <td> 516 <select name="wan_stb_x" class="input"> 517 <option value="0" <% nvram_match_x("Layer3Forwarding", "wan_stb_x", "0", "selected"); %>>None</option> 518 <option value="1" <% nvram_match_x("Layer3Forwarding", "wan_stb_x", "1", "selected"); %>>LAN1</option> 519 <option value="2" <% nvram_match_x("Layer3Forwarding", "wan_stb_x", "2", "selected"); %>>LAN2</option> 520 <option value="3" <% nvram_match_x("Layer3Forwarding", "wan_stb_x", "3", "selected"); %>>LAN3</option> 521 <option value="4" <% nvram_match_x("Layer3Forwarding", "wan_stb_x", "4", "selected"); %>>LAN4</option> 522 <option value="5" <% nvram_match_x("Layer3Forwarding", "wan_stb_x", "5", "selected"); %>>LAN3 & LAN4</option> 523 </select> 524 </td> 525 </tr> 526 <!-- 2008.03 James. patch for Oleg's patch. } --> 527 528 </table> 529 </td> 530 </tr> 531 532 <tr> 533 <td bgcolor="#FFFFFF"> 534 <table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable"> 535 <thead> 536 <tr> 537 <td colspan="2"><#IPConnection_ExternalIPAddress_sectionname#></td> 538 </tr> 539 </thead> 540 541 <tr> 542 <th width="30%"><#Layer3Forwarding_x_DHCPClient_itemname#></th> 543 <td> 544 <input type="radio" name="x_DHCPClient" class="input" value="1" onclick="change_wan_dhcp_enable(0);" <% nvram_match_x("Layer3Forwarding", "x_DHCPClient", "1", "checked"); %>>Yes 545 <input type="radio" name="x_DHCPClient" class="input" value="0" onclick="change_wan_dhcp_enable(0);" <% nvram_match_x("Layer3Forwarding", "x_DHCPClient", "0", "checked"); %>>No 546 </td> 547 </tr> 548 549 <tr> 550 <th width="30%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,1);"><#IPConnection_ExternalIPAddress_itemname#></a></th> 551 <td><input type="text" name="wan_ipaddr" maxlength="15" class="input" size="15" value="<% nvram_get_x("IPConnection","wan_ipaddr"); %>" onKeyPress="return is_ipaddr(this);" onKeyUp="change_ipaddr(this);"></td> 552 </tr> 553 554 <tr> 555 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,2);"><#IPConnection_x_ExternalSubnetMask_itemname#></a></th> 556 <td><input type="text" name="wan_netmask" maxlength="15" class="input" size="15" value="<% nvram_get_x("IPConnection","wan_netmask"); %>" onKeyPress="return is_ipaddr(this);" onKeyUp="change_ipaddr(this);"></td> 557 </tr> 558 559 <tr> 560 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,3);"><#IPConnection_x_ExternalGateway_itemname#></a></th> 561 <td><input type="text" name="wan_gateway" maxlength="15" class="input" size="15" value="<% nvram_get_x("IPConnection","wan_gateway"); %>" onKeyPress="return is_ipaddr(this);" onKeyUp="change_ipaddr(this);"></td> 562 </tr> 563 </table> 564 </td> 565 </tr> 566 567 <tr> 568 <td bgcolor="#FFFFFF"> 569 <table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable"> 570 <thead> 571 <tr> 572 <td colspan="2"><#IPConnection_x_DNSServerEnable_sectionname#></td> 573 </tr> 574 </thead> 575 <tr> 576 <th width="30%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,12);"><#IPConnection_x_DNSServerEnable_itemname#></a></th> 577 <td> 578 <input type="radio" name="wan_dnsenable_x" value="1" onclick="return change_common_radio(this, 'IPConnection', 'wan_dnsenable_x', 1)" <% nvram_match_x("IPConnection", "wan_dnsenable_x", "1", "checked"); %> />Yes 579 <input type="radio" name="wan_dnsenable_x" value="0" onclick="return change_common_radio(this, 'IPConnection', 'wan_dnsenable_x', 0)" <% nvram_match_x("IPConnection", "wan_dnsenable_x", "0", "checked"); %> />No 580 </td> 581 </tr> 582 <tr> 583 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,13);"><#IPConnection_x_DNSServer1_itemname#></a></th> 584 <td><input type="text" maxlength="15" class="input" size="15" name="wan_dns1_x" value="<% nvram_get_x("IPConnection","wan_dns1_x"); %>" onkeypress="return is_ipaddr(this)" onkeyup="change_ipaddr(this)" /></td> 585 </tr> 586 <tr> 587 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,14);"><#IPConnection_x_DNSServer2_itemname#></a></th> 588 <td><input type="text" maxlength="15" class="input" size="15" name="wan_dns2_x" value="<% nvram_get_x("IPConnection","wan_dns2_x"); %>" onkeypress="return is_ipaddr(this)" onkeyup="change_ipaddr(this)" /></td> 589 </tr> 590 </table> 591 </td> 592 </tr> 593 594 <tr> 595 <td bgcolor="#FFFFFF"> 596 <table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable"> 597 <thead> 598 <tr> 599 <td colspan="2"><#PPPConnection_detail_sectionname#></td> 600 </tr> 601 </thead> 602 <tr> 603 <th width="30%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,4);"><#PPPConnection_UserName_itemname#></a></th> 604 <td><input type="text" maxlength="64" class="input" size="32" name="wan_pppoe_username" value="<% nvram_get_x("PPPConnection","wan_pppoe_username"); %>" onkeypress="return is_string(this)"></td> 605 </tr> 606 <tr> 607 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,5);"><#PPPConnection_Password_itemname#></a></th> 608 <td><input type="password" maxlength="64" class="input" size="32" name="wan_pppoe_passwd" value="<% nvram_get_x("PPPConnection","wan_pppoe_passwd"); %>"></td> 609 </tr> 610 <tr> 611 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,6);"><#PPPConnection_IdleDisconnectTime_itemname#></a></th> 612 <td> 613 <input type="text" maxlength="10" class="input" size="10" name="wan_pppoe_idletime" value="<% nvram_get_x("PPPConnection","wan_pppoe_idletime"); %>" onkeypress="return is_number(this)" /> 614 <input type="checkbox" style="margin-left:30" name="wan_pppoe_idletime_check" value="" onclick="return change_common_radio(this, 'PPPConnection', 'wan_pppoe_idletime', '1')" />Tx Only 615 </td> 616 </tr> 617 <tr> 618 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,7);"><#PPPConnection_x_PPPoEMTU_itemname#></a></th> 619 <td><input type="text" maxlength="5" size="5" name="wan_pppoe_mtu" class="input" value="<% nvram_get_x("PPPConnection", "wan_pppoe_mtu"); %>" onkeypress="return is_number(this)" /></td> 620 </tr> 621 <tr> 622 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,8);"><#PPPConnection_x_PPPoEMRU_itemname#></a></th> 623 <td><input type="text" maxlength="5" size="5" name="wan_pppoe_mru" class="input" value="<% nvram_get_x("PPPConnection", "wan_pppoe_mru"); %>" onkeypress="return is_number(this)" /></td> 624 </tr> 625 <tr> 626 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,9);"><#PPPConnection_x_ServiceName_itemname#></a></th> 627 <td><input type="text" maxlength="32" class="input" size="32" name="wan_pppoe_service" value="<% nvram_get_x("PPPConnection","wan_pppoe_service"); %>" onkeypress="return is_string(this)" /></td> 628 </tr> 629 <tr> 630 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,10);"><#PPPConnection_x_AccessConcentrator_itemname#></a></th> 631 <td><input type="text" maxlength="32" class="input" size="32" name="wan_pppoe_ac" value="<% nvram_get_x("PPPConnection","wan_pppoe_ac"); %>" onkeypress="return is_string(this)" /></td> 632 </tr> 633 634 <!-- 2008.03 James. patch for Oleg's patch. { --> 635 <tr> 636 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,17);"><#PPPConnection_x_PPTPOptions_itemname#></a></th> 637 <td> 638 <select name="wan_pptp_options_x" class="input"> 639 <option value="-mppc" <% nvram_match_x("Layer3Forwarding","wan_pptp_options_x", "-mppc","selected"); %>>No Encryption</option> 640 <option value="+mppe-40" <% nvram_match_x("Layer3Forwarding","wan_pptp_options_x", "+mppe-40","selected"); %>>MPPE 40</option> 641 <option value="+mppe-56" <% nvram_match_x("Layer3Forwarding","wan_pptp_options_x", "+mppe-56","selected"); %>>MPPE 56</option> 642 <option value="+mppe-128" <% nvram_match_x("Layer3Forwarding","wan_pptp_options_x", "+mppe-128","selected"); %>>MPPE 128</option> 643 <option value="" <% nvram_match_x("Layer3Forwarding","wan_pptp_options_x", "","selected"); %>>Auto</option> 644 </select> 645 </td> 646 </tr> 647 648 <tr> 649 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,18);"><#PPPConnection_x_AdditionalOptions_itemname#></a></th> 650 <td> 651 <input type="text" name="wan_pppoe_options_x" value="<% nvram_get_x("PPPConnection", "wan_pppoe_options_x"); %>" class="input" maxlength="255" size="32" onKeyPress="return is_string(this)" onBlur="validate_string(this)"></td> 652 </tr> 653 <!-- 2008.03 James. patch for Oleg's patch. } --> 654 655 <tr> 656 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,11);"><#PPPConnection_x_PPPoERelay_itemname#></a></th> 657 <td> 658 <input type="radio" value="1" name="wan_pppoe_relay_x" class="input" onclick="return change_common_radio(this, 'PPPConnection', 'wan_pppoe_relay_x', '1')" <% nvram_match_x("PPPConnection","wan_pppoe_relay_x", "1", "checked"); %> />Yes 659 <input type="radio" value="0" name="wan_pppoe_relay_x" class="input" onclick="return change_common_radio(this, 'PPPConnection', 'wan_pppoe_relay_x', '0')" <% nvram_match_x("PPPConnection","wan_pppoe_relay_x", "0", "checked"); %> />No 660 </td> 661 </tr> 662 </table> 663 </td> 664 </tr> 665 666 <tr> 667 <td bgcolor="#FFFFFF"> 668 <table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable"> 669 <thead> 670 <tr> 671 <td colspan="2"><#PPPConnection_x_HostNameForISP_sectionname#></td> 672 </tr> 673 </thead> 674 675 <tr> 676 <th width="30%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,19);"><#PPPConnection_x_HeartBeat_itemname#></a></th> 677 <td> 678 <!-- 2008.03 James. patch for Oleg's patch. { --> 679 <input type="text" name="wan_heartbeat_x" class="input" maxlength="256" size="32" value="<% nvram_get_x("PPPConnection","wan_heartbeat_x"); %>" onKeyPress="return is_string(this)"></td> 680 <!-- 2008.03 James. patch for Oleg's patch. } --> 681 </tr> 682 <tr> 683 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,15);"><#PPPConnection_x_HostNameForISP_itemname#></a></th> 684 <td><input type="text" name="wan_hostname" class="input" maxlength="32" size="32" value="<% nvram_get_x("PPPConnection","wan_hostname"); %>" onkeypress="return is_string(this)"></td> 685 </tr> 686 <tr> 687 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(7,16);"><#PPPConnection_x_MacAddressForISP_itemname#></a></th> 688 <td><input type="text" name="wan_hwaddr_x" class="input" maxlength="12" size="12" value="<% nvram_get_x("PPPConnection","wan_hwaddr_x"); %>" onKeyPress="return is_hwaddr()"></td> 689 </tr> 690 691 </table> 692 </td> 693 </tr> 694 <tr> 695 <td bgcolor="#FFFFFF"> 696 697 <table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable"> 698 <tr align="right"> 699 <td align="right"><input class="button" onclick="applyRule();" type="button" value="<#CTL_apply#>"/></td> 700 </tr> 701 </table> 702 </td> 703 </tr> 704</table> 705</td> 706</form> 707 708 <td id="help_td" style="width:15px;" valign="top"> 709 <form name="hint_form"></form> 710 <div id="helpicon" onClick="openHint(0,0);" title="<#Help_button_default_hint#>"> 711 <img src="images/help.gif"> 712 </div> 713 <div id="hintofPM" style="display:none;"> 714 <table width="100%" cellpadding="0" cellspacing="1" class="Help" bgcolor="#999999"> 715 <thead> 716 <tr> 717 <td> 718 <div id="helpname" class="AiHintTitle"></div> 719 <a href="javascript:void(0);" onclick="closeHint()"> 720 <img src="images/button-close.gif" class="closebutton"> 721 </a> 722 </td> 723 </tr> 724 </thead> 725 726 <tr> 727 <td valign="top" > 728 <div class="hint_body2" id="hint_body"></div> 729 <iframe id="statusframe" name="statusframe" class="statusframe" src="" frameborder="0"></iframe> 730 </td> 731 </tr> 732 </table> 733 </div> 734 </td> 735 </tr> 736 </table> 737 </td> 738 <!--===================================Ending of Main Content===========================================--> 739 740 <td width="10" align="center" valign="top"> </td> 741 </tr> 742</table> 743 744<div id="footer"></div> 745 746</body> 747</html> 748