OnlineReservations_FormName = "frmOnlineReservations";
var OnlineReservations_Field = new Array(
	{fieldName:"txtName",msg:"name",defVal:"Full Name", validate:true},
	{fieldName:"txtTelephone",msg:"telephone",defVal:"Telephone Number", validate:true},
	{fieldName:"txtEmail",msg:"e-mail",defVal:"E-mail Address", validate:true},
	{fieldName:"txtDateTime",msg:"date & time",defVal:"Date & Time", validate:true},
	{fieldName:"txtPeople",msg:"number of people",defVal:"# of People", validate:true},
	{fieldName:"txtDetails",msg:"other details",defVal:"Other details", validate:false}
);

function OnlineReservations_Submit() {
	return Form_Validate(OnlineReservations_FormName, OnlineReservations_Field);
};

function OnlineReservations_Focus(event) {
	Form_FieldFocus(event, OnlineReservations_Field);
};

function OnlineReservations_Blur(event) {
	Form_FieldBlur(event, OnlineReservations_Field);
};

function OnlineReservations_Events() {
	Form_AttachEvents(OnlineReservations_FormName, OnlineReservations_Field, OnlineReservations_Focus, OnlineReservations_Blur);
};

addEvent(window, "load", OnlineReservations_Events);
