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

function schedules_js_loaded() { return true }

function createDataObjectFromBinaryArray (initial)
{
	if (initial) createDataObject();
	var d = data;
	i = 0;				// global, accessed by the s*() functions
	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);
	}
}

function createBinaryArrayFromDataObject()
{
	byte_array = new Array;		// global, accessed by the g*() functions
	var d = data;
	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);
	}
	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);
	}
}
