function RgConfigHtml()
{
var html = "";
var flag = 1;
var freqPlan = 0;
var channelId = 1;
var dsFreq = 117000000;
var dhcpServer = "Enabled";
var freqPlanList = ["North American Standard/HRC/IRC", "European PAL I/B/G", "Japan NTSC",
"China", "Korea" ];
if (flag == 1)
{
html += '<tr><td>Frequency Plan</td><td>' + freqPlanList[freqPlan] + '</font></td></tr>';
html += '<tr><td>Upstream Channel ID</td><td>' + channelId + '</font></td></tr>';
html += '<tr><td>Frequency (Hz)</td><td>' + dsFreq + '</font></td></tr>';
html += '<tr><td>DHCP Server</td><td >' + dhcpServer + '</font></td></tr>';
}
else
{
html += '<tr><td>Frequency Plan</td>' +
'<td><SELECT NAME="CmFrequencyPlan">' +
'<OPTION value="0"' + (freqPlan==0?'selected':'') + '>North American Standard/HRC/IRC' +
'<OPTION value="1"' + (freqPlan==1?'selected':'') + '>European PAL I/B/G' +
'<OPTION value="2"' + (freqPlan==2?'selected':'') + '>Japan NTSC' +
'<OPTION value="4"' + (freqPlan==4?'selected':'') + '>Korea' +
'</SELECT></td></tr>';
html += '<tr><td>Upstream Channel ID</td>' +
'<td><INPUT TYPE=TEXT NAME="CmUpChannelId" value=' + channelId + '></td></tr>';
html += '<tr><td>Frequency</td>' +
'<td><INPUT TYPE=TEXT NAME="CmDownstreamFreq" value=' + dsFreq + '></td></tr>';
html += '<tr><td COLSPAN=2>DHCP Server Enabled '+
'<INPUT TYPE=CHECKBOX NAME="CmDhcpServer"' + (dhcpServer=="Enabled"?'checked':'') + '><br>' +
'The SURFboard cable modem can be used as a gateway to the Internet by a ' +
'maximum of 32 users on a Local Area Network (LAN). When the Cable Modem is ' +
'disconnected from the Internet, users on the LAN can be dynamically ' +
'assigned IP Addresses by the Cable Modem DHCP Server. These addresses are ' +
'assigned from an address pool which begins with 192.168.100.11 and ends ' +
'with 192.168.100.42. Statically assigned IP addresses for other devices on ' +
'the LAN should be chosen from outside of this range.'+ '</td></tr>';
html += '<tr><td COLSPAN=2>' +
'<input type="submit" value="Save Changes" align="middle" onClick="SaveChanges();">' +
'<input type="hidden" name="saveChanges" value=0>' +
'<br>' +
'<b>Note:<br></b>' +
'Making changes requires a modem reboot to take effect.</td></tr>';
}
return html;
}
function SaveChanges()
{
window.document.RgConfig.saveChanges.value = 1;
}
function restoreFactoryDefault()
{
var agree=window.confirm('This action requires re-initialization of the cable modem. This process could take from 5 to 30 minutes. Do you want to proceed?');
if (agree == true)
{
window.document.RgConfig.RestoreFactoryDefault.value = 1;
}