'+fr.zone2+'');
}else{
return document.write(''+fr.zone1+'');
}
}
function showWAN(){
if(EncapSel==0){
return document.write(''+'wan1'+'');
}else{
if(fr.twoWan=='true'){
return document.write('ppp1');
}else{
return document.write('wan1_ppp');
}
}
}
function showIface(){
return document.write(''+'wan1'+'');
}
function showEncap(){
if(EncapSel==0){
return document.write('Ethernet');
}else if(EncapSel==1){
return document.write('PPPoE');
}else if(EncapSel==2){
return document.write('PPTP');
}
}
function doNailUp(form)
{
if ( form.wz_nailedUp.checked ){
form.wz_IdleTimeout.disabled = true;
form.wz_IdleTimeout.value = 0;
if(fr.twoWan=='true'){
fr.nail_up2 = 'yes';
}else{
fr.nail_up1 = 'yes';
}
}else{
form.wz_IdleTimeout.disabled = false;
if(fr.twoWan=='true'){
fr.nail_up2 = 'no';
}else{
fr.nail_up1 = 'no';
}
}
}
function showTitle(){
if(fr.wiz_selected==0){
document.write('');
}else{
if(fr.twoWan=='true'){
document.write(', '+panel.getLang('_Second_WAN_Interface', '_wizisp2'));
}else{
document.write(', '+panel.getLang('_First_WAN_Interface', '_wizisp2'));
}
}
}
function step2(){
if(fr.wiz_selected==0){
document.write(''+panel.getLang('_STEP', '_wizisp2')+' 2 | ');
}else{
if(fr.twoWan=='true'){
document.write(''+panel.getLang('_STEP', '_wizisp2')+' 2 | ');
}else{
document.write(''+panel.getLang('_STEP', '_wizisp2')+' 2 | ');
}
}
}
function step4(){
if(fr.wiz_selected==0){
document.write(''+panel.getLang('_STEP', '_wizisp2')+' 4 | ');
}else{
if(fr.twoWan=='true'){
document.write(''+panel.getLang('_STEP', '_wizisp2')+' 4 | ');
}else{
document.write(''+panel.getLang('_STEP', '_wizisp2')+' 4 | ');
}
}
}
function step7(){
if(fr.wiz_selected==1){//two ISP mode
document.write(' | '+panel.getLang('_STEP', '_wizisp2')+' 7 | ');
}
}
function step8(){
if(fr.wiz_selected==1){//two ISP
document.write(' | '+panel.getLang('_STEP', '_wizisp2')+' 8 | ');
}
}
var subWin, helpName;
switch(EncapSel){
case 0://Ethernet
helpName= "helps/wizard/h_Wiz_ISP_Eth.html";
break;
case 1://pppoe
helpName= "helps/wizard/h_Wiz_ISP_PPPoE.html";
break;
case 2://pptp
helpName= "helps/wizard/h_Wiz_ISP_PPTP.html";
break;
}
function onHelp(){
subWin = window.open(helpName,'wizhelp','width=240, height=502, top=100, left=10, resizable=yes, status=no, scrollbars=yes, toolbar=no');
}
function multi_lingual(wording, filename){
//document.write( panel.getLang(wording, filename));
}
//-->