extpanid must be a number");
				return false;
			}
			if (extpanid.length != 16) {
				alert("extpanid length must be 16 bytes");
				return false;
			}

			var mode = document.forms["settingForm"]["mode"].value;
			var re = /^[rsdn]+$/;
			var OK = re.exec(mode);
			if (!OK) {
				alert("mode must be consist of 'r', 's', 'd', 'n'");
				return false;
			}

			var networkkey = document.forms["settingForm"]["networkkey"].value;
			if (networkkey.length != 32) {
				alert("Networkkey length must be 32 bytes"