/**
 * Hform (regexp definition) by Fabrizio Calderan
 * http://www.fabriziocalderan.it/
 * Released under MIT-style License - Do not remove comments
 */

 _HForm.Regexp = {
    "codfis"        : /^[a-z]{6}\d{2}[a-z]\d{2}[a-z]\d{3}[a-z]$/i,
    "login"       : /^[0-9a-zA-Z]{6,15}$/,
    "username"      : /^[0-9a-zA-Z\@_\-\.]{6,}$/,
    "nick"		: /^[\w\d]{6,20}$/,
    "passwd"		: /^\w{6,20}$/,
    "name"        : /^([a-z\u0027\u00C0-\u00F6\u00F8-\u017E]{1,})(\s[a-z\u0027\u00C0-\u00F6\u00F8-\u017E]{1,})*$/i,
    "place"       : /^([a-z\d\.\u0027\u00C0-\u00F6\u00F8-\u017E]{1,})(\s[a-z\d\.\u0027\u00C0-\u00F6\u00F8-\u017E]{1,})*$/i,
    "street"      : /^([a-z0-9\.,\u0027\u00C0-\u00F6\u00F8-\u017E\s]+)$/i,
    "zip"         : /^[0-9]{4,5}$/i,
    "ccnum"       : /^\d{15}(\d{1})?$/i,
    "ccv2"        : /^\d{3,4}$/i,
    "numitem"     : /^(0|[1-9]\d{0,2})$/,
    "phone"    : /^(\+\d{1,3}(\s*|\-|\/|\.))?(\d{6,16}|\d{2,4}(\s*|\-|\/|\.)\d{4,9})$/,
    "email"       : /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)+(\.\w{2,4})+$/i,
    "text"        : /^.+$/,
    "optional"     : /^.*$/,
    "day"         : /^((0)?[1-9]|[12]\d|3[0-1])$/,
    "minutes"     : /^((0)?\d|[1-5]\d)$/,



    /* nuove espressioni regolari */

    "nome"          : /^[a-zA-Z\s]+$/,
    "cognome"       : /^[a-zA-Z\s]+$/,
    "indirizzo"     : /^.+$/,
    "citta"         : /^[a-zA-Z\s]+$/,

    /* spagna */
    "cif"           : /^\d{8}[a-zA-Z]$/,
    "nif"           : /^[a-zA-Z0-9]{9}$/,

    /* olanda */
    "zip_nl"        : /^\d{4}(\s)?[a-zA-Z]{2}$/,
    "phone_nl"      : /^\d{10}$/

}

