/* 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(29602,'6x4','1.50');
paypalOptions[1] = new payPalOption(29603,'7x5','2.50');
paypalOptions[2] = new payPalOption(29604,'A5','3.00');
paypalOptions[3] = new payPalOption(29605,'8x6','3.50');
paypalOptions[4] = new payPalOption(29606,'10x7','4.00');
paypalOptions[5] = new payPalOption(29607,'10x8','4.50');
paypalOptions[6] = new payPalOption(29608,'12x6','5.00');
paypalOptions[7] = new payPalOption(18651,'A4 ','6.00');
paypalOptions[8] = new payPalOption(29609,'12x10','7.00');
paypalOptions[9] = new payPalOption(18653,'A3 ','15.00');

