//
// Begin class PageDataEntryElementAttributes
//

function PageDataEntryElementAttributes()
{
}
PageDataEntryElementAttributes.TEXT           = 1
PageDataEntryElementAttributes.READONLY       = 2
PageDataEntryElementAttributes.LISTBOX        = 4
PageDataEntryElementAttributes.COMBOBOX       = 8
PageDataEntryElementAttributes.PASSWORD       = 32
PageDataEntryElementAttributes.RADIO          = 64
PageDataEntryElementAttributes.MULTILINE      = 128
PageDataEntryElementAttributes.HIDDEN         = 256
PageDataEntryElementAttributes.CHECKBOX       = 512
PageDataEntryElementAttributes.READONLYSUBMIT = 1024
PageDataEntryElementAttributes.NOSUBMIT       = 2048

//
// Begin class PageDataEntryElement
//

function PageDataEntryElement()
{
    this.sItemPrompt         = ''
    this.sItemValue          = ''
    this.sItemTag            = ''
    this.sTemplate           = ''
    this.sFunction           = ''
    this.sErrMsg             = ''
    this.nItemAttrib         = 0
    this.nItemWidth          = 0
    this.nItemMax            = 0
    this.nItemCols           = 0
    this.nItemRows           = 0
    this.sItemType           = 'C'
    this.bRequired           = false
    this.bDisplayLUTDescOnly = false;

	this.objLUT      = null  // Lookup table for text fields

	// For select lists
	this.arListValues  = null // Array of strings
	this.arListStrings = null // Array of strings
}

function clDEFieldError(nError, sFieldTag, sFieldType)
{
	this.nError     = nError
	this.sFieldTag  = sFieldTag
	this.sFieldType = sFieldType
}

clDEFieldError.ERROR_NONE         = 0
clDEFieldError.ERROR_REQUIRED     = 1
clDEFieldError.ERROR_LENGTH       = 2
clDEFieldError.ERROR_RANGE_LOW    = 3
clDEFieldError.ERROR_RANGE_HIGH   = 4
clDEFieldError.FIELD_ERROR_FORMAT = 5