
$(function() {
	var contact = new FormValidator({
		formStructure 	: {
			"contacts.name" : {
				maxlength: 50,
				validators : [
				    { errorMsg : "error1", regEx : null } 
				]
			},
			"contacts.firstSurname" : {
				maxlength: 50,
				validators : [
				    { errorMsg : "error1", regEx : null } 
				]
			},
			"contacts.city" : {
				maxlength: 50,
				validators : [
				    { errorMsg : "error1", regEx : null } 
				]
			},
			"contacts.phone" : {
				maxlength: 50,
				validators : [
				    { errorMsg : "error1", regEx : null } 
				]
			},
			"contacts.mail" : {
				maxlength: 250,
				validators : [
			           { errorMsg : "error1", regEx : "email" } 
				]
			},
			"contacts.comment" : {
				validators : [
				    { errorMsg : "error1", regEx : null } 
				]
			}
		},
		langManager   	: {
			textos    	: {
				cat : {
					"contacts.name" : {
						error1 : "Has d'introduir el teu nom"
					},
					"contacts.firstSurname" : {
						error1 : "Has d'introduir el teu cognom"
					},
					"contacts.city" : {
						error1 : "Has d'introduir la teva ciutat"
					},
					"contacts.phone" : {
						error1 : "Has d'introduir el teu telèfon"
					},
					"contacts.mail" : {
						error1 : "Has d'introudir el teu correu"
					},
					"contacts.comment" : {
						error1 : "Has d'introduir el teu comentari"
					}
				}
			},
			idioma		: "cat"
		},
		formID			: "contact",
		errorClass		: "border-red"
	});
});
