/* 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(19571,'4&quot; x 6&quot; (10x15cm) Print','2.99');
paymentOptions[1] = new paymentOption(25671,'4&quot; x 6&quot; (10x15cm) Print','9.95');
paymentOptions[2] = new paymentOption(19572,'5&quot; x 7&quot; (13x19cm) Print','3.40');
paymentOptions[3] = new paymentOption(25672,'5&quot; x 7&quot; (13x19cm) Print','9.95');
paymentOptions[4] = new paymentOption(19573,'8&quot; x 12&quot; (20x30cm) Print','4.75');
paymentOptions[5] = new paymentOption(25673,'8&quot; x 12&quot; (20x30cm) Print','14.50');
paymentOptions[6] = new paymentOption(19574,'12&quot; x 18&quot; (30x46cm) Print','5.25');
paymentOptions[7] = new paymentOption(25674,'12&quot; x 18&quot; (30x46cm) Print','14.50');

