var OneNet = OneNet || {};

OneNet.Constants = OneNet.Constants ||
{
	Forms:
	{
		readOnlyFormFieldTitle: "{0} (read only)",
		defaultFormFieldName: "This",
		invalidDate: "{0} needs to be a date in the format mm/dd/yyyy.",
		minDate: new Date("1/1/1800"),
		maxDate: new Date("12/31/2100"),
		dateOutOfRange: "{0} needs to be between {1} and {2}.",
		invalidTime: "{0} needs to be a time, such as 8:00 am",
		invalidInteger: "{0} needs to be a whole number.",
		invalidNumber: "{0} needs to be a number.",
		invalidMoney: "{0} needs to be a monetary value, such as $100.",
		invalidDigits: "{0} needs to be between {1} and {2}",
		invalidCharacters: "{0} length needs to be between {1} and {2}",
		formatedPhoneNumberReplaceExpression: "($1) $2-$3", //$1 is the area code, $2 is the next 3 digits, $4 is the last four digits
		invalidPhone: "{0} needs to be a phone number with area code, such as (555) 123-4567.",
		nineDigitsZipCodeReplaceExpression: "$1-$2", //$1 is the first five digits of the match, $2 is the last four digits of the match
		invalidZip: "{0} needs to be a 5 or 9 digit zip code, such as 12345-6789.",
		invalidEmail: "{0} needs to be an email address, such as someone@somewhere.com.",
		invalidUsername: "{0} needs to be a valid DHS username, such as dhs1234.",
		emailAddressRegExp: /^(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)$/,
		userNameRegExp: /^dhs.{3,5}$/i,
		ssnReplaceExpression: "$1-$2-$3", //$1 is the first three digits, $2 is the next two digits, $3 is the last four digits
		invalidSSN: "{0} needs to be a 9 digit SSN, such as 999-99-9999",
		invalidPercent: "{0} needs to be a percent.",
		singleMissingRequiredFieldMessage: "{0} is required.",
		multipleMissingRequiredFieldsMessage: "The following fields are required:\r\n{0}",

		dateTextBoxClass: "date",
		timeTextBoxClass: "time",
		integerTextBoxClass: "integer",
		phoneTextBoxClass: "phone",
		zipCodeTextBoxClass: "zip",
		ssnTextBoxClass: "ssn",
		moneyTextBoxClass: "money",
		percentTextBoxClass: "percent",
		emailTextBoxClass: "email",
		numberTextBoxClass: "number",
		userNameTextBoxClass: "username",
		digitsTextBoxClass: "digits",
		charactersTextBoxClass: "characters",

		formWithRequiredFieldsClass: "containsRequiredFields",
		checkForRequiredFieldsButtonClass: "required",
		requiredFormFieldClass: "required",
		requiredFormFieldEvenWhenHiddenClass: "requiredEvenWhenHidden"
	},

	Http:
	{
		errorCommunicatingWithServer: "Error communicating with server ({0})."
	},

	TreeView:
	{
		clickToOpenTitle: "{0} (click to open)",
		clickToSelectTitle: "{0} (click to select)",
		clickToCloseTitle: "{0} (click to close)",
		selectedTitle: "{0} (selected)",
		emptyTitle: "{0} (empty)",
		nodesNeedToImplementGetNodeContents: "The parent nodes inside of a TreeView need to implement the function \"getNodeContents()\"",
		parameterTreeViewNodeIsRequiredForFunctionGetLineage: "The parameter treeViewNode cannot be null for the method getLineage(treeViewNode, delimiter) of object TreeView",
		nodeCouldNotBeFoundWithThisLineage: "TreeView.selectNode Error - Node could not be found with this lineage",

		parentNodeElementTagName: "subfolder",
		parentNodeClassName: "folder",
		leafNodeElementTagName: "file",
		leafNodeClassName: "file"
	},

	Helper:
	{
		dialogWindowProperties: "height=600,width=450,location=no,scrollbars=no,status=no,toolbar=no,resizable=yes"
	}
};