/***********************************************************************
 * YAV - Yet Another Validator  v1.3.7                                 *
 * Copyright (C) 2005-2006-2007                                        *
 * Author: Federico Crivellaro <f.crivellaro@gmail.com>                *
 * WWW: http://yav.sourceforge.net                                     *
 ***********************************************************************/

// CHANGE THESE VARIABLES FOR YOUR OWN SETUP

// if you want yav to highligh fields with errors
inputhighlight = false;
// classname you want for the error highlighting
inputclasserror = 'textboxerror';

// classname you want for your fields without highlighting
inputclassnormal = 'textboxcomments';
// classname you want for the inner html highlighting
innererror = 'textbox';
// div name where errors will appear (or where jsVar variable is dinamically defined)
errorsdiv = 'textbox';
// if you want yav to alert you for javascript errors (only for developers)
debugmode = true;
// if you want yav to trim the strings
trimenabled = true;

// change these to set your own decimal separator and your date format
DECIMAL_SEP ='.';
THOUSAND_SEP = ',';
DATE_FORMAT = 'MM/dd/yyyy';

// change these strings for your own translation (do not change {n} values!)
HEADER_MSG = 'Data not valid:';
FOOTER_MSG = 'Please retry.';
DEFAULT_MSG = 'The data is invalid.';
REQUIRED_MSG = 'Enter {1}.';
ABOVE_MSG = '{1} must be more than than {2}.';
ALPHABETIC_MSG = '{1} is not valid. Characters allowed: A-Za-z';
ALPHABETIC_SPC_MSG = '{1} is not valid. Characters allowed: A-Za-z and space';
ALPHANUMERIC_MSG = '{1} is not valid. Characters allowed: A-Za-z0-9';
ALNUMHYPHEN_MSG = '{1} is not valid. Characters allowed: A-Za-z0-9\-_';
ALNUMHYPHENAT_MSG = '{1} is not valid. Characters allowed: A-Za-z0-9\-_@';
ALPHASPACE_MSG = '{1} is not valid. Characters allowed: A-Za-z0-9\-_space';
BELOW_MSG = '{1} must be less than {2}.';
MINLENGTH_MSG = '{1} must be at least {2} characters long.';
MAXLENGTH_MSG = '{1} must be no more than {2} characters long.';
NUMRANGE_MSG = '{1} must be a number in {2} range.';
DATE_MSG = '{1} is not a valid date, using the format ' + DATE_FORMAT + '.';
NUMERIC_MSG = '{1} must be a number.';
INTEGER_MSG = '{1} must be an integer';
DOUBLE_MSG = '{1} must be a decimal number.';
REGEXP_MSG = '{1} is not valid. Format allowed: {2}.';
FILEEXT_MSG = 'Only {1} file(s) are allowed.';
EQUAL_MSG = '{1} must be equal to {2}.';
NOTEQUAL_MSG = '{1} must be not equal to {2}.';
DATE_GT_MSG = '{1} must be greater to {2}.';
DATE_GE_MSG = '{1} must be greater or equal to {2}.';
DATE_LT_MSG = '{1} must be previous to {2}.';
DATE_LE_MSG = '{1} must be previous or equal to {2}.';
EMAIL_MSG = '{1} must be a valid e-mail.';
URL_MSG = '{1} must be a valid url. e.g. http://www.example.com';
EMPTY_MSG = '{1} must be empty.';

//function FocusSearch(e,buttonId)
// { 
// 
//     var browserName=navigator.appName; 
//        var unicode;
//          
//     if (browserName=="Microsoft Internet Explorer") 
//      unicode = window.event.keyCode;     //IE
//     else
//       unicode = e.which;     //firefox

//     if (unicode == '13') 
//     {
//     document.getElementById(buttonId).click();   
//        return false;  
//        }
//}
