(function($) { $.fn.validationEngineLanguage = function() {}; $.validationEngineLanguage = { newLang: function() { $.validationEngineLanguage.allRules = { "required":{ "regex":"none", "alertText":"This field is required.", "alertTextCheckboxMultiple":"Please select an option.", "alertTextCheckbox":"This checkbox is required."}, "length":{ "regex":"none", "alertText":"*Between ", "alertText2":" and ", "alertText3": " characters allowed"}, "maxCheckbox":{ "regex":"none", "alertText":"* Checks allowed Exceeded"}, "minCheckbox":{ "regex":"none", "alertText":"* Please select ", "alertText2":" options"}, "confirm":{ "regex":"none", "alertText":"" }, "firstname": { "alertText":"Please enter your first name." }, "lastname": { "alertText":"Please enter your last name." }, "email":{ "regex": /^([A-Za-z0-9_\-\.\'])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,6})$/, "alertText":"Please enter a valid email address.", "alertTextInvalid":"Please enter a valid email address." }, "phone":{ "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/, "alertText":"Please enter a valid phone number.", "alertTextInvalid":"Please enter a valid phone number." }, "country":{ "alertText":"Please Select A Country" }, "language":{ "alertText":"Please select a preferrence language of reply." }, "addProducts":{ "alertText":"Please select at least one product." }, "pdtCategory":{ "alertText":"Please select a product category." }, "company":{ "alertText":"Please enter your company name." }, "pdtNeedBy":{ "alertText":"Please indicate when the products to be need." }, "quantity":{ "regex":"^\\d{1,4}$", "alertText":"Please enter a quantity.", "alertTextInvalid":"Please enter a valid quantity." }, "corpSaleCmt":{ "alertText":"Please enter your comments." }, "orderNumber":{ "alertText":"Please enter your order number." }, "websiteAddress":{ "alertText":"Please enter the your website address, or the name of your publication." }, "validwebsiteAddress":{ "alertText":"Please enter a valid website address." }, "RMANumber":{ "alertText":"Please enter your RMA number." }, "personID":{ "alertText":"Please enter person ID." }, "addressLine1":{ "alertText":"Please enter address line1." }, "addressLine2":{ "alertText":"Please enter address line2." }, "postCode":{ "alertText":"Please enter address postcode." }, "vat":{ "alertText":"Please enter VAT Number." }, "technicalPassword":{ "alertText":"Please enter your Creative Store password." }, "technicalProducts":{ "alertText":"Please select at least one product." }, "firmwareVersion":{ "alertText":"Please enter firmware version." }, "operatingSystem":{ "alertText":"Please enter operating system version." }, "deviceConnect":{ "alertText":"Please select device connect." }, "inquiryType":{ "alertText":"Please select the type of enquiry." }, "detailDesc":{ "alertText":"Please enter a detailed description of your enquiry." }, "serialNumber":{ "alertText":"Please enter serial number." }, "receiveWrongCmts":{ "alertText":"Please enter your comments." }, "purpose":{ "alertText":"Are The Products For Resale Purposes?" }, "comments":{ "alertText":"Please enter your comments." }, "cancelReason":{ "alertText":"Please select a cancel reason." } } } } })(jQuery); $(document).ready(function() { $.validationEngineLanguage.newLang(); });