/* Create a Payment option */
function paymentOption(id,payment_option,price) {
	this.id = id;
	this.payment_option = payment_option;
	this.price = price;
}

/***************************************************************************
* Update the payment submission form with the price and item description *
* When a user selects an option from the list *
***************************************************************************/
function updateItemValues(form,id) {
	for (i = 0 ; i < paymentOptions.length; i ++) {
		if (paymentOptions[i].id == id) {
				form.amount.value = paymentOptions[i].price;
			form.item_name.value = paymentOptions[i].payment_option;
					break;
		}
	}
}

/***************************************************************************
* Create the array of payment options. This contains all options for the *
* site. The options available for a given photo are hardwired into the *
* photo page which is why we can't use the quick browse methods on payment *
* enabled sites *
***************************************************************************/
paymentOptions = new Array();
paymentOptions[0] = new paymentOption(15194,'All prints A4','5.00');
paymentOptions[1] = new paymentOption(15193,'All prints A3','10.00');
paymentOptions[2] = new paymentOption(30187,'Jewellery','12.00');

