//Lindisfarne-specific JavaScript routines.

//Override this function for school-specific fields.
function clearFields()
{}

//Override this function for school-specific checks.
//Return true if all ok, false otherwise.  Alert errors as necessary.
function checksOK()
{	return true;}


//Override this function.
//Must return an array of [ ['fieldname', 'fieldvalue'], ... ]
// Not including the product-related fields.
//
// Required fields: 
//'vendor_name' (eg. TJD0010)
//'payment_alert' (eg. mowbray.uniforms@permapleat.com.au)
//'payment_reference' (eg. 'mowbray')
//'gst_rate' (eg. '10')
//'gst_added' (eg. 'true')
function getFormArray()
{
	hid = new Array();
	hid[hid.length] = ['vendor_name', 'TJD0410'];  //Lindisfarne is TJD0410
	hid[hid.length]= ['payment_alert', CONTACT_EMAIL+","+SUPPORT_EMAIL];
	hid[hid.length]= ['payment_reference', "LINDISFARNE"];
	hid[hid.length]= ['receipt_address', getID("email").value];
	hid[hid.length]= ['gst_rate', '10']
	hid[hid.length]= ['gst_added', 'true']
	hid[hid.length]= ['information_fields', "Parent name"];
	hid[hid.length]= ['Parent name', getID("parentname").value];

	hid[hid.length]= ['information_fields', "Student name"];
	hid[hid.length]= ['Student name', getID("studentname").value];

	hid[hid.length]= ['information_fields',  "Phone number"];
	hid[hid.length]= ['Phone number',  getID("phone").value];

	hid[hid.length]= ['information_fields',  "Home group"];
	hid[hid.length]= ['Home group',  getID("homegroup").value];

	hid[hid.length]= ['information_fields',  "Campus"];
	hid[hid.length]= ['Campus',  getID("campus").value];

	hid[hid.length]= ['information_fields',  "Address line 1"];
	hid[hid.length]= ['Address line 1',  getID("street").value];

	hid[hid.length]= ['information_fields',  "Address line 2"];
	hid[hid.length]= ['Address line 2',  getID("suburb").value+" "+getID("state").value+" "+getID("postcode").value];	
	return hid;
}


