
if ( typeof fvalidate == 'undefined' )
{ var fvalidate = new Object();}
fvalidate.addEvent = function( obj, evt, fn, useCapture )
{ if ( typeof obj.attachEvent != 'undefined' )
{ obj.attachEvent( "on" + evt, fn );}
else if ( typeof obj.attachEventListener != 'undefined' )
{ obj.addEventListener( evt, fn, Boolean( useCapture ) );}
}
fvalidate.addEvents = function( obj, evts, fn, useCapture )
{ var i = 0, evt; while( evt = evts[i++] )
{ this.addEvent( obj, evt, fn, Boolean( useCapture ) );}
}
function validateForm( f, bConfirm, bDisable, bDisableR, groupError, errorMode )
{ bConfirm = Boolean( bConfirm ); bDisable = Boolean( bDisable ); bDisableR = Boolean( bDisableR ); groupError = Boolean( groupError ); errorMode = ( typeof errorMode != 'undefined' ) ? parseInt( errorMode, 10 ) : 0; var params, fvCode, type; if ( typeof f.fv == 'undefined' )
{ f.fv = new fValidate( f, errorMode, groupError );} else { f.fv._reset(); f.fv.errorMode = errorMode;}
var elem, i = 0, attr = f.fv.config.code; while ( elem = f.elements[i++] )
{ if ( elem.nodeName == "FIELDSET" ) continue; fvCode = ( elem[attr] ) ? elem[attr] : elem.getAttribute( attr ); if ( !( typeof fvCode == 'undefined' || fvCode == null || fvCode == "" ) )
{ params = fvCode.split( "|" ); type = params[0]; elem.validated = true; if ( typeof f.fv[type] == 'undefined' )
{ f.fv.devError( [type, elem.name], 'notFound' ); return false;}
switch( params.last() )
{ case 'bok' :
params = params.reduce( 1, 1 ); elem.bok = true; break; case 'if' :
params = params.reduce( 1, 1 ); elem._if_ = true; break; case 'then' :
params = params.reduce( 1, 1 ); elem._then_ = true; break; default :
params = params.reduce( 1, 0 );}
if ( /radio|checkbox/.test( elem.type ) )
{ elem.group = f.elements[elem.name];}
if ( typeof elem.fName == 'undefined' )
{ if ( typeof elem.group != 'undefined' )
{ for ( var j = 0; j < elem.group.length; j++ )
{ if ( f.fv.config.clearEvent != null )
{ addEvent( elem.group.item( j ), f.fv.config.clearEvent, f.fv, 'revertError', false );}
}
}
else
{ addEvent( elem, f.fv.config.clearEvent, f.fv, 'revertError', false );}
}
elem.fName = elem.name.format(); f.fv.elem = elem; f.fv.type = type; var func = new Function( "obj", "method", "obj[method]( " + params.toArgString() + " );" ); func( f.fv, type ); if ( elem.validated == false && groupError == false ) {return false;} if ( elem.validated == true ) {f.fv.revertError();}}
}
if ( groupError ) f.fv.showGroupError(); if ( f.fv.errors.length > 0 ) return false; if ( bConfirm && !confirm( f.fv.config.confirmMsg ) )
{ if ( f.fv.config.confirmAbortMsg != '' ) alert( f.fv.config.confirmAbortMsg ); return false;}
if ( bDisable )
{ if ( typeof f.fv.config.submitButton == 'object' )
{ var sb, j = 0; while( sb = f.fv.config.submitButton[j++] )
{ if ( f.fv.elementExists( sb ) )
{ f.elements[sb].disabled = true;}
}
}
else if ( f.fv.elementExists( f.fv.config.submitButton ) )
{ f.elements[f.fv.config.submitButton].disabled = true;}
}
if ( bDisableR && f.fv.elementExists( f.fv.config.resetButton ) )
{ f.elements[f.fv.config.resetButton].disabled = true;}
return true; function addEvent( elem, evt, obj, method, capture )
{ var self = elem; if ( typeof elem.attachEvent != 'undefined' )
{ elem.attachEvent( "on" + evt, function() { obj[method]( self ) } );}
else if ( typeof elem.addEventListener != 'undefined' )
{ elem.addEventListener( evt, function() { obj[method]( self ) }, capture );}
else if ( f.fv.config.eventOverride )
{ eleme['on' + evt] = function() { obj[method]( self ) };}
}
}
function fValidate( f, errorMode, groupError )
{ var self = this;this.form = f; this.errorMode = errorMode; this.groupError = groupError; this.errors = new Array(); this.validated = true; this.config = new fValConfig(); this.i18n = fvalidate.i18n; f.onreset = function()
{ var elem, i = 0; while ( elem = this.elements[i++] )
{ self.revertError( elem );}
}
addLabelProperties();
	//	Parses form and adds label properties to elements that have one specified
	function addLabelProperties()
	{
		//	Collect all label elements in form, init vars		
		if ( typeof f.getElementsByTagName == 'undefined' ) return;
		var labels = f.getElementsByTagName( "label" );
		var label, i = j = 0;
		var elem;

		//	Loop through labels retrieved
		while ( label = labels[i++] )
		{
			//	For Opera 6
			if ( typeof label.htmlFor == 'undefined' ) return;
			
			//	Retrieve element
			elem = f.elements[label.htmlFor];
			if ( typeof elem == 'undefined' )
			{	//	No element found for label, so skip this label and search for the next one
				continue;
				//self.devError( [label.htmlFor], 'noLabel' );
			}
			else if ( typeof elem.label != 'undefined' )
			{	//	label property already added
				continue;
			}
			else if ( typeof elem.length != 'undefined' && elem.length > 1 && elem.nodeName != 'SELECT' )
			{	//	For arrayed elements
				for ( j = 0; j < elem.length; j++ )
				{
					elem.item( j ).label = label;
				}
			}
			//	Regular label
			elem.label = label;
		}
	}		
}
fValidate.prototype._reset = function()
{ this.errors = new Array(); this.showErrors = new Array();}
fValidate.prototype.elementExists = function( elemName )
{ return Boolean( typeof this.form.elements[elemName] != 'undefined' );}
fValidate.prototype.throwError = function( args, which )
{ var elem = this.elem; if ( typeof elem.name == 'undefined' )
{ elem = elem[0];}
if ( elem.bok && this.isBlank() )
{elem.validated = true; return;}
if ( elem.cv )
{return;}
elem.validated = false; which = this.setArg( which, 0 ); args = this.setArg( args, [] ); emsgElem = ( typeof this.elem.getAttribute == "undefined" ) ?
this.elem[0]:
this.elem; if ( emsgElem.getAttribute( this.config.emsg ) )
{ var error = emsgElem.getAttribute( this.config.emsg );}
var error = this.translateMessage( args, this.i18n.errors[this.type][which] ); if ( this.groupError )
{ this.errors.push( {'elem':elem, 'msg': error} );}
else
{ this.showError( error, false, emsgElem ); var focusElem = ( typeof elem.fields != 'undefined' )?
elem.fields[0]:
elem; this.selectFocus( focusElem );}
}
fValidate.prototype.showError = function( emsg, last, elem )
{ var self = this, elem = this.setArg( elem, this.elem ), isHidden = Boolean( elem.type == 'hidden' ), label = ( isHidden ) ? null : elem.label || null, emsg = ( elem.getAttribute( this.config.emsg ) ) ? elem.getAttribute( this.config.emsg ).replace( /\\n/g, "\n" ) : emsg, errorClass = this.config.errorClass, singleCSS = this.config.useSingleClassNames; if ( typeof this.showErrors == 'undefined' ) this.showErrors = new Array(); switch( this.errorMode )
{ case 0 : alertError(); break; case 1 : inputError(); break; case 2 : labelError(); break; case 3 : appendError(); break; case 4 : boxError(); break; case 5 : inputError(); labelError(); break; case 6 : inputError(); appendError(); break; case 7 : inputError(); boxError(); break; case 8 : inputError(); alertError(); break; case 9 : labelError(); appendError(); break; case 10 : labelError(); boxError(); break; case 11 : labelError(); alertError(); break; case 12 : appendError(); boxError(); break; case 13 : appendError(); alertError(); break; case 14 : boxError(); alertError(); break; case 15 : inputError(); labelError(); appendError(); break; case 16 : inputError(); labelError(); boxError(); break; case 17 : inputError(); labelError(); alertError(); break; case 18 : inputError(); appendError(); boxError(); break; case 19 : inputError(); appendError(); alertError(); break; case 20 : inputError(); boxError(); alertError(); break; case 21 : labelError(); appendError(); boxError(); break; case 22 : labelError(); appendError(); alertError(); break; case 23 : appendError(); boxError(); alertError(); break; case 24 : inputError(); labelError(); appendError(); boxError(); break; case 25 : inputError(); labelError(); appendError(); alertError(); break; case 26 : inputError(); appendError(); boxError(); alertError(); break; case 27 : labelError(); appendError(); boxError(); alertError(); break; case 28 : inputError(); labelError(); appendError(); boxError(); alertError(); break;}
function alertError()
{ if ( self.groupError ) self.showErrors.push( emsg ); else alert( emsg ); if ( last ) alert( self.i18n.groupAlert + self.showErrors.join( "\n\n- " ) );}
function inputError()
{ if ( ( typeof elem.length != 'undefined' && elem.length > 1 && elem.nodeName != 'SELECT' ) || isHidden )
{ var subelem, i = 0; if(elem.fields)
{ while( subelem = ( isHidden ) ? elem.fields[i++] : elem.item( i++ ) )
{ if ( subelem.className != '' && singleCSS )
{ subelem.revertClass = subelem.className; subelem.className = errorClass;} else { self.addCSSClass( subelem, errorClass );}
}
}
}
else
{ if ( singleCSS )
{ elem.revertClass = elem.className; elem.className = errorClass;} else { self.addCSSClass( elem, errorClass );}
}
}
function labelError(){
	if ( label == null ) 
		return; 
	if ( self.config.useSingleClassNames ){ 
		label.className = errorClass;
	} 
	else { 
		self.addCSSClass( label, errorClass );
	}
	
}
function appendError()
{ if ( label == null || typeof label.innerHTML == 'undefined' ) return; if ( typeof label.original == 'undefined' )
label.original = label.innerHTML; label.innerHTML = label.original + " - " + emsg.toHTML();}
function boxError()
{ if ( typeof self.boxError == 'undefined' ) self.boxError = document.getElementById( self.config.boxError ); if ( self.boxError == null )
{ self.devError( [self.config.boxError], 'noBox' ); return;}
if ( typeof self.elem.name == 'undefined' || self.elem.name == "" )
{ self.devError( [self.elem[self.config.code]], 'missingName' ); return;}
var errorId = self.config.boxErrorPrefix + self.elem.name, errorElem; if ( errorElem = document.getElementById( errorId ) )
{ errorElem.firstChild.nodeValue = emsg.toHTML();}
else
{ errorElem = document.createHTMLElement( 'li', { id: errorId, 'innerHTML': emsg.toHTML(), title: self.i18n.boxToolTip } ); self.boxError.appendChild( errorElem ); errorElem.onclick = function()
{ var elem = self.form.elements[this.id.replace( self.config.boxErrorPrefix, "" )]; if ( typeof elem.fields != 'undefined' ) elem = elem.fields[0]; if ( typeof elem.select != 'undefined' ) elem.select(); if ( typeof elem.focus != 'undefined' ) elem.focus();}
}
self.boxError.style.display = "block";}
}
fValidate.prototype.removeCSSClass = function( elem, className )
{ elem.className = elem.className.replace( className, "" ).trim();}
fValidate.prototype.addCSSClass = function( elem, className )
{ this.removeCSSClass( elem, className ); elem.className = ( elem.className + " " + className ).trim();}
fValidate.prototype.showGroupError = function()
{ for ( var error, firstElem, i = 0; ( error = this.errors[i] ); i++ )
{ if ( i == 0 ) firstElem = error.elem; this.elem = error.elem; this.showError( error.msg, Boolean( i == ( this.errors.length - 1 ) ) );}
var focusElem = ( typeof firstElem.fields != 'undefined' )?
firstElem.fields[0]:
firstElem; this.selectFocus( focusElem );}
fValidate.prototype.revertError = function( elem )
{ elem = this.setArg( elem, this.elem ); var isHidden = Boolean( elem.type == 'hidden' ), errorClass = this.config.errorClass, i = 0, errorElem, subelem; if ( ( typeof elem.length != 'undefined' && elem.length > 1 && elem.nodeName != 'SELECT' ) || isHidden )
{ if ( isHidden && typeof elem.fields != 'undefined' )
{ while( subelem = ( isHidden ) ? elem.fields[i++] : elem.item( i++ ) )
{ if ( typeof subelem.revertClass != 'undefined' )
{ subelem.className = subelem.revertClass;}
}
}
} else { if ( this.config.useSingleClassNames )
{ if ( typeof subElement.revertClass != 'undefined' )
{ elem.className = elem.revertClass;}
} else { this.removeCSSClass( elem, errorClass );}
}
if ( typeof elem.label != 'undefined' )
{ if ( this.config.useSingleClassNames )
{ elem.label.className = '';} else { this.removeCSSClass( elem.label, errorClass );}
elem.label.innerHTML = ( elem.label.original || elem.label.innerHTML );}
if ( typeof this.boxError != 'undefined' )
{ if ( typeof this.boxError.normalize != 'undefined' ) this.boxError.normalize(); if ( errorElem = document.getElementById( this.config.boxErrorPrefix + elem.name ) )
{ this.boxError.removeChild( errorElem );}
if ( this.boxError.childNodes.length == 0 ) this.boxError.style.display = "none";}
}
fValidate.prototype.selectFocus = function( elem )
{
if (elem.onfocus) elem.onfocus();
/* disabled due to IE disfunctionality
 if(elem.type != 'hidden')
{ if ( typeof elem.select != 'undefined' ) {elem.select();} if ( typeof elem.focus != 'undefined' ) elem.focus();}}*/
}
fValidate.prototype.typeMismatch = function()
{ var pats = { 'text': 'text|password|textarea|hidden', 'ta': 'textarea', 'hidden': 'hidden', 's1': 'select-one', 'sm': 'select-multiple', 'select': 'select-one|select-multiple', 'rg': 'radio', 'radio': 'radio', 'cb': 'checkbox', 'file': 'file'
}; var fail = false, expected = new Array(), result = key = type = regex = ""; for ( var i = 0; i < arguments.length; i++ )
{ type = pats[arguments[i]]; regex = new RegExp( type ); result += ( regex.test( this.elem.type ) ) ? "1" : "0"; key += "0"; expected.push( type );}
if ( key ^ result == 0 )
{ this.devError( [this.elem.fName, this.elem.type, expected.join( "|" ).replace( /\|/g, this.i18n.or )], 'mismatch' ); this.elem.validated = false; return true;}
return false;}
fValidate.prototype.getValue = function( elem )
{ switch ( elem.type )
{ case 'text' :
case 'password' :
case 'textarea' :
case 'hidden' :
case 'file' :
return elem.value; case 'radio':
case 'select-single':
if ( typeof elem.length == 'undefined' )
{ return elem.value;} else { for ( var i = 0; i < elem.length; i++ )
{ choice = ( elem.type == 'radio' ) ? "checked" : "selected"; if ( elem[i][choice] )
{ return elem[i].value;}
}
}
case 'select-multiple' :
case 'checkbox' :
if ( typeof elem.length == 'undefined' )
{ return elem.value
} else { var returnValues = new Array(); for ( var i = 0; i < elem.length; i++ )
{ choice = ( elem.type == 'checkbox' ) ? "checked" : "selected"; if ( elem[i][choice] )
{ returnValues.push( elem[i].value );}
}
return returnValues;}
default: return null;}
}
fValidate.prototype.setArg = function( arg, def )
{ return ( typeof arg == 'undefined' || arg == '' || arg == null ) ? def : arg;}
fValidate.prototype.isBlank = function( el )
{ var elem = this.form.elements[el] || this.elem; return Boolean( /^\s*$/.test( elem.value ) );}
fValidate.prototype.translateMessage = function( args, format )
{ var msg = ""
for ( var i = 0; i < format.length; i++ )
{ msg += ( typeof format[i] == 'number' ) ? args[format[i]] : format[i];}
return msg;}
fValidate.prototype.devError = function( args, which )
{ if ( typeof args == 'string' )
{ which = args; args = [];}
which = this.setArg( which, this.type ); var format = this.i18n.devErrors[which]; var a = [ this.i18n.devErrors.lines[0], '----------------------------------------------------------------------------------------------', this.translateMessage( args, format ), '----------------------------------------------------------------------------------------------', this.i18n.devErrors.lines[1] ]; alert( a.join( "\n" ) );}
fValidate.prototype.paramError = function( param, elemName )
{ elemName = this.setArg( elemName, this.elem.name ); this.devError( [param, this.type, elemName], 'paramError' );}
document.createHTMLElement = function( elemName, attribs )
{ if ( typeof document.createElement == 'undefined' ) return; var elem = document.createElement( elemName ); if ( typeof attribs != 'undefined' )
{ for ( var i in attribs )
{ switch ( true )
{ case ( i == 'text' ) : elem.appendChild( document.createTextNode( attribs[i] ) ); break; case ( i == 'class' ) : elem.className = attribs[i]; break; default : elem.setAttribute( i, '' ); elem[i] = attribs[i];}
}
}
return elem;}
Array.prototype.reduce = function( b, e )
{ var a = new Array(); var count = 0; for ( var i = b; i < this.length - e; i++ )
{ a[count++] = this[i];}
return a;}
Array.prototype.toArgString = function()
{ var a = new Array(); for ( var i = 0; i < this.length; i++ )
{ a.push( "'" + this[i] + "'" );}
return a.toString();}
if ( typeof Array.push == 'undefined' )
Array.prototype.push = function()
{ var arg, i = 0; while( arg = arguments[i++] )
{ this[this.length] = arg;}
return this.length;}
Array.prototype.last = function()
{ return this[this.length-1];}
String.prototype.format = function()
{ return this.replace( /\_/g, " ").replace( /\[|\]/g, "" );}
String.prototype.toHTML = function()
{ return this.replace( /\n/g, "<br />" ).replace( /\t/g, "&nbsp;&nbsp;&nbsp;&nbsp;" );}
String.prototype.trim = function()
{ return this.replace( /^\s+|\s+$/, "" );}
String.prototype.toPattern = function()
{ return this.replace( /([\.\*\+\{\}\(\)\<\>\^\$\\])/g, "\\$1" );}
function fValConfig()
{
	/*	Globals.  Modify these to suit your setup
	------------------------------------------- */
		
	//	Attribute used for fValidate Validator codes
	this.code = 'alt';
	
	//	Attribute used for custom error messages (override built-in error messages)
	this.emsg = 'msg';
	
	//	Attribute used for pattern with custom validator type
	this.pattern = 'pattern';
	
	//	Change this to the classname you want for the error highlighting
	this.errorClass = 'error';

	//	If you wish fValidate to use only single classNames for errors
	this.useSingleClassNames = false; // or true
	
	//	This is the even that triggers the clearing of the errorClass hilighting
	this.clearEvent = 'change'; // 'change' | 'blur' | null
	
	//	For browsers that don't support attachEvent or addEventListere - override existing events for error reverting?
	this.eventOverride = false;
	
	//	If the bConfirm flag is set to true, the users will be prompted with CONFIRM box with this message
	//	See your language file for this value
	this.confirmMsg = fvalidate.i18n.config.confirmMsg;
	
	//	If user cancels CONFIRM, then this message will be alerted.  If you don't want this alert to show, then
	//	empty the variable (  this.confirmAbortMsg = '';  )
	//	See your langauge file for this value
	this.confirmAbortMsg = fvalidate.i18n.config.confirmAbortMsg;
	
	//	Enter the name/id of your form's submit button here.  Can be a string or array of strings
	this.submitButton = ['submit','Submit','Submit2'];
	
	//	Enter the name/id of your form's reset button here
	this.resetButton = 'Reset';
	
	//	Ender the name or id of the SELECT object here. Make sure you pay attention to the values (CC Types)
	//	used in the case statement for the function validateCC()
	this.ccType = 'Credit_Card_Type';
	
	//	NOTE: The config value below exists for backwards compatibility with fValidate 3.55b.  If you have a newer 
	//	version, use the above this.ccType instead.
	//	Enter the DOM name of the SELECT object here. Make sure you pay attention to the values (CC Types)
	//	used in the case statement for the function validateCC()
	this.ccTypeObj = 'form1.Credit_Card_Type';
	
	//	Element where box errors will appear
	this.boxError = 'errors';
	
	//	Prefix given to all error paragraphs in box error mode
	this.boxErrorPrefix = 'fv_error_';
}
//	EOF
fValidate.prototype.blank = function()
{
	if ( this.typeMismatch( 'text' )) return;
	if ( this.isBlank() )
	{
		this.throwError( [this.elem.fName] );
	}
}

fValidate.prototype.email = function( level )
{
	if ( this.typeMismatch( 'text' ) ) return;
	if ( typeof level == 'undefined' ) level = 2;
	var emailPatterns = [
		/.+@.+\..+$/i,
		/^\w.+@\w.+\.[a-z]+$/i,
		/^\w[-_a-z0-9~.]+@\w[-_a-z0-9~.]+\.[a-z]{2}[a-z]*$/i,
		/^\w[\w\d]*([-_\.~][\w\d]+)*@\w[\w\d]+(\.[\w\d]+)*\.[a-z]{2,7}$/i
		];
	if ( ! emailPatterns[level].test( this.elem.value ) )
	{
		this.throwError();
	}	
}

fValidate.prototype.length = function( len, maxLen )
{
	if ( this.typeMismatch( 'text' ) ) return;
	var vlen = this.elem.value.length;
	len		= Math.abs( len );
	maxLen	= Math.abs( this.setArg( maxLen, Number.infinity ) );
	if ( len > maxLen )
	{
		this.devError( [len, maxLen, this.elem.name] );
		return;
	}
	if ( len > parseInt( vlen, 10 ) )
	{
		this.throwError( [this.elem.fName, len] );
	}	
	if ( vlen > maxLen )
	{
		this.throwError( [this.elem.fName, maxLen, vlen], 1 );
	}
}

/*********************************************************
*
*--	fValidate US-English language file.
*
*	Translation by: Peter Bailey
*	Email: me@peterbailey.net
*
*	Visit http://www.peterbailey.net/fValidate/api/i18n/
*	for additional translations and instructions on
*	making your own translation.
*
*	!!! WARNING !!! Changing anything but the literal 
*	strings will likely cause script failure!
*
*	Note: This document most easily read/edited with tab-
*	spacing set to 4
*
*********************************************************/

if ( typeof fvalidate == 'undefined' )
{
	var fvalidate = new Object();
}

fvalidate.i18n =
{
	//	Validation errors
	errors:
	{
		blank:		[
			["Please enter ", 0]
			],
		length:		[
			[0, " must be at least ", 1, " characters long"],
			[0, " must be no more than ", 1, " characters long.\nThe current text is ", 2, " characters long."]
			],
		equalto:	[
			[0, " must be equal to ", 1]
			],
		number:		[
			["The number you entered for ", 0, " is not valid"]
			],
		numeric:	[
			["Only numeric values are valid for the ", 0],
			["A minimum of ", 0, " numeric values are required for the ", 1]
			],
		alnum:		[
			["The data you entered, \"", 0, "\", does not match the requested format for ", 1,  
			"\nMinimum Length: ", 2,
			"\nCase: ", 3,
			"\nNumbers allowed: ", 4,
			"\nSpaces allowed: ", 5,
			"\nPunctuation characters allowed: ", 6, "\n"]
			],
		decimal:	[
			["The data you entered,", 0, " is not valid.  Please re-enter the ", 1]
			],
		decimalr:	[
			[0, " is not a valid. Please re-enter."]
			],
		ip:			[
			["Please enter a valid IP"],
			["The port number you specified, ", 0, ",  is out of range.\nIt must be between ", 1, " and ", 2]
			],
		ssn:		[
			["You need to enter a valid Social Security Number.\nYour SSN must be entered in 'XXX-XX-XXXX' format."]
			],
		money:		[
			[0, " does not match the required format of ", 1]
			],
		cc:			[
			["The ", 0, " you entered is not valid. Please check again and re-enter."]
			],
		ccDate:		[
			["You credit card has expired! Please use a different card."]
			],
		zip:		[
			["Please enter a valid 5 or 9 digit Zip code."]
			],
		phone:		[
			["Please enter a valid phone number plus Area Code."],
			["Please enter a valid phone number - seven or ten digits."]
			],
		email:		[
			["Please enter a valid email address"]
			],
		url:		[
			[0, " is not a valid domain"]
			],
		date:		[
			["The data entered for ", 0, " is not a valid date\nPlease enter a date using the following format: ", 1],
			["Date must be before ", 0],
			["Date must be on or before ", 0],
			["Date must be after ", 0],
			["Date must be on or after ", 0]
			],
		select:		[
			["Please select a valid option for ", 0]
			],
		selectm:	[
			["Please select between ", 0, " and ", 1, " options for ", 2, ".\nYou currently have ", 3, " selected"]
			],
		selecti:	[
			["Please select a valid option for ", 0]
			],
		checkbox:	[
			["Please check ", 0, " before continuing"],
			["Please select between ", 0, " and ", 1, " options for ", 2, ".\nYou currently have ", 3, " selected"]
			],
		radio:		[
			["Please check ", 0, " before continuing"],
			["Please select an option for ", 0 ]
			],
		comparison:	[
			[0, " must be ", 1, " ", 2]
			],
		stringcomparison:	[
			[0, " must be ", 1, " ", 2]
			],
		eitheror:	[
			["One and only one of the following fields must be entered:\n\t-", 0, "\n"]
			],
		atleast:	[
			["At least ", 0, " of the following fields must be entered:\n\t-", 1, "\n\nYou have only ", 2, " filled in.\n"]
			],
		allornone:	[
			["All or none of the following fields must be entered and accurate:\n\t-", 0, "\nYou have only ", 1, " accurate field entered.\n"]
			],
		file:		[
			["The file must be one of the following types:\n", 0, "\nNote: File extension may be case-sensitive."]
			],
		custom:		[
			[0, " is invalid."]
			],
		cazip:		[
			["Please enter a valid postal code."]
			],
		ukpost:		[
			["Please enter a valid postcode."]
			],
		germanpost:	[
			["Please enter a valid postcode."]
			],
		swisspost:	[
			["Please enter a valid postcode."]
			]
	},

	comparison:
	{
		gt:		"greater than",
		lt:		"less than",
		gte:	"greater than or equal to",
		lte:	"less than or equal to",
		eq:		"equal to",
		neq:	"not equal to"
	},

	//	Developer assist errors
	devErrors:
	{
		number:		["The lower-bound (", 0, ") is greater than the upper-bound (", 1, ") on this element: ", 2],
		length:		["The minimum length (", 0, ") is greater than the maxiumum legnth (", 1, ") on this element: ", 2],
		cc:			["Credit Card type (", 0, ") not found."],

		lines:		["! WARNING ! -- fValidate developer-assist error\n", "\nIf you are not the developer, please contact the website administrator regarding this error."],
		paramError: ["You must include the '", 0, "' parameter for the '", 1, "' validator type on this field: ", 2],
		notFound:	["The validator '", 0, "' was not found.\nRequested by: ", 1],
		noLabel:	["No element found for label: ", 0],
		noBox:		["An element with the requested id '", 0, "' was not found for the 'boxError' config value."],
		missingName:["The hidden input calling the following logical validator must have a valid name\nattribute when used in conjunction with the 'box' error-type.\n\t", 0],
		mismatch:	["Validator/Element type mismatch.\n\nElement: ", 0, "\nElement type: ", 1, "\nType required by validator: ", 2],
		noCCType:	["You must include a SELECT item with Credit Card type choices!"]
	},

	//	Config values
	config :
	{
		confirmMsg :		"Your data is about to be sent.\nPlease click 'Ok' to proceed or 'Cancel' to abort.",
		confirmAbortMsg :	"Submission cancelled.  Data has not been sent."
	},

	//	Tooltip attached to Box-item errors
	boxToolTip:	"Click to target field",

	//	Message displayed at top of alert error in group mode
	groupAlert:	"The following errors occured:\n\n- ",

	//	Literal translation of the English 'or', include padding spaces.
	or:			" or "
}