//# Name                ValidateEN.js
//# Version             69.50 Multi-Language - English
//# Modified            02/11/2004 17:26
//# Copyright Rocktime Ltd/Kieron Matthews 2000 - 2004.
//# Not to be used in whole or part without written permission from Rocktime.


//################################################################################
//	Start English Language
//################################################################################

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageGeneral
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageGeneral(xGlobalErrors) {

		return 'Sorry, you have incorrectly filled in the form on this page and unfortunately you cannot continue until the errors are corrected.\n\nThe following fields were incorrectly filled:\n' + xGlobalErrors;

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessagePassword
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessagePassword(FirstPasswordfName, fName) {

		return FirstPasswordfName + ' must be the same as ' + fName + '.\nPlease enter both fields again!';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageTimeStamp
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageTimeStamp(fName){

		return fName + ' is not a valid timestamp\nPlease enter in the format DD/MM/YY(YY) hh:mm(:ss(.ms)) (AM/PM) 12 or 24 hour';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageTimeSS
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageTimeSS(fName){

		return fName + ' is not a valid time\nPlease enter in the format hh:mm(:ss(.ms)) (AM/PM) 12 or 24 hour!';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageList
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageList(fName){

		return 'Please select an item from the ' + fName + ' list.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageTel
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageTel(fName){

		return fName + ' is not a valid telephone number';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageNum
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageNum(fName){

		return fName + ' is not a valid number';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageCharBlank
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageCharBlank(fname){

		return fname + ' cannot be left blank.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageCharMax
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageCharMax(fname, fmax, plural){

		if (plural){
			return fname + ' must be a maximum length of ' + fmax + ' characters.';
		}
		else {
			return fname + ' must be a maximum length of ' + fmax + ' character.';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageCharMin
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageCharMin(fname, fmin, plural){

		if (plural){
			return fname + ' must be a minimum length of ' + fmin + ' characters.';
		}
		else {
			return fname + ' must be a minimum length of ' + fmin + ' character.';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageDate
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageDate(fname, isBlank){

		if (isBlank) {
			return fname + ' does not conform to UK date standard.\nPlease input date as DD/MM/YY(YY) or leave blank.';
		}
		else {
			return fname + ' does not conform to UK date standard.\nPlease input date as DD/MM/YY(YY).';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageDateDay
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageDateDay(fname, fDay, isBlank){

		if (fDay == '') {
			if (isBlank) {
				return 'Not a valid day for ' + fname + '\nPlease input date as DD/MM/YY(YY) or leave blank.';
			}
			else {
				return 'Not a valid day for ' + fname + '\nPlease input date as DD/MM/YY(YY)';
			}
		}
		else {
			if (isBlank) {
				return fDay + ' is not a valid day for ' + fname + '\nPlease input date as DD/MM/YY(YY) or leave blank.';
			}
			else {
				return fDay + ' is not a valid day for ' + fname + '\nPlease input date as DD/MM/YY(YY)';
			}
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageDateMonthBlank
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageDateMonth(fname, fMonth, isBlank){

		if (fMonth == '') {
			if (isBlank) {
				return 'Not a valid month for ' + fname + '\nPlease input date as DD/MM/YY(YY) or leave blank.';
			}
			else {
				return 'Not a valid month for ' + fname + '\nPlease input date as DD/MM/YY(YY)';
			}
		}
		else {
			if (isBlank) {
				return fMonth + ' is not a valid month for ' + fname + '\nPlease input date as DD/MM/YY(YY) or leave blank.';
			}
			else {
				return fMonth + ' is not a valid month for ' + fname + '\nPlease input date as DD/MM/YY(YY)';
			}
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageDateYearBlank
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageDateYear(fname, tDate, isBlank){

		if (tDate == '') {
			if (isBlank) {
				return 'Not a valid year for ' + fname + '\nPlease input date as DD/MM/YY(YY) or leave blank.';
			}
			else {
				return 'Not a valid year for ' + fname + '\nPlease input date as DD/MM/YY(YY)';
			}
		}
		else {
			if (isBlank) {
				return tDate + ' is not a valid year for ' + fname + '\nPlease input date as DD/MM/YY(YY) or leave blank.';
			}
			else {
				return tDate + ' is not a valid year for ' + fname + '\nPlease input date as DD/MM/YY(YY)';
			}
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageURLBlank
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageURL(fname, isBlank){

		if (isBlank) {
			return fname + ' is not a valid url.\nPlease input a valid url or leave blank.';
		}
		else {
			return fname + ' is not a valid url.\nPlease input a valid url.';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageEmailBlank
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageEmail(fname, isBlank){

		if (isBlank) {
			return fname + ' is not a valid email address.\nPlease input a valid email address or leave blank.';
		}
		else {
			return fname + ' is not a valid email address.\nPlease input a valid email address.';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageNumMin
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageNumMin(fname, fmin){

		return fname + ' must be a minimum value of ' + fmin + '.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessage
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageNumMax(fname, fmax){

		return fname + ' must be a maximum value of ' + fmax + '.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageNumGreater
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageNumGreater(fname, fmin){

		return fname + ' must be greater than a value of ' + fmin + '.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageNumLess
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageNumLess(fname, fmax){

		return fname + ' must be less than a value of ' + fmax + '.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageUID
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageUID(tmpName){

		return tmpName + ' is not a valid UID.';

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageCheckBoxMin
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageCheckBoxMin(TmpNumber, FriendlyName, FArray){

		if (TmpNumber > 1) {
			return 'Please tick at least ' + TmpNumber + ' options for ' + FriendlyName + '. You have ticked ' + FArray  + '.';
		}
		else {
			return 'Please tick at least ' + TmpNumber + ' option for ' + FriendlyName + '. You have ticked ' + FArray + '.';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageCheckBoxMax
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageCheckBoxMax(TmpNumber, FriendlyName, FArray){

		if (TmpNumber > 1) {
			return 'Please tick no more than ' + TmpNumber + ' options for ' + FriendlyName + '. You have ticked ' + FArray  + '.';
		}
		else {
			return 'Please tick no more than ' + TmpNumber + ' option for ' + FriendlyName + '. You have ticked ' + FArray + '.';
		}

	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ValidateMessageRadio
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	function ValidateMessageRadio(FriendlyName){

		return 'Please choose an option from ' + FriendlyName + '.';

	}

//################################################################################
//	End English Language
//################################################################################


