/***********************************************************************
 * YAV - Yet Another Validator  v1.4.1                                 *
 * Copyright (C) 2005-2008                                             *
 * Author: 																              *
 * WWW: http://yav.sourceforge.net                                     *
 ***********************************************************************/

// CHANGE THESE VARIABLES FOR YOUR OWN SETUP


//============================================================
// PERSONALIZZAZIONI x DISCOTECA LAZIALE
//------------------------------------------------------------

	//Separatore per il riconoscimento dell'ID delle ancore pannello degli errori personalizzato   
	ancorFieldToken = '_';     //separatore
   ancorFieldName  = 'dlErr'; //prefisso ancora

	//Immagini del portale
	portlet_img_folder   = '/dl_fe/portlets/img'
	portlet_img_warning  = '<img align="absmiddle" border="0" src="'+portlet_img_folder+'/messagebox_warning.png">'
	portlet_img_info     = '<img align="absmiddle" border="0" src="'+portlet_img_folder+'/messagebox_info.png">'
	portlet_img_critical = '<img align="absmiddle" border="0" src="'+portlet_img_folder+'/messagebox_critical.png">'
	portlet_img_invalid  = '<img align="absmiddle" border="0" src="'+portlet_img_folder+'/invalid.gif">'

//------------------------------------------------------------



inputhighlight    = false;         // if you want yav to highligh fields with errors
multipleclassname = true;          // if you want to use multiple class names
inputclasserror   = 'inputError';  // classname you want for the error highlighting
inputclassnormal  = 'inputNormal'; // classname you want for your fields without highlighting
innererror        = 'innerError';  // classname you want for the inner html highlighting
errorsdiv         = 'errorsDiv';   // div name where errors will appear (or where jsVar variable is dinamically defined)
debugmode         = false;         // if you want yav to alert you for javascript errors (only for developers)
trimenabled       = true;          // if you want yav to trim the strings

// change these to set your own decimal separator and your date format
DECIMAL_SEP  =',';
THOUSAND_SEP = '.';
DATE_FORMAT  = 'dd-MM-yyyy';

// change to set your own rules based on regular expressions
alphabetic_regex = "^[A-Za-z]*$";
alphanumeric_regex = "^[A-Za-z0-9]*$";
alnumhyphen_regex = "^[A-Za-z0-9\-_]*$";
alnumhyphenat_regex = "^[A-Za-z0-9\-_@]*$";
alphaspace_regex = "^[A-Za-z0-9\-_ \n\r\t]*$";
email_regex = "^(([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}){0,1}$";

// change this to set your own rule separator
RULE_SEP = '|';

// change these strings for your own translation (do not change {n} values!)
HEADER_MSG = 'Dati non validi:';
FOOTER_MSG = 'Correggi e riprova.';
DEFAULT_MSG = 'I dati non sono validi.';
REQUIRED_MSG = 'Inserisci {1}.';
ALPHABETIC_MSG = '{1} non valido. Caratteri ammessi: A-Za-z';
ALPHANUMERIC_MSG = '{1} non valido. Caratteri ammessi: A-Za-z0-9';
ALNUMHYPHEN_MSG = '{1} non valido. Caratteri ammessi: A-Za-z0-9\-_';
ALNUMHYPHENAT_MSG = '{1} non valido. Caratteri ammessi: A-Za-z0-9\-_@';
ALPHASPACE_MSG = '{1} non valido. Caratteri ammessi: A-Za-z0-9\-_space';
MINLENGTH_MSG = '{1} deve essere lungo almeno {2} caratteri.';
MAXLENGTH_MSG = '{1} non deve essere lungo al massimo {2} caratteri.';
NUMRANGE_MSG = '{1} deve essere un numero in {2}.';
DATE_MSG = '{1} data non valida secondo il formato ' + DATE_FORMAT + '.';
NUMERIC_MSG = '{1} deve essere un numero.';
INTEGER_MSG = '{1} deve essere un intero';
DOUBLE_MSG = '{1} deve essere un numero decimale.';
REGEXP_MSG = '{1} non valido. Formato ammesso: {2}.';
EQUAL_MSG = '{1} deve essere uguale a {2}.';
NOTEQUAL_MSG = '{1} non deve essere uguale a {2}.';
DATE_LT_MSG = '{1} deve essere precedente a {2}.';
DATE_LE_MSG = '{1} deve essere non successiva a {2}.';
EMAIL_MSG = '{1} deve essere una e-mail valida.';
EMPTY_MSG = '{1} deve essere vuoto.';


