// JavaScript Document for reservation
// form fields description structure
var a_fields = {
	'name': {
		'l': 'Name',  // label
		'r': false,    // required
		'f': 'alpha',  // format (see below)
		't': 't_name',// id of the element to highlight if input not validated
		
		'm': null,     // must match specified form field
		'mn': 3,       // minimum length
		'mx': 50       // maximum length
	},
	'store_name':{'l':'Store Name','r':true,'f':'alpha','t':'t_store_name'},
	'address':{'l':'Address','r': true,'t':'t_address'},
	'phone':{'l':'Phone','r': true,'t':'t_phone'},
	'fax':{'l':'Fax','r': false,'t':'t_fax'},
	'email':{'l':'Email','r':true,'f':'email','t':'t_email'},
	'website':{'l':'Website','r': false,'t':'t_website'},
	'other':{'l':'Other Message','r':false,'t':'t_other'}
},

o_config = {
	'to_disable' : ['Submit', 'Reset'],
	'alert' : 1
}

// validator constructor call
var v = new validator('contact', a_fields, o_config);
