/**
@Function void ErrorMsg
	@Param String sKey
	@Param String sMessage
	Object to hold error messages
*/
function ErrorMsg(sKey, sMessage)
{
	this.key = sKey;
	this.message = sMessage;
}

//initialize the array
ErrorMsgArray = new Array();
NamedErrorMsgArray = new Array();

//populate the values
ErrorMsgArray[0] = new ErrorMsg("checkRequired","You did not complete the following required fields:");
ErrorMsgArray[1] = new ErrorMsg("checkLength","*NL*You can only enter up to *ValidationFormula* characters in the *FieldLabel* field.*NL*Your entry is too long.");
ErrorMsgArray[2] = new ErrorMsg("isAlphaNum","*NL*You must enter a value with only letters and/or numbers for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[3] = new ErrorMsg("isDate","*NL*You must enter a valid date in the following format ('mm/dd/yyyy') for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid date.");
ErrorMsgArray[4] = new ErrorMsg("isEmail","*NL*You must enter a valid E-Mail address for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[5] = new ErrorMsg("isFutureDate","*NL*You must enter a valid future date in the following format ('mm/dd/yyyy') for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid date or does not fall after your computer's current date:  '*CurrentDate*'.");
ErrorMsgArray[6] = new ErrorMsg("isInteger","*NL*You must enter a whole number for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[7] = new ErrorMsg("isMilitaryTime","*NL*You must enter a valid time in the following format ('hhmm') between '0000' and '2400' for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid military time.");
ErrorMsgArray[8] = new ErrorMsg("isNumber","*NL*You must enter a valid number; please do not include commas for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[9] = new ErrorMsg("isPastDate","*NL*You must enter a valid past date in the following format ('mm/dd/yyyy') for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid date or does not fall before your computer's current date:  '*CurrentDate*'.");
ErrorMsgArray[10] = new ErrorMsg("isTimeCardTime","*NL*You must enter a valid time in the following format ('hh:mm') between '1:00' and '12:45' for the *FieldLabel* field.*NL* The time must be on the quarter hour (e.g. xx:00, xx:15, xx:30 or xx:45)*NL*'*FieldValue*' is not a valid time.");
ErrorMsgArray[11] = new ErrorMsg("isTimeCardHours","*NL*You must enter a valid number in the following format ('x.xx') for the *FieldLabel* field.*NL* The value must represent quarter hours (e.g. x.25, x.5, x.75, x.0)*NL*'*FieldValue*' is not a valid entry.");
ErrorMsgArray[12] = new ErrorMsg("isUSPhone","*NL*You must enter a 10 digit phone number for the *FieldLabel* field.*NL* '*FieldValue*' is not a valid entry.");
ErrorMsgArray[13] = new ErrorMsg("isURL","*NL*You must enter a valid URL for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[14] = new ErrorMsg("checkNormalHours", "*NL*Aquent has many exciting job opportunities, but most - not all - of them are for people who can work full time.  There is  still a chance that we can help you find work, but we quickly wanted to let you know that it's a little unlikely.  Feel free, however, to complete your application and give it a shot.  The better you are, the more likely we can help you!*NL**NL*Click OK to continue . . ");
ErrorMsgArray[15] = new ErrorMsg("checkOnSite", "*NL*Aquent has many exciting job opportunities, but most - not all - of them are for people who can work on site.  There is  still a chance that we can help you find work, but we quickly wanted to let you know that it's a little unlikely.  Feel free, however, to complete your application and give it a shot.  The better you are, the more likely we can help you!*NL**NL*Click OK to continue . . ");
ErrorMsgArray[16] = new ErrorMsg("checkCountry", "*NL*Aquent has many exciting job opportunities, but most - not all - of them are for people who are already authorized to work in the country to which they are applying.  There is  still a chance that we can help you find work, but we quickly wanted to let you know that it's a little unlikely.  Feel free, however, to complete your application and give it a shot.  The better you are, the more likely we can help you!*NL**NL*Click OK to continue . . ");
ErrorMsgArray[17] = new ErrorMsg("isWithinRange", "*NL*You must enter a value between *0* and *1* for the *FieldLabel* field.  '*FieldValue*' is not a valid value for this field.*NL**NL*Click OK to continue . . ");
ErrorMsgArray[18] = new ErrorMsg("isCurrency","*NL*You must enter a currency amount; please do not include commas or more than two digits after the decimal point for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[19] = new ErrorMsg("isPercentage","*NL*You must enter a percentage for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
ErrorMsgArray[20] = new ErrorMsg("isTime","*NL*You must enter a valid time in the following format ('hh:mm') for the *FieldLabel* field.*NL* *NL*'*FieldValue*' is not a valid time.");

NamedErrorMsgArray["checkRequired"] = new ErrorMsg("checkRequired","You did not complete the following required fields:");
NamedErrorMsgArray["checkLength"] = new ErrorMsg("checkLength","*NL*You can only enter up to *ValidationFormula* characters in the *FieldLabel* field.*NL*Your entry is too long.");
NamedErrorMsgArray["isAlphaNum"] = new ErrorMsg("isAlphaNum","*NL*You must enter a value with only letters and/or numbers for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["isDate"] = new ErrorMsg("isDate","*NL*You must enter a valid date in the following format ('mm/dd/yyyy') for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid date.");
NamedErrorMsgArray["isEmail"] = new ErrorMsg("isEmail","*NL*You must enter a valid E-Mail address for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["isFutureDate"] = new ErrorMsg("isFutureDate","*NL*You must enter a valid future date in the following format ('mm/dd/yyyy') for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid date or does not fall after your computer's current date:  '*CurrentDate*'.");
NamedErrorMsgArray["isInteger"] = new ErrorMsg("isInteger","*NL*You must enter a whole number for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["isMilitaryTime"] = new ErrorMsg("isMilitaryTime","*NL*You must enter a valid time in the following format ('hhmm') between '0000' and '2400' for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid military time.");
NamedErrorMsgArray["isNumber"] = new ErrorMsg("isNumber","*NL*You must enter a valid number; please do not include commas for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["isPastDate"] = new ErrorMsg("isPastDate","*NL*You must enter a valid past date in the following format ('mm/dd/yyyy') for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid date or does not fall before your computer's current date:  '*CurrentDate*'.");
NamedErrorMsgArray["isTimeCardTime"] = new ErrorMsg("isTimeCardTime","*NL*You must enter a valid time in the following format ('hh:mm') between '1:00' and '12:45' for the *FieldLabel* field.*NL* The time must be on the quarter hour (e.g. xx:00, xx:15, xx:30 or xx:45)*NL*'*FieldValue*' is not a valid time.");
NamedErrorMsgArray["isTimeCardHours"] = new ErrorMsg("isTimeCardHours","*NL*You must enter a valid number in the following format ('x.xx') for the *FieldLabel* field.*NL* The value must represent quarter hours (e.g. x.25, x.5, x.75, x.0)*NL*'*FieldValue*' is not a valid entry.");
NamedErrorMsgArray["isUSPhone"] = new ErrorMsg("isUSPhone","*NL*You must enter a 10 digit phone number for the *FieldLabel* field.*NL* '*FieldValue*' is not a valid entry.");
NamedErrorMsgArray["isURL"] = new ErrorMsg("isURL","*NL*You must enter a valid URL for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["checkNormalHours"] = new ErrorMsg("checkNormalHours", "*NL*Aquent has many exciting job opportunities, but most - not all - of them are for people who can work full time.  There is  still a chance that we can help you find work, but we quickly wanted to let you know that it's a little unlikely.  Feel free, however, to complete your application and give it a shot.  The better you are, the more likely we can help you!*NL**NL*Click OK to continue . . ");
NamedErrorMsgArray["checkOnSite"] = new ErrorMsg("checkOnSite", "*NL*Aquent has many exciting job opportunities, but most - not all - of them are for people who can work on site.  There is  still a chance that we can help you find work, but we quickly wanted to let you know that it's a little unlikely.  Feel free, however, to complete your application and give it a shot.  The better you are, the more likely we can help you!*NL**NL*Click OK to continue . . ");
NamedErrorMsgArray["checkCountry"] = new ErrorMsg("checkCountry", "*NL*Aquent has many exciting job opportunities, but most - not all - of them are for people who are already authorized to work in the country to which they are applying.  There is  still a chance that we can help you find work, but we quickly wanted to let you know that it's a little unlikely.  Feel free, however, to complete your application and give it a shot.  The better you are, the more likely we can help you!*NL**NL*Click OK to continue . . ");
NamedErrorMsgArray["isWithinRange"] = new ErrorMsg("isWithinRange", "*NL*You must enter a value between *0* and *1* for the *FieldLabel* field.  '*FieldValue*' is not a valid value for this field.*NL**NL*Click OK to continue . . ");
NamedErrorMsgArray["isCurrency"] = new ErrorMsg("isCurrency","*NL*You must enter a currency amount; please do not include commas or more than two digits after the decimal point for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["isPercentage"] = new ErrorMsg("isPercentage","*NL*You must enter a percentage for the *FieldLabel* field.*NL*'*FieldValue*' is not a valid value for this field.");
NamedErrorMsgArray["isTime"] = new ErrorMsg("isTime","*NL*You must enter a valid time in the following format ('hh:mm') for the *FieldLabel* field.*NL* field *NL*'*FieldValue*' is not a valid time.");
