function SelTimeZone(passForm,str)
{
	var timezone;
	
	if (str=="init")
	{
		timezone = passForm.TimeZone.value + ";" + passForm.Country.value;
		for (var i=0; i<passForm.timezonelist.length; i++)
			if (passForm.timezonelist.options[i].value == timezone)
			{
				passForm.timezonelist.selectedIndex = i;
				break;
			}
		
		if (passForm.AutoDaylight.value=="1")
			passForm.Daylight[0].checked = true;
		else
			passForm.Daylight[1].checked = true;
			

	}
	else
	{
		if (passForm.todEnabled[0].checked)
		{
			passForm.TimeZone.value = 0;
			passForm.Country.value = "Greenwich Mean Time: London";
			passForm.AutoDaylight.value = 0;
		}
		else
		{
		timezone = passForm.timezonelist.value.split(";");	
		passForm.TimeZone.value = timezone[0];
		passForm.Country.value = timezone[1];

		if (passForm.Daylight[0].checked)
			passForm.AutoDaylight.value = 1;
		else
			passForm.AutoDaylight.value = 0;
		}
	}
}

function connectionType ( connectionTypeMode )
{
	//Normal
    if ( connectionTypeMode == "static" ) { window.location.href ="SetupStatic.htm"; }
    else if ( connectionTypeMode == "pppoe" ) { window.location.href ="SetupPPPoE.htm"; }
    else if ( connectionTypeMode == "pptp" ) { window.location.href ="SetupPPTP.htm"; }    
    else if ( connectionTypeMode == "dhcp" ) { window.location.href ="SetupDHCP.htm"; }
    else if ( connectionTypeMode == "l2tp" ) { window.location.href ="SetupL2TP.htm"; }
    else if ( connectionTypeMode == "dhcpl2tp" ) { window.location.href ="SetupDHCPL2TP.htm"; }
		else if ( connectionTypeMode == "hbeat" ) { window.location.href ="SetupHBeat.htm"; }
    else { window.location.href ="SetupDHCP.htm"; }
}

function connectionType2 ( connectionTypeMode )
{
	//HotSpot Mode
    if ( connectionTypeMode == "static" ) { window.location.href ="SetupStatic2.htm"; }
    else if ( connectionTypeMode == "pppoe" ) { window.location.href ="SetupPPPoE2.htm"; }
    else if ( connectionTypeMode == "pptp" ) { window.location.href ="SetupPPTP2.htm"; }    
    else if ( connectionTypeMode == "dhcp" ) { window.location.href ="SetupDHCP2.htm"; }
    else { window.location.href ="SetupDHCP2.htm"; }
}
