');
}else if((dptr.name == 'wan1_ppp')||(dptr.name == 'wan2_ppp')||(dptr.name == 'opt_ppp')){
document.write('');
}
document.write('
');
document.write('
 | ');
document.write('');
document.write(' ');
document.write(' | ');
document.write(' | ');
document.write('');
document.write('
');
}
function ShowIface(){
document.write(get_name());
}
function showBaseIface(){
var _name = dptr.name.split('_');
document.write(_name[0]);
}
function ShowZone(){
if((get_name() =='opt')||(get_name() =='opt_ppp')){
document.write(gl.optzone);
}else{
document.write('WAN');
}
}
function ifName(){
/*if((get_name() =='opt')||(get_name() =='opt_ppp')){
document.write(gl.getLang('_OPT_Interface_Setup', '_ifwizard'));
}else{
document.write(gl.getLang('_WAN_Interface_Setup', '_ifwizard'));
}*/
}
function nextPage(){
var arg = new Array();
var cmd="", clicnt=0;
var wanname =get_name();
gl.ApplyBtn = true;
//Encapsulation
if(!chkUsr(document.ifwz.wz_username.value, "User Name")) {
return;
}
if(!chkRealPass(document.ifwz.wz_password.value, "Password")) {
return;
}
cmd = compose_CLI(cmd,'user '+document.ifwz.wz_username.value); //user name
clicnt++;
if ( document.ifwz.wz_password.value != "" ) {
if(document.ifwz.wz_retypepassword.value == "" || document.ifwz.wz_retypepassword.value!= document.ifwz.wz_password.value) {
alert("Please retype to confirm passord.");
return;
}else {
cmd = compose_CLI(cmd, 'password '+document.ifwz.wz_password.value); //password
clicnt++;
}
}
if ((!document.ifwz.wz_ennailedup.checked)&&( document.ifwz.wz_idletimeout.value != "" )) {
if ( !chkRange(document.ifwz.wz_idletimeout.value, 0, 360, "Idle timeout") ) {
return;
}else{
cmd = compose_CLI(cmd, 'idle '+document.ifwz.wz_idletimeout.value); //idle timeout
clicnt++;
}
}else{
//cmd = compose_CLI(cmd, 'idle '+document.ifwz.wz_idletimeout.value); //idle timeout
//clicnt++;
}
cmd = compose_CLI(cmd, 'exit');
clicnt++;
location.href="ppp_ifwizard4_oe.html";
/* delete dhcp server or relay */
}
function doNailUp(form)
{
if ( form.wz_ennailedup.checked ){
form.wz_idletimeout.disabled = true;
form.wz_idletimeout.value = 0;
}else{
form.wz_idletimeout.disabled = false;
}
}
function multi_lingual(wording, filename){
//document.write(gl.getLang(wording, filename));
}
// -->