
// 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
	},
	'firstname':{'l':'First Name','r':true,'f':'alpha','t':'t_first_name'},
	'lastname':{'l':'Last Name','r':true,'f':'alpha','t':'t_last_name'},
	'phone':{'l':'Telephone Number','r':true,'f':'phone','t':'t_telephone_number'},
	'email':{'l':'E-mail','r':true,'f':'email','t':'t_email'},
	'question':{'l':'General information','r':true,'t':'t_general_information'}
},

o_config = {
	'to_disable' : ['Submit', 'Reset'],
	'alert' : 1
}

// validator constructor call
var v = new validator('contact', a_fields, o_config);

