/* 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(16392,'5&quot;x7.5&quot; (13x19cm) Glossy','12.00');
paypalOptions[1] = new payPalOption(16393,'5&quot;x7.5&quot; (13x19cm) Matt','12.00');
paypalOptions[2] = new payPalOption(16394,'6&quot;x9&quot; (15x23cm) Glossy','14.00');
paypalOptions[3] = new payPalOption(16395,'6&quot;x9&quot; (15x23cm) Matt','14.00');
paypalOptions[4] = new payPalOption(16396,'8&quot;x12&quot; (20x30cm) Glossy','16.00');
paypalOptions[5] = new payPalOption(16397,'12&quot;x18&quot; (30x46cm) Glossy','20.00');
paypalOptions[6] = new payPalOption(16398,'16&quot;x24&quot; (41x61cm) Matt','25.00');
paypalOptions[7] = new payPalOption(16399,'20&quot;x30&quot; (51x76cm) Matt','31.00');
paypalOptions[8] = new payPalOption(16400,'24&quot;x36&quot; (61x91cm) Matt','38.00');

