
// form fields description structure
var a_fields = {
/*	'title': {
		'l': 'Title',  // label
		'r': false,    // required
		'f': 'alpha',  // format (see below)
		't': 't_title',// id of the element to highlight if input not validated

		'm': null,     // must match specified form field
		'mn': 2,       // minimum length
		'mx': 10       // maximum length
	},*/
	'cliente_tipo':{'l':'Pessoa Física/Pessoa Jurídica','r':true},
	'cliente_nome':{'l':'Nome Completo/Razão Social','r':true},
	'cliente_documento':{'l':'CPF/CNPJ','r':true},
	'cliente_fone':{'l':'Telefone','r':true},
	'cliente_email':{'l':'E-Mail','r':true,'f':'email'},
	'cliente_end_logradouro':{'l':'Endereço','r':true},
	'cliente_end_num':{'l':'Número','r':true},
	'cliente_cidade':{'l':'Cidade','r':true},
	'cliente_cep':{'l':'CEP','r':true},
	'cliente_uf':{'l':'Estado','r':true}

},

o_config = {
	'to_disable' : ['Submit', 'Reset'],
	'alert' : 1
}

// validator constructor call
var v = new validator('cadastronovo', a_fields, o_config);

