/* $Id: Constants.js,v 1.1 2004/08/24 15:08:07 jane Exp $ */

var undefined = void(0);
var vSupportedDT = new Array();

function ValueTypes()
{
	this.dtNumeric = 'dtNumeric';
	this.dtFloat = 'dtFloat';
	this.dtDate = 'dtDate';
	this.dtTime = 'dtTime';
	this.dtDateTime = 'dtDateTime';
	this.dtEMail = 'dtEMail';
	this.dtMoney = 'dtMoney';
	this.dtNatural = 'dtNatural';
	this.dtCustom = 'dtCustom';
}
var valueTypes = new ValueTypes();

function ExtendedAttributes()
{
	this.vValidate = 'vV';
	this.vRequired = 'vR';
	this.vDataType = 'vDT';
	this.vExtStyle = 'vES';
	this.vValidateMsg = 'vVMsg';
	this.vRequireMsg = 'vRMsg';
	this.vOnValidate = 'vOnV';
	this.vBeforeValidate = 'vBfV';
	this.vAfterValidate = 'vAtV';
}
var extAttributes = new ExtendedAttributes();

function ExtendedStyles()
{
	this.precision = 'extP';
	this.scale = 'extS';
}
var extStyles = new ExtendedStyles();

function ParserResults()
{
	this.Correct = 0;
	this.Incorrect = 1;
}
var parserResults = new ParserResults();

var DefMsgErrDataTypeUnknown = 'Error: data type unknown.';
var DefMsgErrDataTypeUnsupported = 'Error: unsupported data type.';
var DefMsgErrInvalidDescriptor = 'Internal validator error:\nReceived invalid element descriptor.';

var DefMsgRequired = 'Error: value required.';
var DefMsgValidate = 'Error: invalid value.';
var DefMsgPrefix = 'Some mandatory fields are left empty or are in invalid format:';
var DefMsgSuffix = 'Please check and try again.';
