inputField.prototype = new inputField;

function inputField(id, display_name, input_type, required)
{
	this.id = id;
	this.display_name = display_name;
	this.input_type = input_type;
	this.required = required;
}





var showsecFields = Array();
var horseshowFields = Array();
var contactFields = Array();
var sectionFields = Array();
var classFields = Array();

/* show secretary details*/
function set_ShowsecFields()
{   
   //showsecRequired.push(new requiredField("db_Title", "Title", INPUT_ALPHANUM, false));
   /*
   showsecFields.push(new inputField("db_JobTitle", "Job Title", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_House", "House", INPUT_ALPHANUM, true));   
   showsecFields.push(new inputField("db_FirstName", "First Name", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_LastName", "Last Name", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_House", "House",INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Address1", "Address 1",INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Address2", "Address 2",INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Address3", "Address 3",INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Town", "Town", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_County", "County",INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_PostCode", "Postcode", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Phone", "Phone", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Mobile", "Mobile", INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Email", "Email",INPUT_ALPHANUM, true));
   showsecFields.push(new inputField("db_Email_Retype", "Confirm email", INPUT_ALPHANUM, true));   
   */
}

/*showsec entering horseshow*/
function set_HorseshowFields()
{
   horseshowFields.push(new inputField("db_ShowName", "Name", INPUT_ALPHANUM, false));
   horseshowFields.push(new inputField("db_ShowGround", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Address1", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Address2", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Address3", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Town", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_County", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_PostCode", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_FirstDay", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_LastDay", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_ClosingDate_Online", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_ClosingDate_Postal", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_EntriesOnDay", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_EntriesOnDayFee", "", INPUT_DECIMAL, false ));
   horseshowFields.push(new inputField("db_ShowJumping int", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_ClosingDate_ShowJumping_Online", "", INPUT_ALPHANUM , false));
   horseshowFields.push(new inputField("db_ClosingDate_ShowJumping_Postal", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_ShowJumping_EntriesOnDay", "", INPUT_ALPHANUM , false));
   horseshowFields.push(new inputField("db_ShowJumping_EntriesOnDayFee", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_BankName", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_AccountName", "", INPUT_ALPHANUM, false));
   horseshowFields.push(new inputField("db_AccountNumber", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_SortCode", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Charity", "", INPUT_ALPHANUM, false));
   horseshowFields.push(new inputField("db_CharityNumber", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_VAT int", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_VATNumber", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Membership", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_MembershipOption1", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_MembershipOption2", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_MembershipOption3", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_MembershipPrice1", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_MembershipPrice2", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_MembershipPrice3", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_MembershipDiscount1", "", INPUT_INTEGER, false ));
   horseshowFields.push(new inputField("db_MembershipDiscount2", "", INPUT_INTEGER, false ));
   horseshowFields.push(new inputField("db_MembershipDiscount3", "", INPUT_INTEGER, false ));
   horseshowFields.push(new inputField("db_FirstAid", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_FirstAidPrice", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_Catalogue", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_CataloguePrice", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_Stabling", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_AccomodationDay_Pony", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationDay_Stallion", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationDay_MareFoal", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationDay_Horse", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationDay_HeavyHorse", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationShow_Pony", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationShow_Stallion", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationShow_MareFoal", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationShow_Horse", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_AccomodationShow_HeavyHorse", "", INPUT_DECIMAL, false));
   horseshowFields.push(new inputField("db_DeclareMessage", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Declare_ContactName", "", INPUT_ALPHANUM, false ));
   horseshowFields.push(new inputField("db_Declare_Phone", "", INPUT_ALPHANUM, false ));
 }


/*showsec entering show contacts*/
function set_ContactFields()
{
	contactFields.push(new inputField("db_JobTitle", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_FirstName", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_LastName", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Phone", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Mobile", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Email", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Title2", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_JobTitle2", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_FirstName2", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_LastName2", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Phone2", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Mobile2", "", INPUT_ALPHANUM, false ));
	contactFields.push(new inputField("db_Email2", "", INPUT_ALPHANUM, false ));
}

/*showsec entering show sections*/
function set_SectionFields()
{
	sectionFields.push(new inputField("db_Name", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Description", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Fee", "", INPUT_DECIMAL, false));
	sectionFields.push(new inputField("db_Date", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_StartTime ", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Ring", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_RingJudge", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_RingJudgeCounty", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_ConfirmationJudge", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_ConfirmationJudgeCounty", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Prize1", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Prize2", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Prize3", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Prize4", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Prize5", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_Prize6", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_PrizeChampion", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_PrizeReserveChampion", "", INPUT_ALPHANUM, false ));
	sectionFields.push(new inputField("db_PrizeRequiredEntrants", "", INPUT_INTEGER, false ));
}

/*showsec entering show classes*/
function set_ClassFields()
{
	classFields.push(new inputField("db_Name", "", INPUT_ALPHANUM, false ));
	classFields.push(new inputField("db_Number", "", INPUT_ALPHANUM, false ));
	classFields.push(new inputField("db_Title", "", INPUT_ALPHANUM, false ));
	classFields.push(new inputField("db_Sponsor", "", INPUT_ALPHANUM, false ));
	classFields.push(new inputField("db_Info", "", INPUT_ALPHANUM, false ));
	classFields.push(new inputField("db_Qualifiers", "", INPUT_ALPHANUM, false ));
}



