<SCRIPT language="javascript" type="text/javascript">
var pppoeInf = new Array(
1,
0,
1,
0,
2,
0,
0,
"11010100236309",
"2u3b5d",
1480,
"",
"",
0,
"0.0.0.0",
0,
0,
"124.207.160.106",
"219.239.26.42",
0,
0,
2,
15,
0,
0,
23,
59,
1,
100,
7,
0,
"0.0.0.0",
"0.0.0.0",
"0.0.0.0",
"0.0.0.0",
0,
0,
0,
0,0 );
</SCRIPT>
<SCRIPT language="javascript" type="text/javascript">
var wantypeinfo = new Array(
3,
0,
"WanDynamicIpCfgRpm.htm",
1,
"WanStaticIpCfgRpm.htm",
2,
"PPPoECfgRpm.htm",
0,0 );
</SCRIPT>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Expires" content="wed, 26 Feb 1997 08:21:57 GMT">
<LINK href="../dynaform/css_main.css" rel=stylesheet>
<SCRIPT language="javascript" src="../dynaform/common.js" type="text/javascript"></SCRIPT>
<SCRIPT language="javascript" type="text/javascript"><!--
if(window.parent == window){window.location.href="../index.htm";}
function Click(){return false;}
document.oncontextmenu=Click;
//--></script>
<SCRIPT language="javascript" src="../dynaform/custom.js" type="text/javascript"></SCRIPT>
<script language="JavaScript"><!--
var wanType = new Array(
"动态IP", // WAN_TYPE_DHCP = 0,
"静态IP", // WAN_TYPE_STATIC_IP,
"PPPoE", // WAN_TYPE_PPPOE,
"802.1x 动态IP", // WAN_TYPE_802_1X_DHCP,
"802.1x 静态IP", // WAN_TYPE_802_1X_STATIC_IP,
"BPA", // WAN_TYPE_BPA,
"L2TP", // WAN_TYPE_L2TP,
"PPTP", // WAN_TYPE_PPTP,
"DHCP+", //WAN_TYPE_DHCP_PLUS,
"" // WAN_TYPE_END
);
var PPPoELinkStat = new Array(
"未连接",
"已连接",
"正在连接...",
"用户名或密码验证失败",
"服务器无响应",
"未知原因失败",
"WAN口未连接!"
);
function doSubmit()
{
// 判断上网账号、上网口令和确认口令。lhp,2011-07-09
var element = document.forms[0].acc;
var psw = document.forms[0].psw;
var confirm_psw = document.forms[0].confirm;
/*if(element.value.length==0)
{
alert("请输入上网帐号!");
element.focus();
element.select();
return false;
}
if(psw.value.length==0)
{
alert("请输入上网口令!");
element.focus();
element.select();
return false;
}
if(confirm_psw.value.length==0)
{
alert(js_confirm_psw ="请输入确认口令。");
element.focus();
element.select();
return false;
}*/
if (psw.value != confirm_psw.value)
{
alert(js_confirm_different = "“上网口令”和“确认口令”不匹配。");
element.focus();
element.select();
return false;
}
if(document.forms[0].linktype[0].checked)
{
if(!is_number(document.forms[0].waittime.value,0,99))
{
alert("时间输入错误,请重新输入(0-99)!");
var element =document.forms[0].waittime;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].linktype[3].checked)
{
if(!is_number(document.forms[0].waittime2.value,0,99))
{
alert("时间输入错误,请重新输入(0-99)!");
var element =document.forms[0].waittime2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].linktype[2].checked)
{
if(document.forms[0].hour1.value != "")
{
if(!is_number(document.forms[0].hour1.value,0,24))
{
alert("时间输入错误,请重新输入 (0-24)!");
var element =document.forms[0].hour1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].minute1.value != "" || document.forms[0].hour2.value != "" || document.forms[0].minute2.value != "")
{
alert("请输入时间!");
var element =document.forms[0].hour1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].minute1.value != "")
{
if(!is_number(document.forms[0].minute1.value,0,60))
{
alert("时间输入错误,请重新输入(0-60)!");
var element =document.forms[0].minute1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].hour1.value != "" || document.forms[0].hour2.value != "" || document.forms[0].minute2.value != "")
{
alert("请输入时间!");
var element =document.forms[0].minute1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].hour2.value != "")
{
if(!is_number(document.forms[0].hour2.value,0,24))
{
alert("时间输入错误,请重新输入 (0-24)!");
var element =document.forms[0].hour2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].minute2.value != "" || document.forms[0].hour1.value != "" || document.forms[0].minute1.value != "")
{
alert("请输入时间!");
var element =document.forms[0].hour2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].minute2.value != "")
{
if(!is_number(document.forms[0].minute2.value,0,60))
{
alert("时间输入错误,请重新输入(0-60)!");
var element =document.forms[0].minute2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].hour2.value != "" || document.forms[0].hour1.value != "" || document.forms[0].minute1.value != "")
{
alert("请输入时间!");
var element =document.forms[0].minute2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
}
if(!is_ipaddr(document.forms[0].sta_ip.value))
{
var element =document.forms[0].sta_ip;
if(element)
{
element.focus();
element.select();
}
return false;
}
if(!is_maskaddr(document.forms[0].sta_mask.value))
{
var element =document.forms[0].sta_mask;
if(element)
{
element.focus();
element.select();
}
return false;
}
return true;
}
function doSelect()
{
if(document.forms[0].linktype[0].checked)
document.forms[0].waittime.disabled = false;
else
{
document.forms[0].waittime.disabled = true;
}
if(document.forms[0].linktype[3].checked)
document.forms[0].waittime2.disabled = false;
else
{
document.forms[0].waittime2.disabled = true;
}
if(document.forms[0].linktype[2].checked)
{
document.forms[0].hour1.disabled = false;
document.forms[0].minute1.disabled = false;
document.forms[0].hour2.disabled = false;
document.forms[0].minute2.disabled = false;
}
else
{
document.forms[0].hour1.disabled = true;
document.forms[0].minute1.disabled = true;
document.forms[0].hour2.disabled = true;
document.forms[0].minute2.disabled = true;
}
return true;
}
function doAdvance()
{
location.href="/userRpm/PPPoECfgAdvRpm.htm?Advanced=高级设置&wan="+pppoeInf[5];
}
function doFialDialReasonHelp(error)
{
if(3==error){location.href="/help/PPPoECfgFailAuthReasonHelpRpm.htm";}
if(4==error){location.href="/help/PPPoECfgFailResponseReasonHelpRpm.htm";}
if(5==error){location.href="/help/PPPoECfgFailOtherReasonHelpRpm.htm";}
}
var bRefreshFlag = 1;
function doFocus()
{
bRefreshFlag = 0;
}
function doOnblur()
{
bRefreshFlag = 1;
}
function doLoad()
{
if(document.forms[0].linktype[0].checked)
document.forms[0].waittime.disabled = false;
else
{
document.forms[0].waittime.disabled = true;
}
if(document.forms[0].linktype[3].checked)
document.forms[0].waittime2.disabled = false;
else
{
document.forms[0].waittime2.disabled = true;
}
if(document.forms[0].linktype[2].checked)
{
document.forms[0].hour1.disabled = false;
document.forms[0].minute1.disabled = false;
document.forms[0].hour2.disabled = false;
document.forms[0].minute2.disabled = false;
}
else
{
document.forms[0].hour1.disabled = true;
document.forms[0].