/* 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(35519,'9&quot;x6&quot; Print (Lustre)','9.00');
paymentOptions[1] = new paymentOption(35520,'9&quot;x6&quot; Print (Glossy)','9.00');
paymentOptions[2] = new paymentOption(32812,'12&quot;x8&quot; Print (Lustre)','19.00');
paymentOptions[3] = new paymentOption(35518,'12&quot;x8&quot; Print (Glossy)','19.00');
paymentOptions[4] = new paymentOption(35521,'18&quot;x12&quot; Print (Lustre)','35.00');
paymentOptions[5] = new paymentOption(35522,'18&quot;x12&quot; Print (Glossy)','35.00');
paymentOptions[6] = new paymentOption(35523,'20&quot;x13.3&quot; Print (Lustre)','49.00');
paymentOptions[7] = new paymentOption(35524,'20&quot;x13.3&quot; Print (Glossy)','49.00');

