﻿//VerifyForm messages v1.6 (English).

//Global variables - (do not edit).
VFh = "<span class='TextHeadline'>", VFr = "<span class='TextRegular'>", VFb = "<span class='TextBold'>", VFf = "<span class='TextFooter'>", VFs = "</span>";

//................................................ edit the quoted text below ...........................................
//Window chrome for the Error Window.
function VFWindowChrome() {return ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no";}

//One submission only Alert.
function VFmessSubmit(){alert("You have already clicked the Submit button.\nPlease refresh or reload this page to submit again.");}

//Bad Form name Alert.
function VFmessFormName() {alert("The Form Name used in VerifyForm and the one on your page must match (with NO spaces in the name)!");}

//Bad Field name Alert.
function VFmessFieldName(action, i) {alert("'" + action[i] + "' does not match the Field Name used in your Form.");}
//.....................................................................................
//Error message window title.
function VFmessTitle() {return "Form Errors!";}

//Back text for error messages displayed in the same window.
function VFmessBack() {return VFb + "Return to the Form" + VFs;}

//Close window text for error messages displayed in a new window.
function VFmessClose() {return VFb + "Close this window" + VFs;}
//.....................................................................................
//Error notice heading.
function VFmessErrorsFound() {return VFh + "Errors were found in your submission!<br>" + VFs;}

//Blank form message.
function VFmessBlank() {return VFr + "You have not entered any information. This form will not be sent." + VFs;}

//An entry is required message.
function VFmessRequired(action, i){return VFr + "Something must be entered in " + VFb + action[i+1] + VFs + " field.<br>" + VFs;}

//Please contact us message.
function VFmessContact1() {return VFf + "Please return to the form page and check your entries, <br>then submit the form again.<br>" + VFs;}
function VFmessContact2() {return VFf + "If you continue having problems, call the number on our web page." + VFs;}
//.....................................................................................
//Field function messages.
//Verify that a second field has also been filled.
function VFmess1(action, secField, i) {return VFr + "The " + VFb + action[i+1] + VFs + " and " + VFb + secField + VFs + " fields must both be filled in.<br>" + VFs;}
//Verify that this field contains letters only.
function VFmess2(action, i) {return VFr + "Only letters are allowed in the " + VFb + action[i+1] + VFs + " field.<br>" + VFs;}
//Verify that this field contains numbers only.
function VFmess3(action, i) {return VFr + "Only numbers & spaces are allowed in the " + VFb + action[i+1] + VFs + " field.<br>" + VFs;}
//Verify that this field contains exact number of characters.
function VFmess4(action, i) {return VFr + "The " + VFb + action[i+1] + VFs + " field must have exactly " + action[i+3] + " characters.<br>" + VFs;}
//Verify maximum number of characters.
function VFmess5(action, i) {return VFr + "The " + VFb + action[i+1] + VFs + " field must have no more than " + action[i+3] + " characters.<br>" + VFs;}
//Verify maximum number of words.
function VFmess6(action, i) {return VFr + "The " + VFb + action[i+1] + VFs + " field must have no more than " + action[i+3] + " words.<br>" + VFs;}
//Verify minimum number of characters.
function VFmess7(action, i) {return VFr + "The " + VFb + action[i+1] + VFs + " field must have at least " + action[i+3] + " characters.<br>" + VFs;}
//Verify minimum number of words.
function VFmess8(action, i) {return VFr + "The " + VFb + action[i+1] + VFs + " field must have at least " + action[i+3] + " words.<br>" + VFs;}
//Verify that this field is an exact match of another field.
function VFmess9(action, i) {return VFr + "Your entry in the " + VFb + action[i+1] + VFs + " field is not correct.<br>" + VFs;}
//Verify that this field is an exact match in the qualifying value field.
function VFmess10(action, i) {return VFr + "Your entry in the " + VFb + action[i+1] + VFs + " field is not correct.<br>" + VFs;}
//Verify that the qualifying field is found somewhere in the this entry.
function VFmess11(action, i) {return VFr + "Your entry in the " + VFb + action[i+1] + VFs + " field is not correct.<br>" + VFs;}
//Verify that a value in the external list is found somewhere in the this entry.
function VFmess12(action, i) {return VFr + "Your entry in the " + VFb + action[i+1] + VFs + " field is not correct.<br>" + VFs}
//Error in First AND Last name.
function VFmess14(action, i) {return VFr + "Enter your " + VFb + "First & Last Name" + VFs + " in the " + VFb + action[i+1] + VFs + " field.<br>" + VFs;}
//Formatting error in E-mail format.
function VFmess15(action, i) {return VFr + "The " + VFb + "E-mail address" + VFs + " in the " + VFb + action[i+1] + VFs + " field is not properly formatted.<br>" + VFs;}
//Formatting error in URL format.
function VFmess16(action, i) {return VFr + "The " + VFb + "URL address" + VFs + " in the " + VFb + action[i+1] + VFs + " field is not properly formatted.<br> + VFs";}

//Numeric error.
function VFmess2125(action, i) {return VFr + "The " + VFb + "Number" + VFs + " entered in the " + VFb + action[i+1] + VFs + " field is not correct.<br>" + VFs;}

//Selection error.
function VFmess2126(action, i) {return VFr + "A " + VFb + "Selection" + VFs + " must be made in the " + VFb + action[i+1] + VFs + ".<br>" + VFs;}

//Formatting error in credit card number, phone number, date.
function VFmessFormating(action, i) {return VFr + "Your entry in the " + VFb + action[i+1] + VFs + " field has not been properly entered.<br>" + VFs;}

//Profanity message.
function VFmessProfan(action, fieldDescr) {return VFr + "You have entered inappropriate information in the " + VFb + fieldDescr + VFs + " field.<br>" + VFs;}
