/* Create a PayPal option */
function payPalOption(id,paypal_option,price) {
	this.id = id;
	this.paypal_option = paypal_option;
	this.price = price;
}

/***************************************************************************
* Update the PayPal 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 < paypalOptions.length; i ++) {
		if (paypalOptions[i].id == id) {
			form.amount.value = paypalOptions[i].price;
			form.item_name.value = paypalOptions[i].paypal_option;
			break;
		}	
	}
}

/***************************************************************************
* Create the array of PayPal 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 PayPal *
* enabled sites *
***************************************************************************/
paypalOptions = new Array();
paypalOptions[0] = new payPalOption(19261,'6x4&quot; gloss','5.00');
paypalOptions[1] = new payPalOption(19386,'6x4&quot; matte','5.00');
paypalOptions[2] = new payPalOption(19262,'7x5&quot; gloss','7.50');
paypalOptions[3] = new payPalOption(19387,'7x5&quot; matte','7.50');
paypalOptions[4] = new payPalOption(19263,'9x6&quot; gloss','10.00');
paypalOptions[5] = new payPalOption(19388,'9x6&quot; matte','10.00');
paypalOptions[6] = new payPalOption(19353,'10x8&quot; gloss','12.50');
paypalOptions[7] = new payPalOption(19389,'10x8&quot; matte','12.50');
paypalOptions[8] = new payPalOption(19264,'12x8&quot; gloss','15.00');
paypalOptions[9] = new payPalOption(19390,'12x8&quot; matte','15.00');
paypalOptions[10] = new payPalOption(19265,'15x10&quot; matte','20.00');

