//Copyright 2004 Thomas Sapiano.  All rights reserved.
//
//*************************************************************
//* Javascript code used to act as an adendum to the existing *
//* code specifically for the easy version of the form.  This *
//* makes educaded guesses and hides commonly unused values.  *
//*************************************************************
//

// switch between Infrastructure and Ad-Hoc modes.  In addition
// to the basic tasks, this also controls DHCP enabled/disabled
// with the two configurations.
function EASY_switchMode(val)
{
	switchMode(val);
	if(val == "1")
	{
		//For ad-hoc networks, switch off and disable DHCP
		document.form1.IsDhcpOn.checked=false;
		switchDHCP(false);
		document.form1.IsDhcpOn.disabled=true;
	}
	else
	{
		//For infrastructure networks, switch on DHCP
		document.form1.IsDhcpOn.checked=true;
		switchDHCP(true);
		document.form1.IsDhcpOn.disabled=false;
	}
}
