/* 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(5170,'6x4 Gloss Print','5.00');
paypalOptions[1] = new payPalOption(5173,'6x4.5 print','5.00');
paypalOptions[2] = new payPalOption(5171,'9x6 Print','8.00');
paypalOptions[3] = new payPalOption(5174,'8x6 Print','8.00');
paypalOptions[4] = new payPalOption(5172,'12x8','12.00');
paypalOptions[5] = new payPalOption(5175,'16x12','16.00');
paypalOptions[6] = new payPalOption(5176,'40x30 Canvas Print','80.00');
paypalOptions[7] = new payPalOption(5177,'60x40 Canvas Print','150.00');

