/* Created with PageBuilder version 4.04 on Tue Nov  1 14:43:44 2011 */

#include "AsExtern.h"

#if RomPagerServer



/* ************************************************** */
/* *    Built from "html\wireless_ip_config.htm"    * */
/* ************************************************** */

extern rpObjectDescription Pgwireless_ip_config;

static char Pgwireless_ip_config_Item_1[] =
	C_oHTML;

static char Pgwireless_ip_config_Item_2[] =
	C_oHEAD "\n"
	C_oMETA " http-equiv=\"Content-Type\"" C_CONTENT "\"text/html; "
	"charset=UTF-8\">\n"
	C_oTITLE "\n";

extern char *wirelessConfig_getProductName(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
rpTextDisplayItem wirelessConfig_getProductNameId = {
	(void *) wirelessConfig_getProductName,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgwireless_ip_config_Item_4[] =
	C_xTITLE C_oMETA C_CONTENT "\"text/html; charset=windows-1252\" "
	"http-equiv=\"Content-Type\">\n"
	"<link type=\"text/css\" href=\"/css/stylesheet.css\" "
	"rel=\"stylesheet\">\n";

static char Pgwireless_ip_config_Item_7[] =
	"<script src=\"/scripts/utils.js\" language=\"JavaScript\"></script>\n"
	"<script src=\"/scripts/errhandler.js\" language=\"JavaScript\">"
	"</script>\n"
	"<script src=\"/scripts/validation.js\" language=\"JavaScript\">"
	"</script>\n"
	"<script language=\"JavaScript\">\n"
	"<!--\n"
	"function setWirelessDhcpState() {\n"
	"if (document.wireless_form.rbWDHCP[0].checked) {\n"
	"document.wireless_form.ip_addr.disabled = true;\n"
	"document.wireless_form.submask.disabled = true;\n"
	"document.wireless_form.gw_addr.disabled = true;\n"
	"document.wireless_form.pdns_addr.disabled = true;\n"
	"document.wireless_form.sdns_addr.disabled = true;\n"
	"} else {\n"
	"document.wireless_form.ip_addr.disabled = false;\n"
	"document.wireless_form.submask.disabled = false;\n"
	"document.wireless_form.gw_addr.disabled = false;\n"
	"document.wireless_form.pdns_addr.disabled = false;\n"
	"document.wireless_form.sdns_addr.disabled = false;\n"
	"document.wireless_form.ip_addr.focus();\n"
	"}\n"
	"}\n"
	"var err = new ErrorHandler();\n"
	"function doWValidate() {\n"
	"err.clearErrors(); // reset\n"
	"var ip = document.wireless_form.ip_addr;\n"
	"var submask = document.wireless_form.submask;\n"
	"var gw = document.wireless_form.gw_addr;\n"
	"var pDNS = document.wireless_form.pdns_addr;\n"
	"var sDNS = document.wireless_form.sdns_addr;\n"
	"var prefix = document.wireless_form.prefix_len;\n"
	"// Trim values before validation.\n"
	"ip.value = trim(ip.value);\n"
	"submask.value = trim(submask.value);\n"
	"gw.value = trim(gw.value);\n"
	"pDNS.value = trim(pDNS.value);\n"
	"sDNS.value = trim(sDNS.value);\n"
	"// name server is optional. Set to default value\n"
	"// if left blank.\n"
	"if (gw.value.length == 0)\n"
	"gw.value = \'0.0.0.0\';\n"
	"// If DHCP is enabled make sure the other ip settings are at least\n"
	"// of valid form to avoid ROMPager parsing errors. They should get\n"
	"// tossed anyway since DHCP will aquire the values.\n"
	"if (document.wireless_form.rbWDHCP[0].checked) {\n"
	"if (!isValidIP(ip.value))\n"
	"ip.value = \'0.0.0.0\';\n"
	"if (!isDottedForm(submask.value))\n"
	"submask.value = \'0.0.0.0\';\n"
	"if (!isValidIP(gw.value))\n"
	"gw.value = \'0.0.0.0\';\n"
	"if (!isValidIP(pDNS.value))\n"
	"pDNS.value = \'0.0.0.0\';\n"
	"if (!isValidIP(sDNS.value))\n"
	"sDNS.value = \'0.0.0.0\';\n"
	"} else {\n";

static char Pgwireless_ip_config_Item_8[] =
	"if (!isValidIP(ip.value))\n"
	"err.addError(ip, \'Invalid or missing IP address.\');\n"
	"if (pDNS.value != \'0.0.0.0\' && !isValidIP(pDNS.value))\n"
	"err.addError(pDNS, \'Invalid or missing Primary DNS address.\');\n"
	"if (sDNS.value != \'0.0.0.0\' && !isValidIP(sDNS.value))\n"
	"err.addError(sDNS, \'Invalid or missing Secondary DNS address.\');\n"
	"if (!isDottedForm(submask.value))\n"
	"err.addError(submask, \'Invalid or missing subnet mask.\');\n"
	"if (gw.value != \'0.0.0.0\' && !isValidIP(gw.value))\n"
	"err.addError(gw, \'Invalid or missing default gateway address.\');\n"
	"else if (!isValidGateway(gw.value))\n"
	"err.addError(gw, \'Invalid gateway address can not be 0.0.0.0.\');\n"
	"}\n"
	"if (document.wireless_form.wIpv6Static.checked) {\n"
	"if (!isInRange(prefix.value, 0, 128)) {\n"
	"err.addError(prefix, \'Invalid Prefix Length - enter value between 0 "
	"to 128.\');\n"
	"}\n"
	"}\n"
	"err.showError();\n"
	"return !err.hasError();\n"
	"}\n"
	"function setWirelessIpv6StaticState() {\n"
	"if (document.wireless_form.wIpv6Static.checked) {\n"
	"document.wireless_form.wipv6_addr.disabled = false;\n"
	"document.wireless_form.wprefix_len.disabled = false;\n"
	"document.wireless_form.wipv6_gateway.disabled = false;\n"
	"document.wireless_form.wipv6_addr.focus();\n"
	"} else {\n"
	"document.wireless_form.wipv6_addr.disabled = true;\n"
	"document.wireless_form.wprefix_len.disabled = true;\n"
	"document.wireless_form.wipv6_gateway.disabled = true;\n"
	"}\n"
	"}\n"
	"function setWirelessNetworState() {\n"
	"setWirelessDhcpState();\n"
	"setWirelessIpv6StaticState();\n"
	"}\n"
	"//-->\n"
	"</script>\n"
	C_xHEAD C_oBODY " onunload=\"\" onload=\"setWirelessNetworState();\">\n"
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"4\""
	C_CELLSPACING "\"0\">\n"
	"<tr" C_BGCOLOR "ffffff\">\n"
	C_oTD_oANCHOR_HREF "http://www.digi.com/\"><img" C_ALT "Digi "
	"International\" src=\"/img/logo.gif\"" C_BORDER "\"0\"/>"
	C_xANCHOR_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD "<!-- Spacer -->\n"
	"<td nowrap=\"\"" C_WIDTH "\"100%\"" C_VALIGN_MIDDLE " "
	"class=\"PAGEHEADER\">\n";

extern rpTextDisplayItem wirelessConfig_getProductNameId;

static char Pgwireless_ip_config_Item_10[] =
	C_xTD C_xTR C_oTR "\n"
	C_oTD C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD "<!-- Spacer -->\n"
	"<!-- Messages -->\n"
	"<td" C_VALIGN_TOP C_WIDTH "\"100%\">\n"
	"<!-- STATUS MESSAGES -->\n";

static char Pgwireless_ip_config_Item_12[] =
	"<table class=\"STATUSBOX\"" C_BORDER "\"0\"" C_CELLPADDING "\"4\""
	C_CELLSPACING "\"0\"" C_ALIGN_CENTER C_WIDTH "\"100%\">\n"
	C_oTR "\n"
	C_oTD_ALIGN_LEFT ">\n";

extern char *wirelessConfig_GetMessageText(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
rpTextDisplayItem wirelessConfig_getMessageTextId = {
	(void *) wirelessConfig_GetMessageText,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgwireless_ip_config_Item_14[] =
	C_xTD C_xTR
	C_xTABLE;

static rpItem Pgwireless_ip_config_Item_11_Group[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_12 }, 
	{ eRpItemType_DisplayText, (void *) &wirelessConfig_getMessageTextId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_14 }, 
	{ eRpItemType_LastItemInList } 
};

extern void wirelessConfig_repeatWhileMoreStatusMessages(void *theTaskDataPtr, Signed16Ptr theIndexPtr,
		void **theRepeatGroupValuePtr);
static rpRepeatGroupDynItem Pgwireless_ip_config_Item_11 = {
	(void *) wirelessConfig_repeatWhileMoreStatusMessages,
	Pgwireless_ip_config_Item_11_Group
};

static char Pgwireless_ip_config_Item_15[] =
	"<!-- ERROR MESSAGES -->\n";

static char Pgwireless_ip_config_Item_17[] =
	"<table class=\"ERRORBOX\"" C_BORDER "\"0\"" C_CELLPADDING "\"4\""
	C_CELLSPACING "\"0\"" C_ALIGN_CENTER C_WIDTH "\"100%\">\n"
	C_oTR "\n"
	C_oTD_ALIGN_LEFT ">\n";

extern rpTextDisplayItem wirelessConfig_getMessageTextId;

static char Pgwireless_ip_config_Item_19[] =
	C_xTD C_xTR
	C_xTABLE;

static rpItem Pgwireless_ip_config_Item_16_Group[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_17 }, 
	{ eRpItemType_DisplayText, (void *) &wirelessConfig_getMessageTextId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_19 }, 
	{ eRpItemType_LastItemInList } 
};

extern void wirelessConfig_repeatWhileMoreErrorMessages(void *theTaskDataPtr, Signed16Ptr theIndexPtr,
		void **theRepeatGroupValuePtr);
static rpRepeatGroupDynItem Pgwireless_ip_config_Item_16 = {
	(void *) wirelessConfig_repeatWhileMoreErrorMessages,
	Pgwireless_ip_config_Item_16_Group
};

static char Pgwireless_ip_config_Item_20[] =
	C_xTD C_xTR C_oTR "\n"
	"<!-- MENU -->\n"
	"<td" C_VALIGN_TOP " nowrap=\"\">\n";

static char Pgwireless_ip_config_Item_22[] =
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"10\""
	C_CELLSPACING "\"0\">\n"
	C_oTR "\n"
	"<td nowrap=\"\">\n";

static char Pgwireless_ip_config_Item_24[] =
	"\n"
	C_oANCHOR_HREF "\n";

extern char *wirelessConfig_getMenuItemUrl(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
static rpTextDisplayItem Pgwireless_ip_config_Item_25 = {
	(void *) wirelessConfig_getMenuItemUrl,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgwireless_ip_config_Item_26[] =
	"\">\n";

extern char *wirelessConfig_getMenuItemName(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
static rpTextDisplayItem Pgwireless_ip_config_Item_27 = {
	(void *) wirelessConfig_getMenuItemName,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgwireless_ip_config_Item_28[] =
	C_xANCHOR "<br/>\n";

static rpItem Pgwireless_ip_config_Item_23_Group[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_24 }, 
	{ eRpItemType_DisplayText, (void *) &Pgwireless_ip_config_Item_25 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_26 }, 
	{ eRpItemType_DisplayText, (void *) &Pgwireless_ip_config_Item_27 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_28 }, 
	{ eRpItemType_LastItemInList } 
};

extern void wirelessConfig_getMenuListWhile(void *theTaskDataPtr, Signed16Ptr theIndexPtr,
		void **theRepeatGroupValuePtr);
static rpRepeatGroupDynItem Pgwireless_ip_config_Item_23 = {
	(void *) wirelessConfig_getMenuListWhile,
	Pgwireless_ip_config_Item_23_Group
};

static char Pgwireless_ip_config_Item_29[] =
	C_xTD C_xTR
	C_xTABLE;

rpItem wirelessConfig_htmlMenu[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_22 }, 
	{ eRpItemType_RepeatGroupWhile, (void *) &Pgwireless_ip_config_Item_23 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_29 }, 
	{ eRpItemType_LastItemInList } 
};

static char Pgwireless_ip_config_Item_30[] =
	C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD "<!-- Spacer -->\n"
	"<!-- PAGE CONTENT -->\n"
	"<td" C_VALIGN_TOP C_WIDTH "\"100%\">\n"
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"10\""
	C_CELLSPACING "\"0\" class=\"BORDER\">\n"
	C_oTR "\n"
	"<td" C_WIDTH "\"100%\" class=\"PAGECONTENT\">\n"
	"<h1 class=\"CONTENTHEADER\">Wireless TCP/IP Settings" C_xH1 "<!-- Tabs"
	" -->\n"
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"0\""
	C_CELLSPACING "\"0\">\n"
	C_oTR "\n"
	"<td class=\"PAGETAB\" nowrap=\"true\"" C_WIDTH "\"10\">" C_NBSP C_xTD
	"<!-- left fill -->\n"
	"<td class=\"PAGETAB\" nowrap=\"true\">" C_oANCHOR_HREF
	"/html/wireless_network_config.htm\">Wireless Network" C_xANCHOR_xTD
	"<td class=\"PAGETAB\" nowrap=\"true\">|" C_xTD "<!-- separator -->\n"
	"<td class=\"PAGETAB-SELECTED\" nowrap=\"true\">TCP/IP" C_xTD "<td "
	"class=\"PAGETAB\"" C_WIDTH "\"100%\">" C_NBSP C_xTD "<!-- right fill "
	"-->\n"
	C_xTR C_xTABLE "<br/>\n"
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"0\""
	C_CELLSPACING "\"0\">\n"
	C_oTR " " C_oTD C_oH2 "IP v4 Settings" C_xH2 C_xTD C_xTR C_oTR "\n"
	C_oTD;

static char Pgwireless_ip_config_Item_31[] =
	C_NAME "\"wireless_form\" onsubmit=\"return doWValidate();\"";

static char Pgwireless_ip_config_Item_33[] =
	C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"2\"" C_BORDER "\"0\">\n";

extern rpOneOfSeveral getWirelessDhcp(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessDhcp(void *theTaskDataPtr, rpOneOfSeveral theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpRadioGroupInfo Pgwireless_ip_config_RadioGroup_1 = {
	"rbWDHCP",
	(void *) getWirelessDhcp,
	(void *) setWirelessDhcp,
	eRpVarType_Complex,
	eRpVarType_Complex
};

static char Pgwireless_ip_config_Item_34[] =
	C_oTR "\n"
	C_oTD;

static char Pgwireless_ip_config_Item_35[] =
	" onclick=\"setWirelessDhcpState();\"";

rpRadioButtonFormItem enableWirelessDHCP = {
	&Pgwireless_ip_config_RadioGroup_1,
	"on",
	0,
	(char *) Pgwireless_ip_config_Item_35
};

static char Pgwireless_ip_config_Item_37[] =
	C_NBSP "\n"
	"<label for=\"enableWirelessDHCP\">Obtain an IP address automatically"
	"</label>\n"
	C_xTD C_xTR C_oTR "\n"
	C_oTD;

static char Pgwireless_ip_config_Item_38[] =
	" onclick=\"setWirelessDhcpState();\"";

rpRadioButtonFormItem disableWirelessDHCP = {
	&Pgwireless_ip_config_RadioGroup_1,
	"off",
	1,
	(char *) Pgwireless_ip_config_Item_38
};

static char Pgwireless_ip_config_Item_40[] =
	C_NBSP "\n"
	"<label for=\"disableWirelessDHCP\">Use the following IP address"
	"</label>\n"
	C_xTD C_xTR C_xTABLE C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"2\""
	C_BORDER "\"0\">\n"
	C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"IP v4 Address:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessIpAddress(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessIPAddress(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_41 = {
	"ip_addr",
	(void *) getWirelessIpAddress,
	(void *) setWirelessIPAddress,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgwireless_ip_config_Item_42[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Subnet Mask:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessSubMask(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessSubMask(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_43 = {
	"submask",
	(void *) getWirelessSubMask,
	(void *) setWirelessSubMask,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgwireless_ip_config_Item_44[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Default Gateway:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessGateway(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessGateway(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_45 = {
	"gw_addr",
	(void *) getWirelessGateway,
	(void *) setWirelessGateway,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgwireless_ip_config_Item_46[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Primary DNS:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessPrimaryDNS(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessPrimaryDNS(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_47 = {
	"pdns_addr",
	(void *) getWirelessPrimaryDNS,
	(void *) setWirelessPrimaryDNS,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgwireless_ip_config_Item_48[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Secondary DNS:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessSecondaryDNS(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessSecondaryDNS(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_49 = {
	"sdns_addr",
	(void *) getWirelessSecondaryDNS,
	(void *) setWirelessSecondaryDNS,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgwireless_ip_config_Item_50[] =
	C_xTD C_xTR C_xTABLE C_oBR C_xTD C_xTR C_oTR " " C_oTD C_oH2 "IP v6 "
	"Settings" C_xH2 C_xTD C_xTR C_oTR " " C_oTD C_oTABLE_CELLSPACING "\"0\""
	C_CELLPADDING "\"2\"" C_BORDER "\"0\">\n"
	C_oTR "\n"
	C_oTD;

extern Boolean getWirelessIpv6Dhcp(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessIpv6Dhcp(void *theTaskDataPtr, Boolean theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpCheckboxFormItem Pgwireless_ip_config_Item_51 = {
	"ipv6DHCP",
	(void *) getWirelessIpv6Dhcp,
	(void *) setWirelessIpv6Dhcp,
	eRpVarType_Complex,
	eRpVarType_Complex,
	(char *) 0
};

static char Pgwireless_ip_config_Item_52[] =
	C_NBSP "\n"
	"<label for=\"enableDHCPv6\">Enable DHCP v6</label>\n"
	C_xTD C_xTR C_oTR "\n"
	C_oTD;

static char Pgwireless_ip_config_Item_53[] =
	" onclick=\"setWirelessIpv6StaticState();\"";

extern Boolean getWirelessIpv6Static(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessIpv6Static(void *theTaskDataPtr, Boolean theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpCheckboxFormItem Pgwireless_ip_config_Item_54 = {
	"wIpv6Static",
	(void *) getWirelessIpv6Static,
	(void *) setWirelessIpv6Static,
	eRpVarType_Complex,
	eRpVarType_Complex,
	(char *) Pgwireless_ip_config_Item_53
};

static char Pgwireless_ip_config_Item_55[] =
	C_NBSP "\n"
	"<label for=\"enableStaticv6\">Use the following static IP v6 address"
	"</label>\n"
	C_xTD C_xTR C_xTABLE C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"2\""
	C_BORDER "\"0\">\n"
	C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"IP v6 Address:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessIpv6Address(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessIPv6Address(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_56 = {
	"wipv6_addr",
	(void *) getWirelessIpv6Address,
	(void *) setWirelessIPv6Address,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_ASCII,
	32,
	32,
	(char *) 0
};

static char Pgwireless_ip_config_Item_57[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Prefix Length:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern Unsigned8 getWirelessPrefixLength(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessPrefixLength(void *theTaskDataPtr, Unsigned8 theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_58 = {
	"wprefix_len",
	(void *) getWirelessPrefixLength,
	(void *) setWirelessPrefixLength,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_Unsigned8,
	3,
	3,
	(char *) 0
};

static char Pgwireless_ip_config_Item_59[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"IP v6 Gateway:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getWirelessIpv6Gateway(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setWirelessIPv6Gateway(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgwireless_ip_config_Item_60 = {
	"wipv6_gateway",
	(void *) getWirelessIpv6Gateway,
	(void *) setWirelessIPv6Gateway,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_ASCII,
	32,
	32,
	(char *) 0
};

static char Pgwireless_ip_config_Item_61[] =
	C_xTD C_xTR C_xTABLE C_oBR "<hr class=\"SEPARATORLINE\">\n"
	C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"0\"" C_BORDER "\"0\">\n"
	C_oTR "\n"
	C_oTD;

static rpButtonFormItem Pgwireless_ip_config_Item_62 = {
	"Apply",
	(char *) 0
};

static char Pgwireless_ip_config_Item_63[] =
	C_xTD C_xTR C_xTABLE C_xFORM C_xTD C_xTR C_xTABLE C_xTD C_xTR C_xTABLE
	C_xTD C_xTR
	C_xTABLE;

char wireless_htmlCopyright[] =
	"\n"
	"<table" C_WIDTH "\"100%\"" C_BORDER "\"0\"" C_CELLPADDING "\"0\""
	C_CELLSPACING "\"0\">\n"
	C_oTR "\n"
	C_oTD_ALIGN_CENTER " class=\"COPYRIGHT\">\n"
	"Copyright &copy; 1996-2006 Digi International, Inc. All rights "
	"reserved.\n"
	C_xTD C_xTR
	C_xTABLE;

static char Pgwireless_ip_config_Item_65[] =
	C_xBODY;

extern rpObjectDescription Pgwireless_ip_config_Form_1;
static rpItem Pgwireless_ip_config_Item_6[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_7 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_8 }, 
	{ eRpItemType_DisplayText, (void *) &wirelessConfig_getProductNameId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_10 }, 
	{ eRpItemType_RepeatGroupWhile, (void *) &Pgwireless_ip_config_Item_11 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_15 }, 
	{ eRpItemType_RepeatGroupWhile, (void *) &Pgwireless_ip_config_Item_16 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_20 }, 
	{ eRpItemType_ItemGroup, (void *) &wirelessConfig_htmlMenu }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_30 }, 
	{ eRpItemType_FormHeader, (void *) &Pgwireless_ip_config_Form_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_33 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_34 }, 
	{ eRpItemType_FormRadioButton, (void *) &enableWirelessDHCP }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_37 }, 
	{ eRpItemType_FormRadioButton, (void *) &disableWirelessDHCP }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_40 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_41 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_42 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_43 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_44 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_45 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_46 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_47 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_48 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_49 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_50 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgwireless_ip_config_Item_51 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_52 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgwireless_ip_config_Item_54 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_55 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_56 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_57 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_58 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_59 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_60 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_61 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgwireless_ip_config_Item_62 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_63 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &wireless_htmlCopyright }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_65 }, 
	{ eRpItemType_LastItemInList } 
};

static char Pgwireless_ip_config_Item_67[] =
	C_oBODY ">\n"
	C_oP "Wireless not supported" C_xP
	C_xBODY;

static rpItem Pgwireless_ip_config_Item_66[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_67 }, 
	{ eRpItemType_LastItemInList } 
};

static rpItem Pgwireless_ip_config_Item_5_Group[] = { 
	{ eRpItemType_ItemGroup, (void *) &Pgwireless_ip_config_Item_6 }, 
	{ eRpItemType_ItemGroup, (void *) &Pgwireless_ip_config_Item_66 }, 
	{ eRpItemType_LastItemInList } 
};

extern Unsigned8 wirelessConfig_getWirelessSupportedIndex(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpDynamicDisplayItem Pgwireless_ip_config_Item_5 = {
	(void *) wirelessConfig_getWirelessSupportedIndex,
	eRpVarType_Complex,
	2,
	Pgwireless_ip_config_Item_5_Group
};

static char Pgwireless_ip_config_Item_68[] =
	C_xHTML;



static rpItem Pgwireless_ip_config_Form_1_Items[] = { 
	{ eRpItemType_FormRadioButton, (void *) &enableWirelessDHCP }, 
	{ eRpItemType_FormRadioButton, (void *) &disableWirelessDHCP }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_41 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_43 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_45 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_47 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_49 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgwireless_ip_config_Item_51 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgwireless_ip_config_Item_54 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_56 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_58 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgwireless_ip_config_Item_60 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgwireless_ip_config_Item_62 }, 
	{ eRpItemType_LastItemInList } 
};

extern void wirelessSubmit(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pgwireless_ip_config_Form_1_ObjectExtension = {
	wirelessSubmit,
	&Pgwireless_ip_config,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None,
	(char *) Pgwireless_ip_config_Item_31
};

rpObjectDescription Pgwireless_ip_config_Form_1 = {
	"/Forms/wireless_ip_config_1",
	Pgwireless_ip_config_Form_1_Items,
	&Pgwireless_ip_config_Form_1_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Unprotected,
	eRpDataTypeForm,
	eRpObjectTypeDynamic
};

static rpItem Pgwireless_ip_config_Items[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_2 }, 
	{ eRpItemType_DisplayText, (void *) &wirelessConfig_getProductNameId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_4 }, 
	{ eRpItemType_DynamicDisplay, (void *) &Pgwireless_ip_config_Item_5 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgwireless_ip_config_Item_68 }, 
	{ eRpItemType_LastItemInList } 
};


extern void wirelessIpConfigPagePreProc(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pgwireless_ip_config_ObjectExtension = {
	wirelessIpConfigPagePreProc,
	(rpObjectDescriptionPtr) 0,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None,
	(char *) 0
};

rpObjectDescription Pgwireless_ip_config = {
	"/html/wireless_ip_config.htm",
	Pgwireless_ip_config_Items,
	&Pgwireless_ip_config_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Realm1,
	eRpDataTypeHtml,
	eRpObjectTypeDynamic
};

#endif	/* RomPagerServer */
