/* 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(19437,'Card - single','1.75');
paypalOptions[1] = new payPalOption(19438,'Card - multi','7.00');
paypalOptions[2] = new payPalOption(19439,'Card - mix','7.00');
paypalOptions[3] = new payPalOption(19440,'Card - mix10','12.00');

