function dw(str)
{
document.write(str+"\n")
}
function ptz()
{
dw("<select name=TZ>")
dw("<OPTION VALUE=-720>(GMT-12:00)Eniwetok, Kwajalein")
dw("<OPTION VALUE=-660>(GMT-11:00)Midway Island, Samoa")
dw("<OPTION VALUE=-600>(GMT-10:00)Hawaii")
dw("<OPTION VALUE=-540>(GMT-09:00)Alaska")
dw("<OPTION VALUE=-480>(GMT-08:00)Pacific Time (US &amp; Canada)")
dw("<OPTION VALUE=-420>(GMT-07:00)Arizona, Mountain Time (US &amp; Canada)")
dw("<OPTION VALUE=-360>(GMT-06:00)Central Time(US &amp; Canada),Mexico City,Tegucigalpa")
dw("<OPTION VALUE=-300>(GMT-05:00)Bogota, Lima, Quito")
dw("<OPTION VALUE=-300>(GMT-05:00)Eastern Time (US &amp; Canada), Indiana (East)")
dw("<OPTION VALUE=-240>(GMT-04:00)Atlantic Time (US &amp; Canada), Caracas, La Paz")
dw("<OPTION VALUE=-210>(GMT-03:30)Newfoundland")
dw("<OPTION VALUE=-180>(GMT-03:00)Buenos Aires, Georgetown, Brasilia")
dw("<OPTION VALUE=-120>(GMT-02:00)Mid-Atlantic")
dw("<OPTION VALUE=-60>(GMT-01:00)Azores, Cape Verde Is.")
dw("<OPTION VALUE=0>(GMT) Casablanca,Monrovia,Dublin,Edinburgh,Lisbon,London")
dw("<OPTION VALUE=60>(GMT+01:00)Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna")
dw("<OPTION VALUE=60>(GMT+01:00)Belgrade, Bratislave, Budapest, Ljubljana, Prague")
dw("<OPTION VALUE=60>(GMT+01:00)Brussels, Copenhagen, Madrid, Paris, Vilnius")
dw("<OPTION VALUE=60>(GMT+01:00)Sarajevo, Skopje, Sofija, Warsaw, Zagreb")
dw("<OPTION VALUE=120>(GMT+02:00)Athens, Bucharest, Cairo, Istanbul, Minsk")
dw("<OPTION VALUE=120>(GMT+02:00)Harare, Helsinki, Jerusalem, Pretoria, Riga, Tallinn")
dw("<OPTION VALUE=180>(GMT+03:00)Moscow,St.Petersburg,Volgograd,Baghdad,Kuwait,Riyadh")
dw("<OPTION VALUE=210>(GMT+03:30)Tehran")
dw("<OPTION VALUE=240>(GMT+04:00)Abu Dhabi, Baku, Muscat, Tbilist")
dw("<OPTION VALUE=270>(GMT+04:30)Kabul")
dw("<OPTION VALUE=300>(GMT+05:00)EKaterinburg, Islamabad, Karachi, Tashikent")
dw("<OPTION VALUE=330>(GMT+05:30)New Delhi")
dw("<OPTION VALUE=360>(GMT+06:00)Astana, Almaty, Colombo, Dhaka")
dw("<OPTION VALUE=420>(GMT+07:00)Bangkok, Hanoi, Jakarta")
dw("<OPTION VALUE=480>(GMT+08:00)Beijing, Hong Kong, Singapore, Taipei")
dw("<OPTION VALUE=540>(GMT+09:00)Seoul, Tokyo, Yakutsk")
dw("<OPTION VALUE=570>(GMT+09:30)Adelaide, Darwin")
dw("<OPTION VALUE=600>(GMT+10:00)Canberra, Guam, Port Moresby, Vladivostok")
dw("<OPTION VALUE=660>(GMT+11:00)Magadan, Solomon Islands")
dw("<OPTION VALUE=720>(GMT+12:00)Fiji, Kamchatka, Marshall Islands, Wellington")
dw("</SELECT>")
}
function op(b,e,d)
{
var o=""
for(i=b;i<=e;i++)
{
o+="<OPTION>"
if(i<10) o+="0"
o+=i
if(arguments.length==3)i=i+d-1
}
return o
}
function dgo(f)
{
f.tz.value=f.TZ.selectedIndex;
f.submit()
}
function Ttype(op,len)
{
s=(arguments.length==2)?len:2
return (op>0)?op-1:s
}
var ary=new Array("","")
function SorR(str)
{
p=str.indexOf("-")
ary=str.split("-")
if((str=="")||(ary[0]==ary[1])&&(ary[0]==""))
{
ary[0]="*"
ary[1]=""
}
else if(p==-1) ary[1]="";
}
function xMergeR(ii1,ii2)
{
if((ii1=="")&&(ii2=="")) return "";
else if((ii1=="*")||(ii2=="*")) return "";
else if(ii1=="") return ii2;
else if(ii2=="") return ii1;
iio1=ii1.lastIndexOf(".")
iio2=ii2.lastIndexOf(".")
if(iio1!=-1)i1=ii1
else  i1=parseInt(ii1)
if(iio2!=-1)i2=ii2
else i2=parseInt(ii2)
if(i1==i2) return ii1
else if(i1>i2)  return ii2+"-"+ii1
else return ii1+"-"+ii2
}
function MergeR(ii1,ii2)
{
if((ii1=="")&&(ii2=="")) return "";
else if((ii1=="*")||(ii2=="*")) return "";
else if(ii1=="") return ii2;
else if(ii2=="") return ii1;
a1=ii1.split(".")
a2=ii2.split(".")
if(a1.length!=1)
{
for(p=0;p<a1.length;p++)
{
if(parseInt(a2[p])>parseInt(a1[p]))return ii1+"-"+ii2
}
if(ii1==ii2) return ii1
else return ii2+"-"+ii1
}
else
{
i1=parseInt(ii1)
i2=parseInt(ii2)
if(i1==i2) return ii1
else if(i1>i2) return ii2+"-"+ii1
else return ii1+"-"+ii2
}
}
function sStar(str)
{
return (str=="")?"*":str
}
function hw(str)
{
if(str=="snmp"){
dw("\n<FONT><B>SNMP</B><A NAME=snmp></A><BR>")
dw("\n<FONT SIZE=2>SNMP (Simple Network Management Protocol) is a widely used network monitoring and control protocol that reports activity on each network device to the administrator of the network. SNMP can be used to monitor traffic and statistics of the DI-804HV. The DI-804HV supports SNMP v1.<BR>")
dw("\n<UL><I><B>Get Community</B></I> :Enter the password <B>public</B> in this field to allow \"Read only\" access to network administration using SNMP. You can view the network, but no configuration is possible with this setting.<BR>")
dw("\n<I><B>Set Community</B></I> :Enter the password <B>private</B> in this field to gain \"Read and Write\" access to the network using SNMP software. The administrator can configure the network with this setting.<BR>")
}
else if(str=="rtab"){
dw("\n<FONT><B>Routing</B><A NAME=rtab></A><BR>")
dw("\n<FONT SIZE=2>Static routes can be added if you require specific routes within your internal network. These routes will not apply to the WAN (Internet) network.")
dw("\n<UL><I><B>Destination</B></I> :Enter in the IP of the specified network that you want to access using the static route.<BR>")
dw("\n<I><B>Subnet Mask</B></I> :Enter in the subnet mask to be used for the specified network.<BR>")
dw("\n<I><B>Gateway</B></I> :Enter in the gateway IP address to the specified network.<BR>")
dw("\n<I><B>Hop</B></I> :Enter in the amount of hops it will take to the specified network.<BR>")
dw("\n<I><B>Enable</B></I> :Select this option for the specified static route to take effect.<BR>")
}
else if(str=="ddns"){
dw("\n<FONT><B>DDNS</B><A NAME=ddns></A><BR>")
dw("\n<FONT SIZE=2>")
dw("\nUsers who have a Dynamic DNS account may use this feature on the DI-804HV itself.<BR>")
dw("\n<UL><I><B>Provider</B></I> :Select from the list of DDNS servers available.<BR>")
dw("\n<I><B>Host name</B></I> :Enter in your DDNS account host name.<BR>")
dw("\n<I><B>Username/E-mail</B></I> :Enter in your DDNS account username.<BR>")
dw("\n<I><B>Password/Key</B></I> :Enter in your DDNS account password.<BR>")
}
else if(str=="wlpe"){
dw("\n<FONT><B>Wireless Performance</B><A NAME=wlpe></A><BR>")
dw("\n<FONT SIZE=2>")
dw("\nYou are able to change wireless performance settings.  This is for advance users and it is not recommended to adjust these settings.")
dw("\n<UL>")
dw("\n<I><B>Beacon Interval</B></I> : Beacons are packets sent by an Access Point to synchronize a wireless network. Specify a Beacon interval value between 1 and 1000. The default value is set to 100 milliseconds.<BR>")
dw("\n<I><B>RTS Threshold</B></I> : This value should remain at its default setting of 2432. If you encounter inconsistent data flow, only minor modifications to the value range between 256 and 2432 are recommended.  The default value for RTS Threshold is set to 2432.<BR>")
dw("\n<I><B>Fragmentation</B></I> : This value should remain at its default setting of 2346. If you experience a high packet error rate, you may slightly increase your \"Fragmentation\" value within the value range of 256 to 2346.")
dw("\nSetting the Fragmentation value too low may result in poor performance.<BR>")
dw("\n<I><B>DTIM interval (beacon rate)</B></I> : Enter a value between 1 and 65535 for the Delivery Traffic Indication Message (DTIM).  A DTIM is a countdown informing clients of the next window for listening to broadcast and multicast messages.")
dw("\nWhen the Access Point has buffered broadcast or multicast messages for associated clients, it sends the next DTIM with a DTIM Interval value. AP clients hear the beacons and awaken to receive the broadcast and multicast messages. The default value for DTIM interval is set to 3.<BR>")
dw("\n<I><B>Transmission (TX) Rates</B></I> : Select the basic transfer rates based on the speed of wireless adapters on the WLAN (wireless local area network).<BR>")
dw("\n<I><B>Preamble Type</B></I> : The Preamble Type defines the length of the CRC (Cyclic Redundancy Check) block for communication between the Access Point and roaming wireless adapters.  Make sure to select the appropriate preamble type and click the Apply button.<BR>")
dw("\n<FONT COLOR=RED><B>Note</B></FONT>  : High network traffic areas should use the shorter preamble type. CRC is a common technique for detecting data transmission errors.<BR>")
dw("\n<I><B>Authentication Type</B></I> : For added security on the wireless network, when enabling Encryption, the Authentication type can also be selected. If Shared Key is selected,")
dw("\nthe Access Point will not be seen on the wireless network except to the wireless clients that share the same WEP key with MAC Addresses allowed access as specified in Filter List.")
dw("\nIf Open System is chosen, only the wireless clients with the same WEP key will be able to communicate on the wireless network, but the Access Point will be visible to all devices on the network. The default value for Authentication is set to \"Auto\".")
}
dw("\n</UL></FONT><P><P>")
}
function PPPoEType(c)
{
document.f.II0.disabled=c
document.f.ID00.disabled=c
document.f.ID01.disabled=c
}
function cv(val,err,t)
{
val=parseInt(val)
if(arguments.length==2)t="i";
if(t=="i") var ary=new Array(0,255);
if(t=="p") var ary=new Array(0,65535);
if(val>ary[1]||t<ary[0]){sa(err+" is invalid!");return false}
else return true
}
