/*
 * Generated configuration file, do not edit.
 * uiGenerator v2.98a
 * Copyright (C) 2002-2005 Ubicom Inc. <www.ubicom.com>.  All rights reserved.
 */

function emailsetup_js_loaded() { return true }

function createDataObjectFromBinaryArray (initial)
{
	if (initial) createDataObject();
	var d = data;
	i = 0;				// global, accessed by the s*() functions
	d.lan_network_address=sX();
	d.lan_subnet_mask=sX();
	d.log_when_log_full=sU(1);
	d.log_when_sched=sU(1);
	d.smtp_email_acc_name=sS(35);
	d.smtp_email_enable_smtp_auth=sU(1);
	d.smtp_email_from_email_addr=sS(35);
	d.smtp_email_pass=sS(15);
	d.smtp_email_server_addr=sS(35);
	d.log_sched_name=sS(16);
	d.smtp_email_addr=sS(35);
	for (var i1=0; i1<32; i1++) {
		d.sched_table[i1].enabled=sU(1);
		d.sched_table[i1].end_time=sU(4);
		d.sched_table[i1].sched_name=sS(16);
		d.sched_table[i1].start_time=sU(4);
		d.sched_table[i1].used=sU(1);
		d.sched_table[i1].weekdays=sU(1);
	}
	d.smtp_email_enabled=sU(1);
}

function createBinaryArrayFromDataObject()
{
	byte_array = new Array;		// global, accessed by the g*() functions
	var d = data;
	gX(d.lan_network_address);
	gX(d.lan_subnet_mask);
	gU(d.log_when_log_full,1);
	gU(d.log_when_sched,1);
	gS(d.smtp_email_acc_name,35);
	gU(d.smtp_email_enable_smtp_auth,1);
	gS(d.smtp_email_from_email_addr,35);
	gS(d.smtp_email_pass,15);
	gS(d.smtp_email_server_addr,35);
	gS(d.log_sched_name,16);
	gS(d.smtp_email_addr,35);
	for (var i1=0; i1<32; i1++) {
		gU(d.sched_table[i1].enabled,1);
		gU(d.sched_table[i1].end_time,4);
		gS(d.sched_table[i1].sched_name,16);
		gU(d.sched_table[i1].start_time,4);
		gU(d.sched_table[i1].used,1);
		gU(d.sched_table[i1].weekdays,1);
	}
	gU(d.smtp_email_enabled,1);
	return byte_array;
}

function naturalizeDataObject()
{
	var d = data;
	for (var i1=0; i1<32; i1++) {
		d.sched_table[i1].end_time=naturalize(d.sched_table[i1].end_time);
		d.sched_table[i1].start_time=naturalize(d.sched_table[i1].start_time);
		d.sched_table[i1].used=naturalize(d.sched_table[i1].used);
		d.sched_table[i1].weekdays=naturalize(d.sched_table[i1].weekdays);
	}
}
