// Quicksilver Reservation
// http://bali-adventures.com/quicksilver

// JavaScript Document for reservation
// 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': 50       // maximum length
//	},

// begin personal detail
	'Title':{'l':'Title','r':true,'f':'alpha','t':'t_title'},
    'First_Name':{'l':'First Name','r':true,'f':'alpha','t':'t_first_name'},
	'Last_Name':{'l':'Last Name','r':true,'f':'alpha','t':'t_last_name'},
	'Address':{'l':'Address','r':true,'t':'t_address'},
	'City':{'l':'City','r':true,'f':'alpha','t':'t_city'},
	'State':{'l':'State','r':true,'f':'alpha','t':'t_state'},
	'Zip':{'l':'Zip','r':true,'f':'integer','t':'t_zip'},
	'Country':{'l':'Country','r':true,'t':'t_country'},
	'Phone':{'l':'Phone Number','r':true,'f':'phone','t':'t_phone'},
	'Fax':{'l':'Fax','r':false,'f':'phone','t':'t_fax'},
	'Email':{'l':'Email','r':true,'f':'email','t':'t_email'},
// end personal details

// begin cruise details
	'Cruise':{'l':'Cruise','r':true,'t':'t_cruise'},
	'Adult':{'l':'Adult','r':true,'f':'integer','t':'t_adult'},	
	'Children':{'l':'Children','r':true,'f':'integer','t':'t_children'},	
	'PickUp_Drop':{'l':'Pick Up and Drop','r':true,'f':'alpha','t':'t_pickup_drop'},
    'Cruise_Date':{'l':'Cruise Date','r':true,'t':'t_cruise_date'},
	'Arrival_Date':{'l':'Arrival Date','r':true,'t':'t_arrival_date'},
	'Hotel':{'l':'Hotel','r':true,'t':'t_hotel'},
	'Hotel_Room_Number':{'l':'Hotel Room Number','r':true,'t':'t_hotel_room_number'},
	'Hotel_Address':{'l':'Hotel Address','r':true,'t':'t_hotel_address'}
// end cruise details
},

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

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