/* 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(8645,'size 1 - A4 prints','10.00');
paymentOptions[1] = new paymentOption(8647,'size 2 - A3 plus prints','20.00');
paymentOptions[2] = new paymentOption(8800,'Pack of six cards','5.00');
paymentOptions[3] = new paymentOption(9241,' prints, UK P&P','2.00');
paymentOptions[4] = new paymentOption(9242,' prints NON-U.K. P&P','3.00');
paymentOptions[5] = new paymentOption(9243,'pack of six cards, U.K. P&P','1.00');
paymentOptions[6] = new paymentOption(9292,'pack of six cards, NON U.K. P&P','2.00');
paymentOptions[7] = new paymentOption(34579,'picture mug','8.00');

